Repository navigation
Align policy event filters with dotnet/runtime - #7699
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The filter additions are consistent with existing policy syntax in this repo and directly address the issue/PR event-type ambiguity without changing timing or messaging behavior.
Pull request overview
Updates the repository’s policy-bot event filters so that “remove no-recent-activity” responders correctly distinguish between issues and pull requests, aligning behavior with dotnet/runtime and preventing label churn.
Changes:
- Add
isIssueto theIssue_Commentresponder that removesno-recent-activityfor issues. - Add
isPullRequestto the PR-related responders that removeno-recent-activity(PR update, PR comment, PR review).
File summaries
| File | Description |
|---|---|
| .github/policies/resourceManagement.yml | Narrows inactivity-label removal responders to the intended resource type (issue vs PR) to avoid unintended triggers. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
rosebyte
approved these changes
Sep 9, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Add
isIssueandisPullRequestfilters to the inactivity, author-action, and community-contribution handlers. Excludedependabot[bot]from community-contribution labeling. This matches the dotnet/runtime event filters.The warning messages and 14-day inactivity periods remain unchanged. This change does not add a policy-bot exclusion.
Context
Related to #7569, where the policy bot repeatedly added and removed
no-recent-activity. This PR aligns the event filters with runtime