Skip to content

Conversation

@MantisClone
Copy link
Member

@MantisClone MantisClone commented Jan 19, 2026

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

Fixes RequestNetwork/public-issues#131

Summary by CodeRabbit

  • Chores
    • Improved issue management automation to ensure issues remain properly synchronized with related pull requests.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

Walkthrough

A new GitHub Actions workflow is added that triggers when issues are closed. It calls a reusable remote workflow from RequestNetwork's main branch, passing the REOPEN_ISSUES_TOKEN secret to handle reopening issues when associated pull requests remain open.

Changes

Cohort / File(s) Change Summary
GitHub Actions Workflow Configuration
\.github/workflows/reopen-issue-if-prs-open\.yml
Adds new workflow triggered on issue closure events that invokes a remote reusable workflow to conditionally reopen issues when linked PRs are still in open state

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a new GitHub Actions workflow for reopening issues when PRs are still open.
Linked Issues check ✅ Passed The PR adds the caller workflow component for one repository as required by issue #131, implementing the workflow call with proper token passing.
Out of Scope Changes check ✅ Passed The single file change is directly related to the linked issue objective of adding caller workflows to invoke the reusable workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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:18
@greptile-apps
Copy link

greptile-apps bot commented Jan 19, 2026

Greptile Summary

This PR adds a GitHub Actions workflow that automatically reopens issues when they are closed while linked pull requests remain open.

  • Follows the repository's established pattern of using reusable workflows from RequestNetwork/.github
  • Triggers on the issues.closed event
  • Delegates logic to a centralized reusable workflow at RequestNetwork/.github/.github/workflows/reopen-issue-if-prs-open.yml
  • Uses a dedicated REOPEN_ISSUES_TOKEN secret for authentication (consistent with other workflows using dedicated tokens)
  • Simple, clean implementation with no logic errors or security concerns

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The workflow is a simple, declarative configuration that follows established repository patterns. It delegates all logic to a trusted reusable workflow from the organization's central repository, uses proper secret management, and only triggers on the appropriate event. No custom code execution, no security concerns.
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/reopen-issue-if-prs-open.yml Adds workflow to reopen closed issues if linked PRs remain open, follows repository conventions

Sequence Diagram

sequenceDiagram
    participant User
    participant GitHub
    participant Workflow as Reopen Issue Workflow
    participant ReusableWorkflow as RequestNetwork/.github Workflow
    participant IssueAPI as GitHub Issues API

    User->>GitHub: Close Issue
    GitHub->>Workflow: Trigger (issues.closed event)
    Workflow->>ReusableWorkflow: Call reusable workflow
    Note over Workflow,ReusableWorkflow: Pass REOPEN_ISSUES_TOKEN secret
    ReusableWorkflow->>IssueAPI: Check if issue has linked PRs
    alt Linked PRs are still open
        ReusableWorkflow->>IssueAPI: Reopen Issue
        IssueAPI-->>GitHub: Issue reopened
        GitHub-->>User: Notification (issue reopened)
    else No open linked PRs
        ReusableWorkflow-->>Workflow: No action needed
    end
Loading

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.github/workflows/reopen-issue-if-prs-open.yml:
- Around line 8-10: The reusable workflow reference uses an unstable ref
('RequestNetwork/.github/.github/workflows/reopen-issue-if-prs-open.yml@main')
which should be pinned; update the uses value in the reopen-if-needed entry to
point to a specific commit SHA or a released tag instead of `@main` (preserve the
same path and the secrets block), e.g. replace `@main` with the chosen commit SHA
or tag so upstream changes cannot modify behavior unexpectedly.

@MantisClone MantisClone self-assigned this Jan 19, 2026
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