Configure PR triage reports with 1-day expiration and auto-close older issues#13903
Configure PR triage reports with 1-day expiration and auto-close older issues#13903
Conversation
- Changed from create-discussion to create-issue - Set expires: 1d (1 day expiration as requested by @pelikhan) - Added close-older-issues: true to auto-close previous triage reports - Updated success message from "discussion" to "issue" - Removed discussion-specific category field - Updated Phase 8 description to reference GitHub Issue instead of Discussion Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR converts the PR triage agent from creating GitHub Discussions to creating GitHub Issues, with automatic expiration after 1 day and automatic closure of older triage reports. This addresses issue #13861 with a correction from the originally requested 1-second expiration to a more practical 1-day expiration.
Changes:
- Converted from
create-discussiontocreate-issuefor better lifecycle management withclose-older-issuessupport - Added
expires: 1dfor 24-hour auto-closure via maintenance workflow - Added
close-older-issues: trueto ensure only the latest triage report remains open - Updated all messaging and documentation to reference "issue" instead of "discussion"
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/pr-triage-agent.md |
Source file changes: converted create-discussion to create-issue with expiration and auto-close configuration, updated success message and Phase 8 instructions |
.github/workflows/pr-triage-agent.lock.yml |
Compiled workflow changes: updated frontmatter hash, safe outputs config, tool definitions, environment variables, and all references from create_discussion to create_issue |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| max: 1 | ||
| category: "general" | ||
| title-prefix: "[PR Triage Report] " | ||
| expires: 1d |
There was a problem hiding this comment.
The PR description contains inconsistent information about the expiration time. The "Changes Made" section mentions "expires: 1s" but the actual code correctly implements "expires: 1d" (1 day). This is just a documentation issue in the PR description - the code changes are correct. Consider updating the PR description to remove references to "1s" and consistently use "1d" throughout.
Configure PR triage reports to expire after 1 day and automatically close previous reports when new ones are created, addressing issue #13861 with @pelikhan's correction from 1 second to 1 day.
Changes
.github/workflows/pr-triage-agent.mdcreate-discussiontocreate-issue(required forclose-older-issuessupport)expires: 1dfor 24-hour auto-closure via maintenance workflowclose-older-issues: trueto close up to 10 previous triage reports on new issue creationBefore:
After:
Impact
Original prompt
This section details on the original issue you should resolve
<issue_title>[q] Set PR triage report expiration to 1s and auto-close older issues</issue_title>
<issue_description>## Q Workflow Optimization Report
Context
This PR addresses the request from issue #13861 to configure PR triage reports to expire after 1 second and automatically close older triage report issues.
Issues Found (from issue context)
PR Triage Agent Workflow
Changes Made
.github/workflows/pr-triage-agent.mdChanged from
create-discussiontocreate-issuewith the following new configurations:Added
expires: 1s: Auto-closes triage report issues after 1 secondagentics-maintenance.ymlworkflow to auto-close expired issuesAdded
close-older-issues: true: Automatically closes previous open triage reportsConverted from discussion to issue: Changed
create-discussiontocreate-issueclose-older-issuesfeature (not available for discussions)category: "general"field (discussion-specific)Updated messaging: Changed success message from "Check the discussion" to "Check the issue"
Expected Improvements
Validation
Changes are minimal and targeted:
.github/workflows/pr-triage-agent.md(source file).lock.ymlfiles (will be compiled automatically after merge)docs/src/content/docs/reference/safe-outputs.mdTechnical Details
Auto-Expiration Mechanism:
expires: 1sfield generates/updatesagentics-maintenance.ymlworkflowClose-Older-Issues Mechanism:
References
/q set expires to 1s and close older issues/docs/src/content/docs/reference/safe-outputs.md(lines 98-100, 146-147)Success Criteria
✅ Configured 1-second expiration for PR triage reports
✅ Enabled automatic closure of older triage reports
✅ Converted from discussion to issue for better lifecycle management
✅ Updated workflow messaging to reflect issue creation
✅ Minimal, surgical changes following Q principles
✅ Follows documented safe-outputs configuration patterns
Fixes #13861
To apply the patch locally:
Show patch (45 lines)