FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#109)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
This commit is contained in:
microsoft-github-policy-service[bot] 2023-07-17 14:42:55 +02:00 коммит произвёл GitHub
Родитель 324355ba7d
Коммит f86c4350e4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 235 добавлений и 1568 удалений

1568
.github/fabricbot.json поставляемый

Разница между файлами не показана из-за своего большого размера Загрузить разницу

235
.github/policies/resourceManagement.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,235 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: needs author feedback
- noActivitySince:
days: 4
- isNotLabeledWith:
label: no recent activity
actions:
- addLabel:
label: no recent activity
- addReply:
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. Thank you ${issueAuthor} for your contributions to the repository!
- description:
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: no recent activity
- noActivitySince:
days: 3
actions:
- addReply:
reply: Because of of no activity for over 7 days, we're closing this issue. Please open a new issue report if more support is required. Thank you for your support ${issueAuthor}!
- closeIssue
- description:
frequencies:
- hourly:
hour: 3
filters:
- isOpen
- hasLabel:
label: duplicate
- noActivitySince:
days: 3
actions:
- addReply:
reply: Because this issue is marked as a duplicate and has not had activity for over 3 days, we're closing this issue for house-keeping purposes. Please refer to the issue that this issue was duplicated to for the purposes of tracking progress. Thank you for your support ${issueAuthor}!
- closeIssue
- description:
frequencies:
- hourly:
hour: 12
filters:
- isOpen
- isIssue
- hasLabel:
label: investigate
- noActivitySince:
days: 14
actions:
- addReply:
reply: "${assignees}\nGentle ping that this issue needs attention. "
- description:
frequencies:
- hourly:
hour: 3
filters:
- isOpen
- hasLabel:
label: invalid
- noActivitySince:
days: 3
actions:
- addReply:
reply: Because this issue is marked as by invalid and has not had activity for over 3 days, we're automatically closing it for house-keeping purposes.
- closeIssue
- description:
frequencies:
- hourly:
hour: 3
filters:
- isPullRequest
- isOpen
- hasLabel:
label: needs author feedback
- noActivitySince:
days: 7
- isNotLabeledWith:
label: no recent activity
actions:
- addLabel:
label: no recent activity
- addReply:
reply: This pull request has been automatically marked as stale because it was marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 5 days of this comment**. Thank you for your contributions to this project!
eventResponderTasks:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: no recent activity
- isAction:
action: Created
- isOpen
then:
- removeLabel:
label: no recent activity
- addLabel:
label: investigate
description:
- if:
- payloadType: Issues
- not:
isAction:
action: Closed
- hasLabel:
label: no recent activity
- not:
labelAdded:
label: no recent activity
then:
- removeLabel:
label: no recent activity
description:
- if:
- payloadType: Issue_Comment
then:
- cleanEmailReply
description:
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- activitySenderHasAssociation:
association: FirstTimer
- activitySenderHasAssociation:
association: FirstTimeContributor
then:
- addReply:
reply: 'Thanks for submitting your first PR to this repository. Continue the great work and thanks for supporting and making this project successful. '
description:
- if:
- payloadType: Pull_Request_Review
- isAction:
action: Submitted
- isReviewState:
reviewState: Changes_requested
then:
- addLabel:
label: needs author feedback
description:
- if:
- payloadType: Pull_Request
- isActivitySender:
issueAuthor: True
- not:
isAction:
action: Closed
- or:
- hasLabel:
label: needs author feedback
- hasLabel:
label: no recent activity
then:
- removeLabel:
label: needs author feedback
- removeLabel:
label: no recent activity
- addLabel:
label: review
description:
- if:
- payloadType: Pull_Request
- isAction:
action: Null
- isOpen
then:
- addLabel:
label: review
description:
- if:
- payloadType: Pull_Request_Review
- isAction:
action: Submitted
- isOpen
then:
- removeLabel:
label: review
- removeLabel:
label: no recent activity
description:
- if:
- payloadType: Issue_Comment
- isActivitySender:
issueAuthor: True
- or:
- hasLabel:
label: needs author feedback
- hasLabel:
label: no recent activity
then:
- removeLabel:
label: needs author feedback
- removeLabel:
label: no recent activity
- addLabel:
label: review
description:
- if:
- payloadType: Pull_Request_Review
- isActivitySender:
issueAuthor: True
- or:
- hasLabel:
label: needs author feedback
- hasLabel:
label: no recent activity
then:
- removeLabel:
label: needs author feedback
- removeLabel:
label: no recent activity
- addLabel:
label: review
description:
onFailure:
onSuccess: