obadev95/Dependabot Batch Merge
Batch open Dependabot PRs into one integration branch, validate each merge, open a single PR to the base branch.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base-branch | Branch the integration branch is cut from and the batch PR targets. | no | main |
| integration-branch-prefix | Prefix for the integration branch name. Date suffix is appended. | no | chore/dependabot-batch |
| dependabot-author | GitHub login used to identify Dependabot PRs. | no | dependabot[bot] |
| validation-command | Shell command run after each merge. Runs through bash -lc. | no | npm ci && npm run typecheck && npm test && npm run build |
| on-failure | How to handle a PR that fails validation: "skip" (drop the merge) or "revert-commit" (keep merge, add revert). | no | skip |
| re-run-final-suite | Re-run the validation command on the integration branch tip before opening the batch PR. | no | true |
| draft-pr | Open the batch PR as a draft. | no | true |
| max-prs | Maximum number of Dependabot PRs to process in one run (safety cap). | no | 20 |
| anthropic-api-key | Anthropic API key. Used for Claude-powered failure explanations and, when agentic-resolve is true, for autonomous fix attempts. | no | — |
| agentic-resolve | When true, invoke a Claude agent to attempt to fix merge conflicts and validation failures before recording them as failures. | no | false |
| agent-timeout-seconds | Per-attempt timeout in seconds for the Claude agent. Ignored when agentic-resolve is false. | no | 600 |
| max-agent-calls-per-batch | Hard cap on Claude agent invocations across the whole batch (cost guardrail). | no | 10 |
| max-batch-wall-clock-seconds | Hard cap on total batch wall-clock seconds; remaining PRs are skipped once exceeded. | no | 3600 |
| github-token | Token used for GitHub API calls. Defaults to the workflow GITHUB_TOKEN. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| batch-pr-number | Number of the batch PR opened or updated. |
| batch-pr-url | URL of the batch PR. |
| pass-count | Number of source PRs that PASSed validation. |
| fail-count | Number of source PRs that FAILed validation. |