Skip to content

Commit 5d9f392

Browse files
authored
Merge pull request #2 from sourcegraph/sayans/refactor-job-processing
refactor: remove installation id from disk. add zod schemas, add bounded queue executor, remove extra tools causing issues
2 parents 3a87baf + b541106 commit 5d9f392

27 files changed

+2354
-3147
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ data/
4444

4545
# Keys
4646
*.pem
47-
*.key
47+
*.key
48+
49+
# Test files
50+
test_*.sh

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ The app includes a Model Context Protocol (MCP) server that exposes GitHub opera
224224
### Available MCP Tools
225225
- `leave_general_comment` - Leave general comments on pull requests
226226
- `leave_inline_comment` - Leave inline comments on specific lines
227-
- `create_check_run` - Create or update check run status
228-
- `get_pr_info` - Get pull request details and optionally the diff
229-
- `trigger_review` - Start the code review process
230227
- `get_pr_comments` - Get all comments on a pull request
231228

232229
### Usage with AI Agents

config.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ amp:
5757
1. Look at the pull request details to fetch the context before reviewing.
5858
2. Review the diff content to identify issues.
5959
3. Leave specific inline comments or code suggestions for each issue found.
60-
4. Create check run status when the code review is complete.
6160
6261
Always leave actionable, specific comments with suggested fixes.
6362
@@ -129,28 +128,6 @@ amp:
129128
- "Required: message, owner, repo, pr_number, path, line"
130129
- "Optional: commit_sha (will be fetched from PR if not provided)"
131130
- "Example: Comment on line 25 of src/auth.js about missing error handling"
132-
- name: create_check_run
133-
description: Create or update GitHub check run status
134-
instructions:
135-
- "Use to mark review completion with check run status"
136-
- "Required: owner, repo, commit_sha, status ('queued', 'in_progress', 'completed')"
137-
- "Optional: conclusion ('success', 'failure', 'neutral'), title, summary, details_url"
138-
- "Use 'completed' status with 'success' conclusion when review is done"
139-
- "Use 'completed' status with 'failure' conclusion for critical issues"
140-
- name: get_pr_info
141-
description: Get pull request details
142-
instructions:
143-
- "Use to understand context about the pull request before reviewing the diff"
144-
- "Required: owner, repo, pr_number"
145-
- "Optional: include_diff (boolean) to also fetch the diff content"
146-
- "Returns PR info, repository info, and optionally diff content"
147-
- name: trigger_review
148-
description: Start code review process
149-
instructions:
150-
- "Usually called automatically, but available if needed to retrigger code review"
151-
- "Required: owner, repo, pr_number"
152-
- "Optional: commit_sha, force (boolean)"
153-
- "Creates check run and initiates review process"
154131
- name: get_pr_comments
155132
description: Get all comments on a pull request
156133
instructions:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"js-yaml": "^4.1.0",
3232
"jsonwebtoken": "^9.0.2",
3333
"node-fetch": "^3.3.2",
34-
"uuid": "^10.0.0"
34+
"uuid": "^10.0.0",
35+
"zod": "^3.25.76"
3536
},
3637
"devDependencies": {
3738
"@types/js-yaml": "^4.0.9",

0 commit comments

Comments
 (0)