Skip to content

Commit

Permalink
Onboarding to GitOps.ResourceManagement (#2535)
Browse files Browse the repository at this point in the history
* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: velimir-jankovic <[email protected]>
  • Loading branch information
1 parent 8d5cf4c commit 9ad95ab
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 318 deletions.
318 changes: 0 additions & 318 deletions .github/fabricbot.json

This file was deleted.

64 changes: 64 additions & 0 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 4
filters:
- isOpen
- isNotLabeledWith:
label: bug
- isNotLabeledWith:
label: security
- isNotLabeledWith:
label: stale
- isNotLabeledWith:
label: do not close
- noActivitySince:
days: 60
- isIssue
- isNotAssigned
actions:
- addLabel:
label: stale
- addReply:
reply: This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
- description:
frequencies:
- hourly:
hour: 6
filters:
- isOpen
- isIssue
- hasLabel:
label: stale
- isNotLabeledWith:
label: bug
- isNotLabeledWith:
label: do not close
- isNotAssigned
- noActivitySince:
days: 15
actions:
- addReply:
reply: This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.
- closeIssue
eventResponderTasks:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: stale
then:
- removeLabel:
label: stale
description:
onFailure:
onSuccess:

0 comments on commit 9ad95ab

Please sign in to comment.