Skip to content

Add workflow to close open PRs via Actions dispatch#18

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/close-open-prs-workflow-0cc0
May 27, 2026
Merged

Add workflow to close open PRs via Actions dispatch#18
cursor[bot] merged 1 commit into
mainfrom
cursor/close-open-prs-workflow-0cc0

Conversation

@scalinity

Copy link
Copy Markdown
Owner

Adds workflow_dispatch job to close open PRs when the Cursor integration token lacks closePullRequest permission.

Run Actions → Close open pull requests → Run workflow (leave pr_numbers empty to close all open PRs).

Slack Thread

Open in Web Open in Cursor 

Co-authored-by: Daniel Escalante <scalinity@users.noreply.github.com>
@cursor cursor Bot merged commit 6fc69b8 into main May 27, 2026
1 check passed
@coderabbitai

coderabbitai Bot commented May 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • .github/workflows/close-open-prs.yml is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: def0d7f9-f4a9-499c-81e3-5a1b36070867

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown

Agent review debate

This 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)

  • Slack scopes, token handling, and Socket Mode deployment
  • /idea channel gating and message handler edge cases
  • Tests and docs staying aligned with docs/SETUP.md

Repo guidance: see AGENTS.md.


Automated by agent-pr-review-kickoff.yml · PR: #18

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +32 to +37
const { data } = await github.rest.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: "open",
per_page: 100,
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@cursor cursor Bot deleted the cursor/close-open-prs-workflow-0cc0 branch May 27, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants