-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add AI code review #1
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 1 commit
629ef4c
2e850a5
44aed99
a92c44e
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,24 @@ | ||
| 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/ai-review/.github/workflows/ai-review.yml@main | ||
|
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.
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. Use an immutable ref here (full commit SHA) instead of |
||
| secrets: inherit | ||
|
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.
|
||
| with: | ||
| review_instructions: >- | ||
| Focus on Go correctness, concurrency bugs, and MongoDB protocol handling. | ||
| Skip style nitpicks. | ||
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.
uses: ...@mainpoints to a mutable branch in an external repository. Because this job also passes secrets, upstream changes can silently change what runs in this repo. Pin this to an immutable commit SHA instead of@main.