-
Notifications
You must be signed in to change notification settings - Fork 8
Add workflow for Pull Request review automation #187
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: main
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,24 @@ | ||||||||||
| name: Pull Request Review | ||||||||||
|
|
||||||||||
| on: | ||||||||||
| pull_request: | ||||||||||
| types: [opened, ready_for_review] | ||||||||||
|
|
||||||||||
| permissions: | ||||||||||
| contents: read | ||||||||||
| pull-requests: write | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| review-pr: | ||||||||||
| name: Pull Request Review | ||||||||||
| runs-on: | ||||||||||
| - ubuntu-latest | ||||||||||
|
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. Consider using the string format for
Suggested change
This is more consistent with the format used in |
||||||||||
| if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.pull_request.draft == false | ||||||||||
|
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. Consider breaking down this complex conditional for better readability:
Suggested change
This multi-line format makes the conditions easier to read and understand. |
||||||||||
| steps: | ||||||||||
| - name: Generate PR Review | ||||||||||
| uses: augmentcode/review-pr@v0 | ||||||||||
|
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. Consider pinning to a specific version or commit SHA instead of using
Suggested change
Mutable tags like |
||||||||||
| with: | ||||||||||
| augment_session_auth: ${{ secrets.AUGMENT_SESSION_AUTH }} | ||||||||||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||
| pull_number: ${{ github.event.pull_request.number }} | ||||||||||
| repo_name: ${{ github.repository }} | ||||||||||
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.
Consider adding a timeout to prevent the job from running indefinitely:
This helps prevent resource waste if the action encounters issues and provides a clear failure point.