-
Notifications
You must be signed in to change notification settings - Fork 79
fix: improve dependabot auto-merge with better error handling #863
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
fix: improve dependabot auto-merge with better error handling #863
Conversation
c2e20c5 to
9456fce
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #863 +/- ##
=======================================
Coverage 52.91% 52.91%
=======================================
Files 86 86
Lines 6525 6525
=======================================
Hits 3453 3453
Misses 2610 2610
Partials 462 462 🚀 New features to boost your workflow:
|
- Add missing checkout step to fix 'fatal: not a git repository' error - Add required permissions (metadata: read, actions: read) for auto-merge - Improve error handling with GitHub API and graceful fallback behavior - Add informative comments to PRs when auto-merge fails due to permissions - Ensure workflow doesn't fail when auto-merge permissions are insufficient Fixes dependabot auto-merge workflow failures and provides better user experience.
- Add repository check to prevent workflow from running on forks - Fixes unwanted failure notifications on personal forks - Ensures workflow only runs on openshift/backplane-cli where intended
- Use environment variable reference instead of direct secret interpolation - Add explicit comments about automatic token masking - Add silent flag to curl commands to reduce log verbosity - Addresses security concerns about token exposure in public repo logs Co-authored-by: feichashao
- Remove X-GitHub-Api-Version header to avoid version binding - GitHub REST API is backward compatible and version header is optional - Simplifies API calls and reduces maintenance overhead
6f17572 to
e8bbd0e
Compare
|
/lgtm |
1 similar comment
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a7vicky, feichashao, MitaliBhalla The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@MitaliBhalla: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
What this PR does / Why we need it?
Pre-checks (if applicable)
/label tide/merge-method-squash