chore: add Dependabot auto-merge workflow for patch/minor updates#93
Draft
chore: add Dependabot auto-merge workflow for patch/minor updates#93
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/TrustSignal-dev/TrustSignal/sessions/b0fa78a1-39c3-4206-a500-d945a4fe3caf Co-authored-by: chrismaz11 <24700273+chrismaz11@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow for Dependabot auto-merge
chore: add Dependabot auto-merge workflow for patch/minor updates
Mar 30, 2026
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot PRs for patch/minor bumps pile up waiting for manual approval due to branch protection requiring 1 review + 9 status checks. This adds a workflow to auto-approve and squash-merge those PRs once CI passes, while leaving major bumps for human review.
Summary
.github/workflows/dependabot-auto-merge.ymltriggered onpull_request_target, gated todependabot[bot]actor onlydependabot/fetch-metadata@v2to detect semver update typegh pr review --approve+gh pr merge --auto --squash; auto-merge fires only after all required branch-protection checks passAI Disclosure (optional)
Review Checklist
Security impact:
pull_request_target+contents: writeis the canonical GitHub pattern for Dependabot auto-merge. Thedependabot[bot]actor guard and the existing 9-check branch-protection requirement together ensure only validated, bot-authored patch/minor bumps are merged automatically. No elevated token scopes beyondcontents: writeandpull-requests: writeare granted. Major version bumps are explicitly excluded.Original prompt
Problem
The TrustSignal repo has branch protection rules requiring 1 approving review + 9 status checks before merging. This means Dependabot PRs for safe patch/minor dependency bumps pile up and require manual approval each time. Currently there are 5 blocked Dependabot PRs (#90, #89, #87, #42, #38).
Solution
Create a new GitHub Actions workflow at
.github/workflows/dependabot-auto-merge.ymlthat:pull_request_targeteventsdependabot[bot]dependabot/fetch-metadata@v2to determine the update typegh pr review --approvefor patch and minor version updatesgh pr merge --auto --squashfor patch and minor updatesWorkflow file:
.github/workflows/dependabot-auto-merge.ymlRequirements
.github/workflows/dependabot-auto-merge.ymlsemver-patchandsemver-minorupdatespull_request_target(notpull_request) since Dependabot PRs come from forks/bot branchesmaster(notmain) for this repoThe following is the prior conversation context from the user's chat exploration (may be truncated):
User: fix security vaul
Assistant: It looks like your message got cut off. Could you please provide more details about what you'd like to do?
Based on what I can see, it seems like you might want to:
Could you clarify:
owner/repoformat)User: can you go through all of the issues and pr for trustsignal-dev and resolve what you. can and what you can t resollvelet me know what tod
Assistant:
Let me start by finding the repository and then go through all the issues and PRs.
Assistant: Now let me fetch all open issues and PRs from the repos that have them (TrustSignal has 15, v0-signal-new has 3, TrustSignal-App has 2):
Assistant: Here's a full audit of all 20 open PRs across the 3 active repos in the TrustSignal-dev org. I've categorized each by what I can resolve vs. what needs your manual action.
📊 Full Inventory
Repo 1:
TrustSignal-dev/TrustSignal— 15 open PRs (all PRs, no standalone issues)