Add Dependabot auto-merge#17
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2fdc003eb0
ℹ️ 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
Resolve Dependabot PR calls gh pr list without checking out the repo or providing --repo/GH_REPO, and later steps do the same with gh pr view/gh pr merge. In this workflow there is no checkout step, so these commands can fail when gh cannot infer a local repository, which prevents the auto-merge flow from running at all. Add explicit repo targeting (for example -R "$GITHUB_REPOSITORY") or set GH_REPO for every gh pr invocation.
Useful? React with 👍 / 👎.
Summary
Validation
Note: local VPS Node is v18.19.1, while this repo targets Node 20 in CI and runtime workflows.