Onboarding to GitOps.ResourceManagement (#824)
* 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:
Родитель
a5928feca3
Коммит
d8b071852f
|
@ -1,321 +0,0 @@
|
|||
{
|
||||
"version": "1.0",
|
||||
"tasks": [
|
||||
{
|
||||
"taskType": "scheduled",
|
||||
"capabilityId": "ScheduledSearch",
|
||||
"subCapability": "ScheduledSearch",
|
||||
"version": "1.1",
|
||||
"id": "aW5MWwpyaFj4UrjS1nNk6",
|
||||
"config": {
|
||||
"frequency": [
|
||||
{
|
||||
"weekDay": 0,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
},
|
||||
{
|
||||
"weekDay": 1,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
},
|
||||
{
|
||||
"weekDay": 2,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
},
|
||||
{
|
||||
"weekDay": 3,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
},
|
||||
{
|
||||
"weekDay": 4,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
},
|
||||
{
|
||||
"weekDay": 5,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
},
|
||||
{
|
||||
"weekDay": 6,
|
||||
"hours": [
|
||||
2,
|
||||
6,
|
||||
10,
|
||||
14,
|
||||
18,
|
||||
22
|
||||
],
|
||||
"timezoneOffset": 1
|
||||
}
|
||||
],
|
||||
"searchTerms": [
|
||||
{
|
||||
"name": "isOpen",
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "noLabel",
|
||||
"parameters": {
|
||||
"label": "bug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noLabel",
|
||||
"parameters": {
|
||||
"label": "security"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noLabel",
|
||||
"parameters": {
|
||||
"label": "Stale"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noLabel",
|
||||
"parameters": {
|
||||
"label": "do not close"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noActivitySince",
|
||||
"parameters": {
|
||||
"days": 60
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "isIssue",
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "noAssignees",
|
||||
"parameters": {}
|
||||
}
|
||||
],
|
||||
"taskName": "Mark issues as stale (60 days)",
|
||||
"actions": [
|
||||
{
|
||||
"name": "addLabel",
|
||||
"parameters": {
|
||||
"label": "Stale"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "addReply",
|
||||
"parameters": {
|
||||
"comment": "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."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"taskType": "trigger",
|
||||
"capabilityId": "IssueResponder",
|
||||
"subCapability": "IssueCommentResponder",
|
||||
"version": "1.0",
|
||||
"id": "nC2slMrSNmNwnwoqMKVKP",
|
||||
"config": {
|
||||
"conditions": {
|
||||
"operator": "and",
|
||||
"operands": [
|
||||
{
|
||||
"name": "hasLabel",
|
||||
"parameters": {
|
||||
"label": "Stale"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"eventType": "issue",
|
||||
"eventNames": [
|
||||
"issue_comment"
|
||||
],
|
||||
"taskName": "Remove stale label if someone comments",
|
||||
"actions": [
|
||||
{
|
||||
"name": "removeLabel",
|
||||
"parameters": {
|
||||
"label": "Stale"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"disabled": false
|
||||
},
|
||||
{
|
||||
"taskType": "scheduled",
|
||||
"capabilityId": "ScheduledSearch",
|
||||
"subCapability": "ScheduledSearch",
|
||||
"version": "1.1",
|
||||
"id": "D9tM3u1CI4rbxcJPlX3Mo",
|
||||
"config": {
|
||||
"frequency": [
|
||||
{
|
||||
"weekDay": 0,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"weekDay": 1,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"weekDay": 2,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"weekDay": 3,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"weekDay": 4,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"weekDay": 5,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"weekDay": 6,
|
||||
"hours": [
|
||||
0,
|
||||
6,
|
||||
12,
|
||||
18
|
||||
]
|
||||
}
|
||||
],
|
||||
"searchTerms": [
|
||||
{
|
||||
"name": "isOpen",
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "isIssue",
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "hasLabel",
|
||||
"parameters": {
|
||||
"label": "Stale"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noLabel",
|
||||
"parameters": {
|
||||
"label": "bug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noLabel",
|
||||
"parameters": {
|
||||
"label": "do not close"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "noAssignees",
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "noActivitySince",
|
||||
"parameters": {
|
||||
"days": 15
|
||||
}
|
||||
}
|
||||
],
|
||||
"taskName": "Close Stale issues after 15 days",
|
||||
"actions": [
|
||||
{
|
||||
"name": "addReply",
|
||||
"parameters": {
|
||||
"comment": "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."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "closeIssue",
|
||||
"parameters": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"disabled": false
|
||||
}
|
||||
],
|
||||
"userGroups": []
|
||||
}
|
|
@ -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:
|
Загрузка…
Ссылка в новой задаче