Pattern miner: Add close-older-issues tip to status-report archetype - #256
Draft
github-actions[bot] wants to merge 1 commit into
Draft
Conversation
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.
Upstream evidence
Mined
githubnext/agentics(files/workflows/) status-report style workflows for recurring safe-output patterns not yet captured by thestatus-reportarchetype tips.workflows/team-status.md—safe-outputs.create-issue.close-older-issues: trueworkflows/repo-status.md—safe-outputs.create-issue.close-older-issues: trueworkflows/weekly-repo-map.md—safe-outputs.create-issue.close-older-issues: trueAll three are daily/weekly scheduled report generators that create a single status/report issue per run and use
close-older-issues: trueto close the prior run's issue instead of relying onskip-if-match/expires. Documented upstream ingithub/gh-aw(.github/aw/safe-outputs-content.md, line ~103): "Optional: close previous issues from same workflow (default: false)".Recurring pattern
3 upstream status-report-shaped workflows demonstrate the same shape:
create-issue+close-older-issues: trueas the deduplication mechanism for periodic report issues, backed by the gh-aw core docs describing the option.Why the library didn't already cover it
patterns/archetypes/status-report.jsononly listedskip-if-match+expiresas the deduplication tip.close-older-issuesis a distinct, commonly used alternative (close the prior issue on new run) not previously mentioned anywhere inpatterns/.What changed
patterns/archetypes/status-report.json: appended one tip describingclose-older-issues: trueas an alternative toskip-if-matchfor status-report deduplication. No other fields touched (success_rate, count, top_repos, anti_patterns, triggers, safe_outputs, tools all unchanged).Validation
npm test: 318 passed (18 test files)npm run build: succeededCandidates considered and left out
discussion-task-miner.md) — single upstream example scanning Discussions to create issues; no second corroborating workflow or explicit doc recommendation, so it doesn't meet the two-workflow threshold for a new archetype.sub-issue-closer.md) — overlaps with the existingissue-hierarchy-managerarchetype's "close parent issues once sub-issues complete" tip; not additive.weekly-repo-map.md); insufficient corroboration for a new archetype.tech-content-editorial-board.md) — overlaps significantly with existingcode-health-auditoranddocumentation-updaterarchetypes (issue + PR dual safe-outputs, quality focus); not a distinct recurring shape.glossary-maintainer.md,unbloat-docs.md,tech-content-editorial-board.md) — already captured by the existing tip "Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix" incode-improvementanddocumentation-updater.