Skip to content
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

feat: add Dependabot auto-merge workflow #27

Merged
merged 4 commits into from
Dec 19, 2024
Merged

Conversation

gabezurita
Copy link
Collaborator

@gabezurita gabezurita commented Dec 19, 2024

Closes: department-of-veterans-affairs/abd-vro#3903

  • Add GitHub workflow to automatically merge Dependabot PRs when checks pass
  • Add documentation about automated dependency updates to README
  • Configure workflow with necessary permissions for auto-merging
  • Use GitHub CLI to enable auto-merge functionality
  • Auto merges only on patch, or minor, not major bumps

This change streamlines dependency management by automatically merging security and dependency updates from Dependabot when all CI checks pass.

Let's merge the below first:
#28

- Add GitHub workflow to automatically merge Dependabot PRs when checks pass
- Add documentation about automated dependency updates to README
- Configure workflow with necessary permissions for auto-merging
- Use GitHub CLI to enable auto-merge functionality
- Auto merges only on patch, or minor, not major bumps

This change streamlines dependency management by automatically merging
security and dependency updates from Dependabot when all CI checks pass.
@gabezurita gabezurita marked this pull request as ready for review December 19, 2024 22:14
@gabezurita gabezurita requested review from a team as code owners December 19, 2024 22:14
@gabezurita gabezurita self-assigned this Dec 19, 2024
Updates the dependabot auto-merge workflow to explicitly wait for the test
workflow to complete successfully before attempting to merge. This provides
an additional safety check beyond branch protection rules and ensures
dependencies are only merged after passing all tests.

- Changes trigger from pull_request to workflow_run
- Adds explicit check for workflow_run.conclusion == 'success'
- References "Test Code" workflow as a prerequisite
@gabezurita gabezurita enabled auto-merge (squash) December 19, 2024 22:37
@gabezurita gabezurita merged commit 26d279d into main Dec 19, 2024
3 checks passed
@gabezurita gabezurita deleted the dependabot-auto-merge branch December 19, 2024 22:52
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.

Set up dependabot auto-merge on green CI
3 participants