Add Dependabot auto-merge workflow#54
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 97be343c3f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| BRANCH_NAME="${{ github.event.workflow_run.head_branch }}" | ||
| PR_NUMBER=$(gh pr list --state open --head "${BRANCH_NAME}" --json number --jq '.[0].number // empty') |
There was a problem hiding this comment.
Provide repo context before calling
gh pr
gh pr list is executed without a checked-out repository and without --repo/GH_REPO, so on a fresh workflow_run runner this step can fail before any PR is resolved. GitHub CLI only lets you omit --repo when running inside a local Git repo with a GitHub remote; this workflow has no actions/checkout step, so the auto-merge path can fail for every run instead of merging Dependabot PRs.
Useful? React with 👍 / 👎.
Summary
Verification