Add dependabot-automerge workflow to automate PRs#131
Draft
Conversation
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 |
Reviewer's GuideIntroduces a new GitHub Actions workflow to automatically merge eligible Dependabot pull requests using a shared reusable workflow, gated by explicit triggers and a Dependabot-only condition. Sequence diagram for Dependabot automerge workflow executionsequenceDiagram
actor DependabotBot
participant GitHubRepo
participant GitHubActions
participant dependabot_automerge_workflow
participant shared_dependabot_automerge_workflow
participant GitHubAPI
DependabotBot->>GitHubRepo: Create or update pull_request
GitHubRepo-->>GitHubActions: Emit pull_request or pull_request_target event
GitHubActions->>dependabot_automerge_workflow: Start workflow on matching event
activate dependabot_automerge_workflow
alt pull_request.user.login == dependabot[bot]
dependabot_automerge_workflow->>shared_dependabot_automerge_workflow: Reusable workflow call
activate shared_dependabot_automerge_workflow
shared_dependabot_automerge_workflow->>GitHubAPI: Read checks and statuses
GitHubAPI-->>shared_dependabot_automerge_workflow: Checks and statuses result
shared_dependabot_automerge_workflow->>GitHubAPI: Merge pull_request when criteria met
GitHubAPI-->>shared_dependabot_automerge_workflow: Merge result
deactivate shared_dependabot_automerge_workflow
else non Dependabot PR
dependabot_automerge_workflow-->>GitHubActions: Job skipped by condition
end
deactivate dependabot_automerge_workflow
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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
Workflow Configuration
Safety and Compatibility
Test plan
🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/8ba6125f-ff88-450d-a8d4-4a91c8d1e792
Summary by Sourcery
CI: