Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fabric Bot configuration for managing "WaitingFor" labels for issues in home repo #11074

Merged
merged 2 commits into from
Aug 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
253 changes: 253 additions & 0 deletions .github/fabricbot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
[
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssuesOnlyResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "opened"
}
},
{
"operator": "or",
"operands": [
{
"name": "isActivitySender",
"parameters": {
"user": "vsfeedback"
}
},
{
"name": "bodyContains",
"parameters": {
"bodyPattern": "Copied from original issue"
}
},
{
"name": "bodyContains",
"parameters": {
"bodyPattern": "Issue moved from"
}
}
]
}
]
},
"eventType": "issue",
"eventNames": [
"issues",
"project_card"
],
"taskName": "Tag \"Transferred issue\" if it's transferred from vsfeedback or other github repo.",
"actions": [
{
"name": "addLabel",
"parameters": {
"label": "Transferred issue"
}
}
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssueCommentResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "created"
}
},
{
"name": "hasLabel",
"parameters": {
"label": "WaitingForCustomer"
}
},
{
"name": "isOpen",
"parameters": {}
},
{
"operator": "or",
"operands": [
{
"operator": "and",
"operands": [
{
"name": "hasLabel",
"parameters": {
"label": "Transferred issue"
}
},
{
"operator": "not",
"operands": [
{
"name": "activitySenderHasPermissions",
"parameters": {
"permissions": "write"
}
}
]
}
]
},
{
"name": "isActivitySender",
"parameters": {
"user": {
"type": "author"
}
}
}
]
}
]
},
"eventType": "issue",
"eventNames": [
"issue_comment"
],
"taskName": "Replace tag \"WaitingForCustomer\" with \"WaitingForClientTeam\" when the author comments on an issue.",
"actions": [
{
"name": "removeLabel",
"parameters": {
"label": "WaitingForCustomer"
}
},
{
"name": "addLabel",
"parameters": {
"label": "WaitingForClientTeam"
}
}
]
}
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssuesOnlyResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "closed"
}
},
{
"operator": "or",
"operands": [
{
"name": "hasLabel",
"parameters": {
"label": "WaitingForClientTeam"
}
},
{
"name": "hasLabel",
"parameters": {
"label": "WaitingForCustomer"
}
}
]
}
]
},
"eventType": "issue",
"eventNames": [
"issues",
"project_card"
],
"taskName": "Remove any \"WaitingFor\" label when the issue is closed",
"actions": [
{
"name": "removeLabel",
"parameters": {
"label": "WaitingForClientTeam"
}
},
{
"name": "removeLabel",
"parameters": {
"label": "WaitingForCustomer"
}
}
]
},
"disabled": false
},
{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "IssueCommentResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isAction",
"parameters": {
"action": "created"
}
},
{
"name": "hasLabel",
"parameters": {
"label": "WaitingForClientTeam"
}
},
{
"name": "isOpen",
"parameters": {}
},
{
"name": "activitySenderHasPermissions",
"parameters": {
"permissions": "write"
}
}
]
},
"eventType": "issue",
"eventNames": [
"issue_comment"
],
"taskName": "Replace tag \"WaitingForClientTeam\" with \"WaitingForCustomer\" when client team comments on an issue.",
"actions": [
{
"name": "removeLabel",
"parameters": {
"label": "WaitingForClientTeam"
}
},
{
"name": "addLabel",
"parameters": {
"label": "WaitingForCustomer"
}
}
]
},
"disabled": false
}
]