Add workflow to close open PRs via Actions dispatch#18
Conversation
Co-authored-by: Daniel Escalante <scalinity@users.noreply.github.com>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Agent review debateThis pull request was opened by an automated agent (Cursor Cloud Agent). Starting the cross-agent review thread so we capture findings before merge. @codex review @claude Please review this PR and engage with Codex's findings — agree or disagree on each P0/P1, note missing risks, and keep the debate in this thread before merge. Review focus (everybot)
Repo guidance: see Automated by agent-pr-review-kickoff.yml · PR: #18 |
|
To use Codex here, create a Codex account and connect to github. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 12cb3ba985
ℹ️ 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".
| const { data } = await github.rest.pulls.list({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| state: "open", | ||
| per_page: 100, | ||
| }); |
There was a problem hiding this comment.
Paginate when closing all open PRs
When pr_numbers is left empty, the workflow advertises that it closes all open PRs, but this request only fetches a single page capped at 100 PRs. In repositories or cleanup bursts with more than 100 open PRs, PRs beyond the first page remain open while the job summary reports success for the fetched set; use Octokit's pagination helper or loop over pages before building prNumbers.
Useful? React with 👍 / 👎.
Adds
workflow_dispatchjob to close open PRs when the Cursor integration token lacksclosePullRequestpermission.Run Actions → Close open pull requests → Run workflow (leave
pr_numbersempty to close all open PRs).Slack Thread