Add Dependabot auto-merge#61
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4b9418dab
ℹ️ 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.
Pass repository context to gh PR commands
The workflow calls gh pr list/view/merge without --repo and without checking out the repository, so these commands run outside a git repo context and can fail to resolve which repo to query. GitHub’s CLI docs state gh pr list --repo OWNER/REPO is required unless you run the command from a local git repository. In this workflow there is no actions/checkout step, so auto-merge can silently stop working before it ever reaches merge logic.
Useful? React with 👍 / 👎.
Enable automatic merging for Dependabot PRs after CI succeeds, and suppress semver major dependency updates for safety.