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
    • Enhanced GitHub Actions workflow automation for improved issue management processes.

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

@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

Walkthrough

Adds a GitHub Actions workflow that triggers on issue closure and delegates to a centralized reusable workflow, passing the REOPEN_ISSUES_TOKEN secret for automated issue management.

Changes

Cohort / File(s) Summary
GitHub Actions Automation
.github/workflows/reopen-issue-if-prs-open.yml
New workflow file that triggers on issues.closed events and invokes the centralized reusable workflow from RequestNetwork/.github to handle reopening closed issues with active linked pull requests

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The PR adds the caller workflow in this repo as required by issue #131. However, the implementation appears incomplete as it only delegates to an external workflow without containing core logic. Verify that the external workflow at RequestNetwork/.github contains the required GraphQL logic for querying linked PRs and reopening issues as described in issue #131.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: add reopen-issue-if-prs-open workflow' accurately summarizes the main change—adding a new GitHub Actions workflow file for reopening issues.
Out of Scope Changes check ✅ Passed The changes are limited to adding a single GitHub Actions workflow file directly related to the linked issue requirements, with no extraneous modifications.
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

Adds a new GitHub Actions workflow that automatically reopens issues when they are closed while linked pull requests remain open. The workflow is triggered on issue closure and delegates logic to a centralized reusable workflow maintained in the RequestNetwork/.github repository. This follows the established pattern already used in the codebase for auto-project and pr-comments workflows, promoting consistency and maintainability.

  • Workflow added: reopen-issue-if-prs-open.yml - Handles issue reopening when PRs are still open
  • Trigger: Fires on issues.closed event
  • Implementation: Uses centralized reusable workflow from RequestNetwork/.github
  • Secret management: Properly passes REOPEN_ISSUES_TOKEN secret for GitHub API authentication
  • Pattern consistency: Aligns with existing workflow patterns in the repository (auto-project.yml, pr-comments.yml)

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk - it only adds a straightforward workflow configuration that delegates to an existing trusted reusable workflow.
  • Score of 5 reflects the low-risk nature of this change: (1) The PR only adds a new workflow file with no modifications to existing code or logic, (2) The workflow follows established patterns already used in the repository, (3) It delegates implementation to a centralized reusable workflow in RequestNetwork/.github, reducing maintenance burden, (4) The YAML syntax is simple and correct, (5) No external dependencies or complex logic are introduced, and (6) The secret handling pattern is consistent with other workflows.
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/reopen-issue-if-prs-open.yml Adds new GitHub Actions workflow to automatically reopen issues that are closed while linked PRs remain open. Uses centralized reusable workflow from RequestNetwork/.github repository, following established patterns consistent with auto-project.yml. Properly configured with required secret token for GitHub API operations.

Sequence Diagram

sequenceDiagram
    participant User as Developer
    participant GitHub as GitHub
    participant Workflow as Workflow Engine
    participant RequestNetworkGH as RequestNetwork/.github

    User->>GitHub: Closes Issue
    GitHub->>Workflow: Triggers reopen-issue-if-prs-open on issue.closed
    Workflow->>RequestNetworkGH: Calls reusable workflow (reopen-issue-if-prs-open.yml@main)
    Note over RequestNetworkGH: Checks for open PRs<br/>linked to the issue
    alt Open PRs Found
        RequestNetworkGH->>GitHub: Uses REOPEN_ISSUES_TOKEN to reopen issue
        GitHub->>GitHub: Issue status changed to open
        GitHub->>User: Issue reopened notification
    else No Open PRs
        RequestNetworkGH->>GitHub: No action taken
        Note over GitHub: Issue remains closed
    end
Loading

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