Configure PR auto-close after 2 weeks of inactivity - #6336
Merged
Conversation
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Configure auto close for inactive PRs after two weeks
Configure PR auto-close after 2 weeks of inactivity
Dec 9, 2025
JeffreyCA
marked this pull request as ready for review
December 9, 2025 19:47
JeffreyCA
requested review from
danieljurek,
rajeshkamal5050,
tg-msft and
vhvb1989
as code owners
December 9, 2025 19:47
JeffreyCA
approved these changes
Dec 9, 2025
JeffreyCA
enabled auto-merge (squash)
December 9, 2025 21:12
Contributor
|
/check-enforcer override |
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.
Configures GitHub resource management policy to auto-close stale PRs after 2 weeks, with warning at 1 week.
Changes
no-recent-activitylabelTimeline
no-recent-activitylabel + warning commentAuthors can reopen by commenting
/reopenor pushing new commits (removes label and resets timer).Original prompt
This section details on the original issue you should resolve
<issue_title>Auto close PRs > 2 weeks without activity</issue_title>
<issue_description>The https://github.com/Azure/azure-dev/blob/main/.github/policies/resourceManagement.yml file is responsible for controlling this.
Configure to auto close PRs > 2 weeks without activity, with a warning at the 1 week mark.</issue_description>
<agent_instructions>Documentation: