Skip to content

Commit 33ab5e2

Browse files
mkArtakMSFTdougbu
andauthored
Suggest team members to run CI checks for long-standing PRs (#46848)
* Suggest team members to run CI checks for long-standing PRs * Update .github/fabricbot.json Co-authored-by: Doug Bunting <[email protected]> --------- Co-authored-by: Doug Bunting <[email protected]>
1 parent f09180f commit 33ab5e2

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/fabricbot.json

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,7 +3532,7 @@
35323532
{
35333533
"name": "addReply",
35343534
"parameters": {
3535-
"comment": "Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.\nTo make sure no breaking changes are introduced, please remove the `pending ci rerun` label to kick off a new CI run."
3535+
"comment": "Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.\nTo make sure no breaking changes are introduced, please leave an `/azp run` comment here to rerun the CI pipeline and confirm success before merging the change."
35363536
}
35373537
},
35383538
{
@@ -3548,14 +3548,27 @@
35483548
{
35493549
"taskType": "trigger",
35503550
"capabilityId": "IssueResponder",
3551-
"subCapability": "PullRequestResponder",
3551+
"subCapability": "PullRequestCommentResponder",
35523552
"version": "1.0",
35533553
"config": {
35543554
"conditions": {
35553555
"operator": "and",
35563556
"operands": [
35573557
{
3558-
"name": "labelRemoved",
3558+
"name": "activitySenderHasPermissions",
3559+
"parameters": {
3560+
"permissions": "write"
3561+
}
3562+
},
3563+
{
3564+
"name": "commentContains",
3565+
"parameters": {
3566+
"isRegex": true,
3567+
"commentPattern": "^(\\/azp run)$"
3568+
}
3569+
},
3570+
{
3571+
"name": "hasLabel",
35593572
"parameters": {
35603573
"label": "pending-ci-rerun"
35613574
}
@@ -3564,16 +3577,14 @@
35643577
},
35653578
"eventType": "pull_request",
35663579
"eventNames": [
3567-
"pull_request",
3568-
"issues",
3569-
"project_card"
3580+
"issue_comment"
35703581
],
3571-
"taskName": "Unblock PRs which are no longer awaiting for a ci run",
3582+
"taskName": "Remove pending-ci-rerun label when CI rerun requested",
35723583
"actions": [
35733584
{
3574-
"name": "addReply",
3585+
"name": "removeLabel",
35753586
"parameters": {
3576-
"comment": "/azp run"
3587+
"label": "pending-ci-rerun"
35773588
}
35783589
}
35793590
]

0 commit comments

Comments
 (0)