Skip to content

Add workflow to auto-close stale needs-info issues#9057

Open
captainsafia wants to merge 1 commit intomainfrom
oz-agent/close-stale-needs-info-issues
Open

Add workflow to auto-close stale needs-info issues#9057
captainsafia wants to merge 1 commit intomainfrom
oz-agent/close-stale-needs-info-issues

Conversation

@captainsafia
Copy link
Copy Markdown
Contributor

Summary

Adds a nightly GitHub Actions workflow that automatically closes issues labeled needs-info when they have received no new comments for 3 business days after the label was applied.

How it works

  • Schedule: Runs nightly at midnight UTC via cron, with a workflow_dispatch trigger for manual testing.
  • Label detection: Finds all open issues with the needs-info label and looks up when the label was most recently applied via the timeline/events API.
  • Business day calculation: Counts only Monday–Friday when determining whether 3 business days have elapsed since the label was applied.
  • Comment check: If any comment was posted after the label was applied, the issue is left open (the reporter responded).
  • Auto-close: Issues past the deadline with no new comments are closed as not_planned with an explanatory comment inviting the reporter to reply to reopen.

Conversation: https://staging.warp.dev/conversation/c1116e28-571c-4903-94d8-f39d96786b11
Run: https://oz.staging.warp.dev/runs/019d896e-18d1-794c-88e5-0ee5a701fcf0
This PR was generated with Oz.

Adds a nightly GitHub Actions workflow that automatically closes issues
labeled 'needs-info' if they have received no new comments 3 business
days after the label was applied. Closed issues get an explanatory
comment inviting the reporter to reply to reopen.

Co-Authored-By: Oz <oz-agent@warp.dev>
@captainsafia captainsafia marked this pull request as ready for review April 14, 2026 01:02
@alokedesai
Copy link
Copy Markdown
Member

@vorporeal mind taking this one?

with:
script: |
const LABEL = "needs-info";
const BUSINESS_DAYS = 3;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unless there's a strong reason to close things more aggressively, i'd give people a week, maybe two, to reply? in case someone reported a thing then went on vacation

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.

3 participants