Pattern miner: Add close-older-issues tip to status-report archetype - #283
Draft
github-actions[bot] wants to merge 1 commit into
Draft
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Upstream repo-status.md, team-status.md, weekly-repo-map.md, and contribution-check.md all use safe-outputs.create-issue.close-older-issues: true for recurring reports instead of skip-if-match, and the gh-aw maintainer docs (report.md, github-agentic-workflows.md, create-agentic-workflow-trigger-details.md) recommend it as the default for recurring digests so each scheduled run always executes and supersedes the previous report. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds one refinement tip to the
status-reportarchetype: preferclose-older-issues: trueoncreate-issueoverskip-if-matchfor recurring reports.Upstream evidence
Mined
githubnext-agenticsworkflow files andgithub-gh-awmaintainer docs:workflows/repo-status.md—safe-outputs.create-issue.close-older-issues: true, noskip-if-matchworkflows/team-status.md— same shape (close-older-issues: true)workflows/weekly-repo-map.md—close-older-issues: truealongsideexpires/maxworkflows/contribution-check.md—close-older-issues: trueon its recurring report issueThat's four upstream workflows demonstrating the same recurring-report shape, plus corroborating docs in
github-gh-aw:.github/aw/report.md— "Recommended for recurring reports:create-issuewithclose-older-issues: true"; also documentsclose-older-issuesexplicitly closing the prior matching issue vs.skip-if-matchwhich skips activation while one remains open.github/aw/create-agentic-workflow-trigger-details.mdand.github/aw/github-agentic-workflows.md— recommendclose-older-issues: truefor recurring digest patternsWhy this wasn't already covered
The existing
status-reportarchetype only recommendedskip-if-match+expiresfor duplicate prevention.skip-if-matchskips the whole run while a matching issue is open, whereasclose-older-issueslets every scheduled run execute and supersede the prior report — the behavior four of the observed upstream status/report workflows actually use. No existing tip, trigger combo, or archetype captured this distinction;community-digestalready had the discussion equivalent (close-older-discussions) but nothing documented the issue-based lifecycle option forstatus-report.What changed
patterns/archetypes/status-report.json— appended one tip totipsscripts/generate-patterns.py— appended the same tip to thestatus-reportconfig so regeneration won't drop it (curated tips for measured archetypes are read fromarchetype_configin the script, not preserved automatically like curated-archetype files)No triggers, safe outputs, tools, timeout, or measured fields (
success_rate,count,top_repos) were touched.Candidates left out
discussion-task-miner-style archetype (mining GitHub Discussions into issues): only one upstream workflow (discussion-task-miner.md) demonstrates this shape with no corroborating doc recommendation — doesn't meet the two-workflow (or one-workflow-plus-doc) bar.repo-chronicle/ narrative digest viacreate-discussion: already fully covered by the existingcommunity-digestarchetype (schedule trigger,create-discussion,close-older-discussionstip).glossary-maintainer.md,ci-coach.md, etc.): already covered by existing tips acrosscode-improvement,documentation-updater,daily-test-improver, andperformance-nut.Validation
npm test(excludingtest/copilot-instructions.test.js, which fails identically onmaindue to a stale hardcoded date assertion unrelated to this change): 324 passed, 0 failednpm run build: succeeded