Repository navigation
Align issue and PR auto-close automation across Azure Monitor repositories - #270
Merged
Hector Hernandez (hectorhdzg) merged 2 commits intoOct 22, 2026
Merged
Conversation
…ories Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Hector Hernandez (hectorhdzg)
requested review from
Jackson Weber (JacksonWeber) and
Leighton Chen (lzchen)
as code owners
October 21, 2026 23:42
Hector Hernandez (hectorhdzg)
requested review from
Nev (MSNev),
Jeremy Voss (jeremydvoss) and
Radhika Gupta (rads-1996)
as code owners
October 21, 2026 23:42
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Late-reply recovery can reopen an issue after a maintainer has manually closed it.
1 open issue
What changed in this PR
Aligns issue and pull request auto-close automation with the shared Azure Monitor repository policy.
Changes:
- Adds throttled inactivity handling with separate issue and PR timelines and configured exemptions.
- Extends author-reply handling to reopen feedback-closed issues while checking closure history.
- Adds feedback follow-up safeguards for opt-outs, label rounds, retries, and replies arriving during closure.
| File | Description |
|---|---|
.github/workflows/stale.yml |
Adds scheduled inactivity reminders and closure rules. |
.github/workflows/needs-author-feedback.yml |
Adds current-state and closure-history checks for author replies. |
.github/workflows/needs-author-feedback-followup.yml |
Adds opt-outs, pre-close checks, and late-reply recovery. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Jackson Weber (JacksonWeber)
approved these changes
Oct 22, 2026
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.
Repo-specific
needs-author-feedbackworkflows to the shared version (addskeepopt-out, reopen on author reply, and race/retry safeguards) and addsstale. Workflow-only change, soskip-changelogis applied.