Skip to content

Commit

Permalink
[fabricbot] Handle the 'need-repro' label. (#17272)
Browse files Browse the repository at this point in the history
Handle the 'need-repro' label like the 'need-info' label:

* Add a comment that we need a repro, and how to get one.
* Close the issue if no comments within 7 days.
* Add a 'need-attention' label if reporter comments.

Also add a document explaining how to create a repro, modeled after (copied)
MAUI's document (https://github.com/dotnet/maui/blob/main/.github/repro.md).
  • Loading branch information
rolfbjarne authored Jan 18, 2023
1 parent f2cbd76 commit 49c3fd4
Show file tree
Hide file tree
Showing 2 changed files with 420 additions and 11 deletions.
272 changes: 261 additions & 11 deletions .github/fabricbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,39 @@
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssuesOnlyResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "labelAdded",
"parameters": {
"label": "need-repro"
}
}
]
},
"eventType": "issue",
"eventNames": [
"issues",
"project_card"
],
"taskName": "Add comment when 'need-repro' is applied to issue",
"actions": [
{
"name": "addReply",
"parameters": {
"comment": "Hi @${issueAuthor}. We have added the \"need-repro\" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/xamarin/xamarin-macios/blob/main/docs/bug-repro.md\n\nThis issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time."
}
}
]
}
},
{
"taskType": "scheduled",
"capabilityId": "ScheduledSearch",
Expand Down Expand Up @@ -198,21 +231,215 @@
{
"name": "isOpen",
"parameters": {}
},
}, {
"name": "hasLabel",
"parameters": {
"label": "need-info"
}
},
{
"name": "hasLabel",
"name": "noActivitySince",
"parameters": {
"label": "need-info"
"days": 7
}
}
],
"taskName": "[Idle Issue Management] Close stale 'need-info' issues",
"actions": [
{
"name": "addReply",
"parameters": {
"comment": "Hi @${issueAuthor}. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you."
}
},
{
"name": "closeIssue",
"parameters": {}
}
]
}
},
{
"taskType": "scheduled",
"capabilityId": "ScheduledSearch",
"subCapability": "ScheduledSearch",
"version": "1.1",
"config": {
"frequency": [
{
"weekDay": 1,
"hours": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
],
"timezoneOffset": -5
},
{
"weekDay": 2,
"hours": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
],
"timezoneOffset": -5
},
{
"weekDay": 3,
"hours": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
],
"timezoneOffset": -5
},
{
"weekDay": 4,
"hours": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
],
"timezoneOffset": -5
},
{
"weekDay": 5,
"hours": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
],
"timezoneOffset": -5
}
],
"searchTerms": [
{
"name": "isIssue",
"parameters": {}
},
{
"name": "isOpen",
"parameters": {}
},
{
"name": "hasLabel",
"parameters": {
"label": "need-repro"
}
},
{
"name": "noActivitySince",
"parameters": {
"days": 7
}
}
],
"taskName": "[Idle Issue Management] Close stale 'need-info' issues",
"taskName": "[Idle Issue Management] Close stale 'need-repro' issues",
"actions": [
{
"name": "addReply",
Expand Down Expand Up @@ -246,12 +473,23 @@
"name": "isOpen",
"parameters": {}
},
{
"name": "hasLabel",
"parameters": {
"label": "need-info"
}
},
{
"operator": "or",
"operands": [
{
"name": "hasLabel",
"parameters": {
"label": "need-info"
}
},
{
"name": "hasLabel",
"parameters": {
"label": "need-repro"
}
}
]
},
{
"operator": "not",
"operands": [
Expand Down Expand Up @@ -280,14 +518,20 @@
"eventNames": [
"issue_comment"
],
"taskName": "[Idle Issue Management] Replace 'need-info' with 'need-attention' label when the customer comments on an issue",
"taskName": "[Idle Issue Management] Replace 'need-info' and 'need-repro' with 'need-attention' label when the customer comments on an issue",
"actions": [
{
"name": "removeLabel",
"parameters": {
"label": "need-info"
}
},
{
"name": "removeLabel",
"parameters": {
"label": "need-repro"
}
},
{
"name": "addLabel",
"parameters": {
Expand Down Expand Up @@ -379,6 +623,12 @@
"label": "need-info"
}
},
{
"name": "removeLabel",
"parameters": {
"label": "need-repro"
}
},
{
"name": "addLabel",
"parameters": {
Expand Down
Loading

0 comments on commit 49c3fd4

Please sign in to comment.