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

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

 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: dotnet-policy-service[bot] <123482357+dotnet-policy-service[bot]@users.noreply.github.com>
This commit is contained in:
dotnet-policy-service[bot] 2024-02-06 14:14:36 -08:00 коммит произвёл GitHub
Родитель 891d6702da
Коммит d9fc8c07ee
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 18 добавлений и 33 удалений

33
.github/fabricbot.json поставляемый
Просмотреть файл

@ -1,33 +0,0 @@
{
"version": "1.0",
"tasks": [
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssuesOnlyResponder",
"version": "1.0",
"id": "P6vsCOatS",
"config": {
"conditions": {
"operator": "and",
"operands": []
},
"eventType": "issue",
"eventNames": [
"issues",
"project_card"
],
"taskName": "Lock new issues",
"actions": [
{
"name": "lockIssue",
"parameters": {
"reason": "resolved"
}
}
]
}
}
],
"userGroups": []
}

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

@ -0,0 +1,18 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches: []
eventResponderTasks:
- if:
- payloadType: Issues
then:
- lockIssue
description: Lock new issues
onFailure:
onSuccess: