Skip to content

Commit 7544e67

Browse files
authored
[Fabric Bot] Team Assignment Test (Azure#27219)
The focus of these changes is to introduce a set of rules for testing a potential flow for team assignments after ML Bot labels are applied. These rules are intended to be focused in scope and should not interact with scenarios outside of testing.
1 parent 0862e54 commit 7544e67

File tree

1 file changed

+205
-1
lines changed

1 file changed

+205
-1
lines changed

.github/fabricbot.json

Lines changed: 205 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4033,5 +4033,209 @@
40334033
}
40344034
]
40354035
}
4036+
},
4037+
{
4038+
"taskType": "scheduledAndTrigger",
4039+
"capabilityId": "IssueRouting",
4040+
"subCapability": "@Mention",
4041+
"version": "1.0",
4042+
"config": {
4043+
"taskName": "[SQUIRE TEST] Team Assignment",
4044+
"labelsAndMentions": [
4045+
{
4046+
"labels": [
4047+
"Event Hubs",
4048+
"Client",
4049+
"needs-team-triage"
4050+
],
4051+
"mentionees": [
4052+
"jsquire"
4053+
],
4054+
"assignToMentionees": true
4055+
},
4056+
{
4057+
"labels": [
4058+
"Service Bus",
4059+
"Client",
4060+
"needs-team-triage"
4061+
],
4062+
"mentionees": [
4063+
"JoshLove-msft",
4064+
"jsquire"
4065+
],
4066+
"assignToMentionees": true
4067+
}
4068+
],
4069+
"requireBotAssign": false
4070+
}
4071+
},
4072+
{
4073+
"taskType": "trigger",
4074+
"capabilityId": "IssueResponder",
4075+
"subCapability": "IssuesOnlyResponder",
4076+
"version": "1.0",
4077+
"config": {
4078+
"conditions": {
4079+
"operator": "and",
4080+
"operands": [
4081+
{
4082+
"name": "isOpen",
4083+
"parameters": {}
4084+
},
4085+
{
4086+
"name": "hasLabel",
4087+
"parameters": {
4088+
"label": "needs-team-triage"
4089+
}
4090+
},
4091+
{
4092+
"name": "isAction",
4093+
"parameters": {
4094+
"action": "assigned"
4095+
}
4096+
},
4097+
{
4098+
"name": "isAssignedToSomeone",
4099+
"parameters": {}
4100+
},
4101+
{
4102+
"operator": "not",
4103+
"operands": [
4104+
{
4105+
"name": "hasLabel",
4106+
"parameters": {
4107+
"label": "needs-triage"
4108+
}
4109+
}
4110+
]
4111+
}
4112+
]
4113+
},
4114+
"eventType": "issue",
4115+
"eventNames": [
4116+
"issues",
4117+
"project_card"
4118+
],
4119+
"taskName": "[SQUIRE TEST] Adjust Labels onTeam Assignment",
4120+
"actions": [
4121+
{
4122+
"name": "removeLabel",
4123+
"parameters": {
4124+
"label": "needs-team-triage"
4125+
}
4126+
}
4127+
],
4128+
"dangerZone": {
4129+
"respondToBotActions": true,
4130+
"acceptRespondToBotActions": true
4131+
}
4132+
}
4133+
},
4134+
{
4135+
"taskType": "trigger",
4136+
"capabilityId": "IssueResponder",
4137+
"subCapability": "IssuesOnlyResponder",
4138+
"version": "1.0",
4139+
"config": {
4140+
"conditions": {
4141+
"operator": "and",
4142+
"operands": [
4143+
{
4144+
"name": "isOpen",
4145+
"parameters": {}
4146+
},
4147+
{
4148+
"name": "hasLabel",
4149+
"parameters": {
4150+
"label": "needs-team-triage"
4151+
}
4152+
},
4153+
{
4154+
"operator": "not",
4155+
"operands": [
4156+
{
4157+
"name": "isAssignedToSomeone",
4158+
"parameters": {}
4159+
}
4160+
]
4161+
},
4162+
{
4163+
"operator": "not",
4164+
"operands": [
4165+
{
4166+
"name": "hasLabel",
4167+
"parameters": {
4168+
"label": "needs-triage"
4169+
}
4170+
}
4171+
]
4172+
},
4173+
{
4174+
"operator": "not",
4175+
"operands": [
4176+
{
4177+
"name": "isAction",
4178+
"parameters": {
4179+
"titlePattern": "[SQUIRE TEST]",
4180+
"action": "opened"
4181+
}
4182+
}
4183+
]
4184+
},
4185+
{
4186+
"operator": "not",
4187+
"operands": [
4188+
{
4189+
"name": "isAction",
4190+
"parameters": {
4191+
"action": "closed"
4192+
}
4193+
}
4194+
]
4195+
},
4196+
{
4197+
"operator": "not",
4198+
"operands": [
4199+
{
4200+
"name": "isAction",
4201+
"parameters": {
4202+
"action": "reopened"
4203+
}
4204+
}
4205+
]
4206+
},
4207+
{
4208+
"name": "titleContains",
4209+
"parameters": {
4210+
"titlePattern": "[SQUIRE TEST]"
4211+
}
4212+
}
4213+
]
4214+
},
4215+
"eventType": "issue",
4216+
"eventNames": [
4217+
"issues",
4218+
"project_card"
4219+
],
4220+
"taskName": "[SQUIRE TEST] Route to CXP if no Team Assignment",
4221+
"actions": [
4222+
{
4223+
"name": "removeLabel",
4224+
"parameters": {
4225+
"label": "needs-team-triage"
4226+
}
4227+
},
4228+
{
4229+
"name": "addLabel",
4230+
"parameters": {
4231+
"label": "CXP Attention"
4232+
}
4233+
}
4234+
],
4235+
"dangerZone": {
4236+
"respondToBotActions": true,
4237+
"acceptRespondToBotActions": true
4238+
}
4239+
}
40364240
}
4037-
]
4241+
]

0 commit comments

Comments
 (0)