-
Notifications
You must be signed in to change notification settings - Fork 0
ci(ai-review): add AI review workflow #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: AI Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, edited, ready_for_review] | ||
| push: | ||
| branches: [master] | ||
| workflow_dispatch: | ||
| inputs: | ||
| pr_number: | ||
| description: PR number to review (leave blank to review a commit) | ||
| required: false | ||
| commit_sha: | ||
| description: Commit SHA to review (leave blank when using PR number) | ||
| required: false | ||
|
|
||
| jobs: | ||
| ai-review: | ||
| uses: jitsucom/github-workflows/.github/workflows/ai-review.yml@1.28.20260529 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
| secrets: inherit | ||
| with: | ||
| review_instructions: >- | ||
| Focus on concurrency safety, connection and resource handling, and MongoDB wire-protocol correctness. Skip style nitpicks. | ||
| pr_number: ${{ inputs.pr_number }} | ||
| commit_sha: ${{ inputs.commit_sha }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add an explicit
permissions:block in the caller workflow? Inworkflow_call, the called workflow permissions are capped by the caller token permissions. If this repo/org default is read-only, the called workflow can fail when it tries to publish commit comments/reviews.