Skip to content

Conversation

@MantisClone
Copy link
Member

Adds workflow that reopens issues when closed while linked PRs are still open.

Fixes RequestNetwork/public-issues#131

@codesandbox
Copy link

codesandbox bot commented Jan 19, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

Warning

Rate limit exceeded

@MantisClone has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 29 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 4110aff and 2e214aa.

📒 Files selected for processing (1)
  • .github/workflows/reopen-issue-if-prs-open.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@MantisClone MantisClone marked this pull request as ready for review January 19, 2026 21:19
@greptile-apps
Copy link

greptile-apps bot commented Jan 19, 2026

Greptile Summary

This PR adds a new GitHub Actions workflow that automatically reopens closed issues when they have linked open pull requests. The workflow listens for issue close events and delegates to a reusable workflow maintained in the RequestNetwork organization's .github repository, ensuring issues remain open while related work is still in progress.

Confidence Score: 5/5

  • This PR is safe to merge with no identified issues. The workflow follows established patterns and uses proper security practices.
  • The workflow file is minimal, correctly syntaxed, and follows the established patterns used in the repository for other workflows. It properly uses a dedicated secret token for authentication and delegates complex logic to a centralized, maintainable reusable workflow. There are no security vulnerabilities, configuration errors, or logical issues identified.
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/reopen-issue-if-prs-open.yml Adds a new GitHub Actions workflow that automatically reopens closed issues when they have linked open PRs. The workflow is triggered on issue close events and delegates to a reusable workflow from the RequestNetwork organization, using a dedicated GitHub token for authentication. Implementation is straightforward and follows the established pattern in the repository.

Sequence Diagram

sequenceDiagram
    participant User as GitHub User
    participant Issue as Issue Event
    participant Workflow as reopen-issue-if-prs-open
    participant ReusableWF as RequestNetwork/.github<br/>Reusable Workflow
    participant GitHub as GitHub API
    
    User->>Issue: Closes issue
    Issue->>Workflow: Trigger (issues.closed event)
    Workflow->>ReusableWF: Call reusable workflow with token
    ReusableWF->>GitHub: Query linked PRs for issue
    alt PRs are open
        ReusableWF->>GitHub: Reopen issue
        GitHub-->>ReusableWF: Issue reopened
    else All PRs are closed
        ReusableWF-->>GitHub: No action taken
    end
    ReusableWF-->>Workflow: Complete
Loading

@MantisClone MantisClone self-assigned this Jan 19, 2026
@MantisClone MantisClone merged commit fda9b87 into main Jan 20, 2026
11 checks passed
@MantisClone MantisClone deleted the chore/add-reopen-issue-workflow branch January 20, 2026 06:32
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.

[Automation] - Issues close prematurely when first PR in a stack merges

2 participants