Onboarding to GitOps.ResourceManagement (#33)

* 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>
This commit is contained in:
microsoft-github-policy-service[bot] 2024-02-27 15:46:57 -08:00 коммит произвёл GitHub
Родитель 933dc839b5
Коммит 383e43c7fa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 27 добавлений и 44 удалений

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

@ -1,44 +0,0 @@
{
"version": "1.0",
"tasks": [
{
"taskType": "trigger",
"capabilityId": "CodeFlowLink",
"subCapability": "CodeFlowLink",
"version": "1.0",
"id": "sau7Bu2WS",
"config": {
"taskName": "ESE - CodeFlow Link"
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "PullRequestResponder",
"version": "1.0",
"id": "pnLzYErZr",
"config": {
"conditions": {
"operator": "and",
"operands": []
},
"eventType": "pull_request",
"eventNames": [
"pull_request",
"issues",
"project_card"
],
"actions": [
{
"name": "assignToUser",
"parameters": {
"user": "@2BitSalute"
}
}
],
"taskName": "PR Event Responder"
}
}
],
"userGroups": []
}

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

@ -0,0 +1,27 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches: []
eventResponderTasks:
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
then:
- addCodeFlowLink
description:
- if:
- payloadType: Pull_Request
then:
- assignTo:
users:
- '@2BitSalute'
description:
onFailure:
onSuccess: