Draft
Conversation
Introduce a new GitHub Actions workflow to automatically merge Dependabot pull requests under specified conditions to streamline dependency updates. Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a new GitHub Actions workflow that auto-merges Dependabot pull requests by delegating to a centralized reusable workflow with restricted permissions and actor gating. Sequence diagram for Dependabot auto-merge reusable workflow invocationsequenceDiagram
actor DependabotBot
participant GitHubRepo
participant GHActions as GitHubActions
participant DependabotAutomergeWorkflow as DependabotAutomergeWorkflow
participant SharedWorkflow as SharedAutomergeWorkflow
DependabotBot->>GitHubRepo: Open or update pull_request
GitHubRepo-->>GHActions: pull_request_target event
GHActions->>DependabotAutomergeWorkflow: Evaluate trigger (opened, reopened, synchronize, ready_for_review, labeled)
DependabotAutomergeWorkflow->>DependabotAutomergeWorkflow: Check condition github.actor == dependabot[bot]
alt actor is dependabot[bot]
DependabotAutomergeWorkflow->>SharedWorkflow: Reusable workflow call
SharedWorkflow->>GitHubRepo: Read checks and statuses
SharedWorkflow->>GitHubRepo: Update PR (merge when criteria satisfied)
else actor is not dependabot[bot]
DependabotAutomergeWorkflow-->>GHActions: Job skipped
end
actor Maintainer
Maintainer->>GHActions: workflow_dispatch (manual trigger)
GHActions->>DependabotAutomergeWorkflow: Run on workflow_dispatch
DependabotAutomergeWorkflow->>DependabotAutomergeWorkflow: Check condition github.actor == dependabot[bot]
DependabotAutomergeWorkflow-->>GHActions: Usually skipped (actor is maintainer)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
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.
Summary
Changes
New Workflow
Rationale
Test Plan
Notes
🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/78a84312-6598-41b5-be67-f2608225d98b
Summary by Sourcery
Build: