Only move PRs to Done column on projects that already contain the PR when they are...
authorJose Perez Rodriguez <joperezr@microsoft.com>
Wed, 16 Mar 2022 21:40:55 +0000 (14:40 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Mar 2022 21:40:55 +0000 (14:40 -0700)
.github/fabricbot.json

index 4ab05bf..c31a565 100644 (file)
       ]
     }
   },
-  {
-    "taskSource": "fabricbot-config",
-    "taskType": "trigger",
-    "capabilityId": "IssueResponder",
-    "subCapability": "IssuesOnlyResponder",
-    "version": "1.0",
-    "config": {
-      "conditions": {
-        "operator": "and",
-        "operands": [
-          {
-            "operator": "not",
-            "operands": [
-              {
-                "name": "isInProjectColumn",
-                "parameters": {
-                  "projectName": "Area Pod: Adam / David - Issue Triage",
-                  "columnName": "Triaged",
-                  "isOrgProject": true
-                }
-              }
-            ]
-          },
-          {
-            "operator": "and",
-            "operands": [
-              {
-                "operator": "not",
-                "operands": [
-                  {
-                    "name": "hasLabel",
-                    "parameters": {
-                      "label": "area-Extensions-FileSystem"
-                    }
-                  }
-                ]
-              },
-              {
-                "operator": "not",
-                "operands": [
-                  {
-                    "name": "hasLabel",
-                    "parameters": {
-                      "label": "area-System.Console"
-                    }
-                  }
-                ]
-              },
-              {
-                "operator": "not",
-                "operands": [
-                  {
-                    "name": "hasLabel",
-                    "parameters": {
-                      "label": "area-System.Diagnostics.Process"
-                    }
-                  }
-                ]
-              },
-              {
-                "operator": "not",
-                "operands": [
-                  {
-                    "name": "hasLabel",
-                    "parameters": {
-                      "label": "area-System.IO"
-                    }
-                  }
-                ]
-              },
-              {
-                "operator": "not",
-                "operands": [
-                  {
-                    "name": "hasLabel",
-                    "parameters": {
-                      "label": "area-System.IO.Compression"
-                    }
-                  }
-                ]
-              },
-              {
-                "operator": "not",
+    {
+        "taskSource": "fabricbot-config",
+        "taskType": "trigger",
+        "capabilityId": "IssueResponder",
+        "subCapability": "IssuesOnlyResponder",
+        "version": "1.0",
+        "config": {
+            "conditions": {
+                "operator": "and",
                 "operands": [
-                  {
-                    "name": "hasLabel",
-                    "parameters": {
-                      "label": "area-System.Linq.Parallel"
+                    {
+                        "operator": "not",
+                        "operands": [
+                            {
+                                "name": "isInProjectColumn",
+                                "parameters": {
+                                    "projectName": "Area Pod: Adam / David - Issue Triage",
+                                    "columnName": "Triaged",
+                                    "isOrgProject": true
+                                }
+                            }
+                        ]
+                    },
+                    {
+                        "operator": "and",
+                        "operands": [
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-Extensions-FileSystem"
+                                        }
+                                    }
+                                ]
+                            },
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-System.Console"
+                                        }
+                                    }
+                                ]
+                            },
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-System.Diagnostics.Process"
+                                        }
+                                    }
+                                ]
+                            },
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-System.IO"
+                                        }
+                                    }
+                                ]
+                            },
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-System.IO.Compression"
+                                        }
+                                    }
+                                ]
+                            },
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-System.Linq.Parallel"
+                                        }
+                                    }
+                                ]
+                            },
+                            {
+                                "operator": "not",
+                                "operands": [
+                                    {
+                                        "name": "hasLabel",
+                                        "parameters": {
+                                            "label": "area-System.Memory"
+                                        }
+                                    }
+                                ]
+                            }
+                        ]
+                    },
+                    {
+                        "name": "isAction",
+                        "parameters": {
+                            "action": "unlabeled"
+                        }
                     }
-                  }
                 ]
-              },
-              {
-                "operator": "not",
-                "operands": [
-                  {
-                    "name": "hasLabel",
+            },
+            "eventType": "issue",
+            "eventNames": [
+                "issues",
+                "project_card"
+            ],
+            "taskName": "[Area Pod: Adam / David - Issue Triage] Moved to Another Area",
+            "actions": [
+                {
+                    "name": "addToProject",
                     "parameters": {
-                      "label": "area-System.Memory"
+                        "projectName": "Area Pod: Adam / David - Issue Triage",
+                        "columnName": "Triaged",
+                        "isOrgProject": true
                     }
-                  }
-                ]
-              }
+                }
             ]
-          },
-          {
-            "name": "isAction",
-            "parameters": {
-              "action": "unlabeled"
-            }
-          }
-        ]
-      },
-      "eventType": "issue",
-      "eventNames": [
-        "issues",
-        "project_card"
-      ],
-      "taskName": "[Area Pod: Adam / David - Issue Triage] Moved to Another Area",
-      "actions": [
-        {
-          "name": "addToProject",
-          "parameters": {
-            "projectName": "Area Pod: Adam / David - Issue Triage",
-            "columnName": "Triaged",
-            "isOrgProject": true
-          }
         }
-      ]
-    }
-  },
+    },
   {
     "taskSource": "fabricbot-config",
     "taskType": "trigger",
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Adam / David - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Buyaa / Jose / Steve - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Carlos / Jeremy - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Drew / Michael / Tanner - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Eirik / Krzysztof / Layomi - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Eric / Jeff - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Eric / Maryam / Tarek - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
                 ]
               }
             ]
+          },
+          {
+            "name": "isInProject",
+            "parameters": {
+              "projectName": "Area Pod: Jeremy / Levi - PRs",
+              "isOrgProject": true
+            }
           }
         ]
       },
       ]
     }
   }
-]
\ No newline at end of file
+]