Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions overwatch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bpinternal/overwatch",
"version": "0.3.5",
"version": "0.3.6",
"description": "Headless library for building control loops: scheduled bots that scan a repo for a class of anomaly, fix a few instances with a coding agent, and open a PR — no server, UI, or persistent process.",
"keywords": [
"control-loop",
Expand Down Expand Up @@ -58,8 +58,10 @@
"dependencies": {
"@daytona/sdk": "^0.195.0",
"@octokit/auth-app": "^8.2.0",
"@octokit/core": "^7.0.6",
"@octokit/plugin-paginate-rest": "^14.0.0",
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
"@slack/web-api": "^8.0.0",
"commander": "^15.0.0",
"octokit": "^5.0.5"
"commander": "^15.0.0"
}
}
134 changes: 9 additions & 125 deletions overwatch/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions overwatch/src/github.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import type { Sandbox } from "@daytona/sdk";
import { createAppAuth } from "@octokit/auth-app";
import { Octokit } from "octokit";
import { Octokit as OctokitCore } from "@octokit/core";
import { paginateRest } from "@octokit/plugin-paginate-rest";
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";

const Octokit = OctokitCore.plugin(restEndpointMethods, paginateRest);
Comment thread
xavierhamel marked this conversation as resolved.
type Octokit = InstanceType<typeof Octokit>;

/** Committer identity used when the git source can't derive an account-backed one. */
const DEFAULT_BOT_NAME = "control-loop[bot]";
Expand Down Expand Up @@ -407,7 +412,9 @@ export abstract class GithubBase implements GitSource {

protected requireAuth(action: string): void {
if (!this.authenticated)
throw new Error(`Github authentication is required to ${action} on ${this.owner}/${this.name}`);
throw new Error(
`Github authentication is required to ${action} on ${this.owner}/${this.name}`,
);
}
}

Expand Down
Loading