FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Dependabot auto-merge workflow by dondonz · Pull Request #4298 · graphql-java/graphql-java · GitHub

Add Dependabot auto-merge workflow - #4298

Merged
dondonz merged 5 commits into
masterfrom
claude/dependabot-auto-merge-config-ekRMj
Mar 7, 2026
Merged

Add Dependabot auto-merge workflow#4298
dondonz merged 5 commits into
masterfrom
claude/dependabot-auto-merge-config-ekRMj

Conversation

dondonz commented Mar 7, 2026
edited
Loading

Copy link
Copy Markdown
Member

Lately we've received a ton of dependabot PRs and I'd rather automatically merge if all builds pass. Dependabot doesn't have a config option for this, so instead I'm following the GitHub docs recommendation to have a GitHub action on pull request creation, to automerge Dependabot PRs only https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request

Summary

  • Adds a GitHub Actions workflow that automatically enables auto-merge on Dependabot PRs
  • Follows the official GitHub docs pattern
  • Uses squash merge strategy and applies to all dependency update types

claude added 4 commits March 7, 2026 06:36
Adds a GitHub Actions workflow that automatically enables auto-merge
(squash) on Dependabot PRs for patch and minor version updates. GitHub's
auto-merge will wait for all required status checks to pass before
merging, so major/breaking updates still require manual review.

https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
The actor name string could theoretically be spoofed. The user ID
49699333 is the immutable numeric ID for the dependabot[bot] GitHub
App and cannot be forged by other users.

https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
Remove the patch/minor restriction and the now-unused fetch-metadata
step so all Dependabot PRs are auto-merged (major included).

https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
Rewrite to closely follow the recommended pattern from:
https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request

- Use user.login check with repository guard
- Pin fetch-metadata action to commit SHA
- Keep squash merge strategy and auto-merge all update types

https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY

github-actions Bot commented Mar 7, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 11 5671 (±0) 5614 (±0) 0 (±0) 0 (±0) 57 (±0)
Java 17 5671 (±0) 5613 (±0) 0 (±0) 0 (±0) 58 (±0)
Java 21 5671 (±0) 5613 (±0) 0 (±0) 0 (±0) 58 (±0)
Java 25 5671 (±0) 5613 (±0) 0 (±0) 0 (±0) 58 (±0)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 22716 (±0) 22485 (±0) 0 (±0) 0 (±0) 231 (±0)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 28698 3126 90.2% ±0.0%
Branches 8331 1511 84.6% ±0.0%
Methods 7681 1224 86.3% ±0.0%

Changed Class Coverage (2 classes)

Class Line Branch Method
g.e.i.d.ExhaustedDataLoaderDispatchStrategy -1.2% 🔴 -7.7% 🔴 ±0.0%
g.e.i.d.PerLevelDataLoaderDispatchStrategy +0.7% 🟢 +2.0% 🟢 ±0.0%

Full HTML report: build artifact jacoco-html-report

Updated: 2026-03-07 08:42:06 UTC

The workflow was appearing as a (skipped) build step on every PR.
Switching to pull_request_target prevents it from showing up at all
on non-Dependabot PRs.

https://claude.ai/code/session_012ieS3tLTHwwnh9aftVAPVY
dondonz merged commit d3fbf2d into master Mar 7, 2026
9 of 11 checks passed
dondonz deleted the claude/dependabot-auto-merge-config-ekRMj branch March 7, 2026 20:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL