-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add GitHub Actions workflow for auto-approving PRs #325
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?
Conversation
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.
Pull request overview
This PR introduces a GitHub Actions workflow designed to automatically approve pull requests from Dependabot and a specific user. The workflow waits for status checks to complete before granting approval.
Key Changes:
- Adds automated PR approval for Dependabot and user 'nev21'
- Implements status check verification before approval
- Configures concurrency control to prevent duplicate workflow runs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| run: gh pr review --approve "$PR_URL" | ||
| env: | ||
| PR_URL: ${{ github.event.pull_request.html_url }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Copilot
AI
Dec 22, 2025
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.
Using the default GITHUB_TOKEN for PR approval may not work as intended. GitHub restricts workflows from approving pull requests using the default GITHUB_TOKEN to prevent auto-approval scenarios that bypass review requirements. This will likely result in a permissions error when attempting to approve the PR. Consider using a Personal Access Token (PAT) or GitHub App token stored in secrets, or reconsider whether automatic approval is the right approach versus auto-merging after human approval.
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_TOKEN: ${{ secrets.DEPENDABOT_AUTO_APPROVE_TOKEN }} |
| wait-interval: 30 | ||
| running-workflow-name: 'auto-approve' | ||
| allowed-conclusions: success,skipped,neutral | ||
|
|
Copilot
AI
Dec 22, 2025
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.
There's trailing whitespace on this line. Consider removing it for consistency with code formatting standards.
No description provided.