Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Automates Dependabot PR handling: fetch metadata, approve, and enable auto-merge when dependency updates are created.

Changes

Two GitHub Actions workflows that trigger on Dependabot PRs:

  • dependabot-auto-approve.yml - Approves PRs using gh pr review --approve
  • dependabot-auto-merge.yml - Enables auto-merge using gh pr merge --auto --merge

Both workflows:

  • Filter using if: github.actor == 'dependabot[bot]'
  • Fetch metadata via dependabot/fetch-metadata@v2
  • Use built-in GITHUB_TOKEN with minimal permissions

Setup Required

  1. Enable auto-merge in repository settings (Settings → General → Pull Requests)
  2. Configure branch protection rules for required approvals/checks (recommended)

PRs auto-merge once all protection requirements pass.

Documentation

DEPENDABOT_AUTOMATION.md includes setup steps, troubleshooting, and customization examples (e.g., auto-merge only patch updates by filtering on steps.metadata.outputs.update-type).

Original prompt

This section details on the original issue you should resolve

<issue_title>Create Dependabot GitHub Action Workflows</issue_title>
<issue_description>The workflows should perform the following

If possible do all this in one workflow, or split it into separate workflows if this is not possible.

Include instructions in the pull request of how to implement this workflow, including details on creating the relevant repository tokens.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: jonathanbossenger <180629+jonathanbossenger@users.noreply.github.com>
Copilot AI changed the title [WIP] Create Dependabot GitHub Action workflows Add Dependabot automation workflows for auto-approve and auto-merge Oct 30, 2025
@jonathanbossenger jonathanbossenger marked this pull request as ready for review October 30, 2025 12:29
@jonathanbossenger jonathanbossenger merged commit a060e01 into trunk Oct 30, 2025
3 checks passed
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.

Create Dependabot GitHub Action Workflows

2 participants