1946 строки
45 KiB
JSON
1946 строки
45 KiB
JSON
{
|
|
"version": "1.0",
|
|
"tasks": [
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssuesOnlyResponder",
|
|
"version": "1.0",
|
|
"id": "5pzajGomx",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "opened"
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isPartOfProject",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isAssignedToSomeone",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "bug :bug:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"taskName": "Add \"needs triage\" label to new issues",
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs triage :mag:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Hello ${issueAuthor}, thank you for opening an issue with us! \n\nI have automatically added a \"needs triage\" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssueCommentResponder",
|
|
"version": "1.0",
|
|
"id": "4N-DUiekZ",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "created"
|
|
}
|
|
},
|
|
{
|
|
"name": "isActivitySender",
|
|
"parameters": {
|
|
"user": {
|
|
"type": "author"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issue_comment"
|
|
],
|
|
"taskName": "Replace needs author feedback label with needs attention label when the author comments on an issue",
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs attention :wave:"
|
|
}
|
|
},
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssuesOnlyResponder",
|
|
"version": "1.0",
|
|
"id": "DyYzZPCBY",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "edited"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"taskName": "Remove \"no-recent-activity\" label from issues",
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Glad to have you back! I have removed the \"no-recent-activity\" label due to the occurrence of an activity. "
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssueCommentResponder",
|
|
"version": "1.0",
|
|
"id": "2jqR_WTWU",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issue_comment"
|
|
],
|
|
"taskName": "Remove \"no-recent-activity\" label when an issue is commented on",
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"id": "dbz-AWXiU",
|
|
"config": {
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isIssue",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 30
|
|
}
|
|
}
|
|
],
|
|
"taskName": "Close stale issues",
|
|
"actions": [
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "This issue has been automatically closed because it was marked as requiring author feedback but has not had any activity for over **30 days**."
|
|
}
|
|
},
|
|
{
|
|
"name": "closeIssue",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"id": "gq0aOE3MB",
|
|
"config": {
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isIssue",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 14
|
|
}
|
|
},
|
|
{
|
|
"name": "noLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
],
|
|
"taskName": "Add \"no-recent-activity\" label to Stale issues",
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **14 days**. It will be closed if no further activity occurs **within 30 days of this comment**."
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"id": "dIyePZLO4",
|
|
"config": {
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isIssue",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "duplicate :busts_in_silhouette:"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 1
|
|
}
|
|
}
|
|
],
|
|
"taskName": "Close duplicate issues",
|
|
"actions": [
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes."
|
|
}
|
|
},
|
|
{
|
|
"name": "closeIssue",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssuesOnlyResponder",
|
|
"version": "1.0",
|
|
"id": "StMs9eRvR",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "opened"
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isPartOfProject",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isAssignedToSomeone",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "feature request :mailbox_with_mail:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"taskName": "Add Voting to new Feature Requests",
|
|
"actions": [
|
|
{
|
|
"name": "addReactionToIssue",
|
|
"parameters": {
|
|
"reaction": "+1"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Thanks for submitting a new feature request! I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future. "
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"id": "qXbAfPg34",
|
|
"config": {
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
1,
|
|
4,
|
|
7,
|
|
10,
|
|
13,
|
|
16,
|
|
19,
|
|
22
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isIssue",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs triage :mag:"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 15
|
|
}
|
|
}
|
|
],
|
|
"taskName": "Issue needs attention",
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs attention :wave:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "This issue has been marked as \"needs attention 👋\" due to no activity for **15 days**. Please triage the issue so the fix can be established. "
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "InPrLabel",
|
|
"subCapability": "InPrLabel",
|
|
"version": "1.0",
|
|
"id": "7FAvK3zgG",
|
|
"config": {
|
|
"taskName": "Issues labeled as \"In-PR\" and Fixed when the merge is in-progress and completes ",
|
|
"label_inPr": "In-PR :rocket:",
|
|
"fixedLabelEnabled": true,
|
|
"label_fixed": "Completed :fire:"
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestResponder",
|
|
"version": "1.0",
|
|
"id": "HZsHnNoBU",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "opened"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request",
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"taskName": "Opened Pull Requests",
|
|
"actions": [
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Thanks ${issueAuthor} for opening a Pull Request! The reviewers will test the PR and highlight if there is any merge conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌"
|
|
}
|
|
},
|
|
{
|
|
"name": "assignToGitHubUserGroup",
|
|
"parameters": {
|
|
"groupId": "5dd8727f90bf2e113c0e8860"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestReviewResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Add \"needs author feedback\" label to pull requests when changes are requested",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "submitted"
|
|
}
|
|
},
|
|
{
|
|
"name": "isReviewState",
|
|
"parameters": {
|
|
"state": "changes_requested"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request_review"
|
|
]
|
|
},
|
|
"id": "viqHVPbyug"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Remove \"needs author feedback\" label when the author responds to a pull request",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isActivitySender",
|
|
"parameters": {
|
|
"user": {
|
|
"type": "author"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "closed"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request",
|
|
"issues",
|
|
"project_card"
|
|
]
|
|
},
|
|
"id": "NK_y4G8dhy"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestCommentResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Remove needs author feedback label when the author comments on a pull request",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isActivitySender",
|
|
"parameters": {
|
|
"user": {
|
|
"type": "author"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"issue_comment"
|
|
]
|
|
},
|
|
"id": "CHRNKCBjeb"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestReviewResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Remove needs author feedback label when the author responds to a pull request review comment",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isActivitySender",
|
|
"parameters": {
|
|
"user": {
|
|
"type": "author"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request_review"
|
|
]
|
|
},
|
|
"id": "68PJt-ORU4"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Remove no recent activity label from pull requests",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "closed"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request",
|
|
"issues",
|
|
"project_card"
|
|
]
|
|
},
|
|
"id": "_HNejd8xX5"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestCommentResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Remove no recent activity label when a pull request is commented on",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"issue_comment"
|
|
]
|
|
},
|
|
"id": "lXGIjgJeF-"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestReviewResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"taskName": "Remove no recent activity label when a pull request is reviewed",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"actions": [
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
],
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request_review"
|
|
]
|
|
},
|
|
"id": "ZY1nHESD54"
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"config": {
|
|
"taskName": "Close Stale pull requests",
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
2,
|
|
5,
|
|
8,
|
|
11,
|
|
14,
|
|
17,
|
|
20,
|
|
23
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isPr",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 45
|
|
}
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "closeIssue",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
"id": "h25ypwJmSc"
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"config": {
|
|
"taskName": "Add no recent activity label to pull requests",
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isPr",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 15
|
|
}
|
|
},
|
|
{
|
|
"name": "noLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **15 days**. It will be closed if no further activity occurs **within 30 days of this comment**."
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"id": "ZEyw4s34X8"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssueCommentResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "created"
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 7
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isCloseAndComment",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "isActivitySender",
|
|
"parameters": {
|
|
"user": {
|
|
"type": "author"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "activitySenderHasPermissions",
|
|
"parameters": {
|
|
"permissions": "none"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issue_comment"
|
|
],
|
|
"taskName": "For issues closed due to inactivity, re-open an issue if issue author posts a reply within 7 days.",
|
|
"actions": [
|
|
{
|
|
"name": "reopenIssue",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "no-recent-activity :chart_with_downwards_trend:"
|
|
}
|
|
},
|
|
{
|
|
"name": "removeLabel",
|
|
"parameters": {
|
|
"label": "needs author feedback :memo:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs attention :wave:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"id": "vmGbnVh6x"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssueCommentResponder",
|
|
"version": "1.0",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "created"
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isOpen",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "activitySenderHasPermissions",
|
|
"parameters": {
|
|
"permissions": "none"
|
|
}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 7
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isCloseAndComment",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issue_comment"
|
|
],
|
|
"taskName": "For issues closed with no activity over 7 days, ask non-contributor to consider opening a new issue instead.",
|
|
"actions": [
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you!"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"id": "loPZaSRzko"
|
|
},
|
|
{
|
|
"taskType": "scheduled",
|
|
"capabilityId": "ScheduledSearch",
|
|
"subCapability": "ScheduledSearch",
|
|
"version": "1.1",
|
|
"config": {
|
|
"frequency": [
|
|
{
|
|
"weekDay": 0,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 1,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 2,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 3,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 4,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 5,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
},
|
|
{
|
|
"weekDay": 6,
|
|
"hours": [
|
|
0,
|
|
3,
|
|
6,
|
|
9,
|
|
12,
|
|
15,
|
|
18,
|
|
21
|
|
],
|
|
"timezoneOffset": -8
|
|
}
|
|
],
|
|
"searchTerms": [
|
|
{
|
|
"name": "isClosed",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "noActivitySince",
|
|
"parameters": {
|
|
"days": 30
|
|
}
|
|
},
|
|
{
|
|
"name": "isUnlocked",
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "isIssue",
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"taskName": "Lock issues closed without activity for over 30 days",
|
|
"actions": [
|
|
{
|
|
"name": "lockIssue",
|
|
"parameters": {
|
|
"reason": "resolved"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"id": "RSJcQJcT1z"
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "EmailCleanser",
|
|
"subCapability": "EmailCleanser",
|
|
"version": "1.0",
|
|
"id": "u7bsIlgwe",
|
|
"config": {
|
|
"taskName": "Remove Quoted Email Content "
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssuesOnlyResponder",
|
|
"version": "1.0",
|
|
"id": "vst-bcaFE",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "opened"
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isPartOfProject",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isAssignedToSomeone",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "hasLabel",
|
|
"parameters": {
|
|
"label": "question :grey_question:"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"taskName": "Add Question Label ",
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs triage :mag:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Hello ${issueAuthor}, thank you for your interest in Graph Controls!\n\nI have automatically added a \"needs triage\" label to help get things started. Our team will look into the question and answer ASAP. Other community members may also answer the question and provide feedback 🙌"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "IssuesOnlyResponder",
|
|
"version": "1.0",
|
|
"id": "BGa3cCctW",
|
|
"config": {
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "opened"
|
|
}
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isPartOfProject",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isAssignedToSomeone",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"operator": "not",
|
|
"operands": [
|
|
{
|
|
"name": "isLabeled",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"eventType": "issue",
|
|
"eventNames": [
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"taskName": "Add \"Need Triage\" label to blank template ",
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "needs triage :mag:"
|
|
}
|
|
},
|
|
{
|
|
"name": "addReply",
|
|
"parameters": {
|
|
"comment": "Hello ${issueAuthor}, thank you for opening an issue with us! \n\nI have automatically added a \"needs triage\" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"userGroups": []
|
|
}
|