Repository navigation
Align issue and PR auto-close automation across Azure Monitor repositories - #2786
Merged
Hector Hernandez (hectorhdzg) merged 8 commits intoOct 22, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved opt-out, PR feedback handling, and shared checkpoint issues undermine the intended automation policy.
3 open issues
What changed in this PR
Aligns repository issue and PR lifecycle automation with the shared Application Insights and OpenTelemetry distro policy.
Changes:
- Adds author-feedback notifications, label removal on replies, and scheduled reminders and closure.
- Changes general inactivity handling to 90 days plus a 14-day warning, with throttled, oldest-first processing.
- Consolidates assigned-item handling into the main stale workflow and sequences the abandonment and stale policies.
| File | Description |
|---|---|
.github/workflows/stale.yml |
Updates inactivity thresholds, exemptions, throttling, and job ordering. |
.github/workflows/stale-assigned.yml |
Removes the separate workflow for assigned items. |
.github/workflows/needs-author-feedback.yml |
Notifies issue authors and removes the feedback label on replies. |
.github/workflows/needs-author-feedback-followup.yml |
Adds daily feedback reminders and automatic closure. |
Review effort: Balanced
…ories - needs-author-feedback.yml / needs-author-feedback-followup.yml: notify the author when the label is added, remind at 7 days, close at 14 days, and drop the label when the author replies - stale.yml: 90 days stale + 14 days close for general inactivity (oldest first, throttled); PRs inactive 30 days marked abandoned; wontfix/abandoned closed after 14+14 days; jobs run sequentially Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Hector Hernandez (hectorhdzg)
force-pushed
the
hectorh/align-issue-automation
branch
from
October 21, 2026 22:41
dc93595 to
c03a136
Compare
- stale.yml: use a single actions/stale invocation. The action persists progress under one fixed cache key, so multiple throttled jobs overwrote each other's checkpoints. Issues: 90 days stale + 14 close. PRs: 30 days stale + 14 close. This replaces the separate abandoned/wontfix jobs, applies one consistent PR exemption list, and lets PRs labeled needs-author-feedback close normally. - needs-author-feedback-followup.yml: skip issues labeled keep, and remove the label before closing so an author reply racing the run (label already gone) leaves the issue open. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Re-check issue state, labels and author replies right before auto-closing - Remove needs-author-feedback only after a successful close so failures retry - Ignore applied markers from an earlier feedback round - Reopen auto-closed issues when the author replies - Exempt waiting labels for PRs too Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Skip auto-close if the label was reapplied during the run - Reopen if the author replied while the issue was being closed - Reply handler uses current issue state, ignores replies older than the latest label, and only reopens bot closures from the current round Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Read state_reason from the fetched issue (closed events do not expose it) - Count author replies from the latest label application so answers before a backfilled marker are honored Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Radhika Gupta (rads-1996)
approved these changes
Oct 22, 2026
Jackson Weber (JacksonWeber)
approved these changes
Oct 22, 2026
Hector Hernandez (hectorhdzg)
deleted the
hectorh/align-issue-automation
branch
October 22, 2026 20:28
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.

Aligns issue and PR auto-close automation across the Azure Monitor repositories so they all follow the same rules. The same three workflow files are used in each repo.
Rules
needs-author-feedbackneeds-author-feedbacklabel added / author commentsneeds-author-feedback-followupkeepopts out)stalestale, closed 14 days later. PRs: 30 days →stale, closed 14 days later. Oldest first and throttled so existing backlogs are worked down graduallystaleintentionally uses a singleactions/staleinvocation: the action persists its progress under one fixed cache key, so multiple invocations would overwrite each other's progress.Exempt from inactivity closure:
keep,needs-team-attention, waiting labels (waiting,waiting-external,waiting for backend fix,waiting - CDN deployment,fixed - waiting release), and milestoned items. Issues are also exempt when labeledbugorneeds-author-feedback(the latter is handled by the follow-up workflow). Any comment or update resets the clock.Feedback flow safeguards: the follow-up re-checks state, label round and author replies right before closing, removes the label only after a successful close (failures retry next run), and reopens if a reply races the close. The reply handler ignores replies older than the latest label, skips bot-authored issues, and never reverses a maintainer's manual close.
Follow-up (not in this PR)
Rename
information requestedtoneeds-author-feedbackso existing items are picked up.Repo-specific
stale-assigned.ymland the separatemark-abandoned/stale-wontfixjobs; all items are covered by the singlestalejob.enhancement/documentation/ assigned items are no longer exempt, so long-inactive issues will be warned and closed gradually.