Conversation
Add a new GitHub Actions workflow to enable automatic merging of Dependabot pull requests, improving dependency update automation. Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a new GitHub Actions workflow that delegates Dependabot PR automerging to a shared, pinned reusable workflow, triggered on Dependabot-targeted pull requests and via manual dispatch, with appropriate repository and PR write permissions. Sequence diagram for Dependabot PR automerge workflowsequenceDiagram
actor Dependabot
actor Maintainer
participant Repo
participant Workflow as Dependabot_Automerge_Workflow
participant Reusable as Shared_Reusable_Workflow
Dependabot->>Repo: Open pull_request_target PR
Repo-->>Workflow: Trigger on pull_request_target
Maintainer->>Repo: Optional manual workflow_dispatch
Repo-->>Workflow: Trigger on workflow_dispatch
Workflow->>Reusable: Invoke reusable workflow with commit pin
Reusable->>Repo: Check PR status and approvals
Reusable->>Repo: Use contents write permission
Reusable->>Repo: Use pull-requests write permission
Reusable->>Repo: Merge Dependabot PR when conditions satisfied
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
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 |
There was a problem hiding this comment.
No application code in the PR — skipped Code Health checks.
See analysis details in CodeScene
Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
Summary
Changes
Workflow
pull_request_target,workflow_dispatchcontents: writepull-requests: writeleynos/shared-actions/.github/workflows/dependabot-automerge.yml@235d2d07b9a321364a742310873f6732d7228e72Security / Dependency
Test plan
pull_request_targetworkflow_dispatchworks as expected🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/22fc02e6-d7a7-4071-9c8b-57dfde1e07b9
Summary by Sourcery
CI: