]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Update Label workflows to use new labels (#33310)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Thu, 14 Nov 2024 13:57:05 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 13:57:05 +0000 (14:57 +0100)
* Update labeler.yml

* Update labeler-needsreview.yml

* Update labeler-staging.yml

* Update labeler-stable.yml

* Update labeler-untriaged.yml

* Create labeler-size.yml

* Update labeler-size.yml

* Update labeler-size.yml

* Update conflict-labeler.yml

* Rename conflict-labeler.yml to labeler-conflict.yml

.github/labeler.yml
.github/workflows/labeler-conflict.yml [moved from .github/workflows/conflict-labeler.yml with 93% similarity]
.github/workflows/labeler-needsreview.yml
.github/workflows/labeler-size.yml [new file with mode: 0644]
.github/workflows/labeler-stable.yml
.github/workflows/labeler-staging.yml
.github/workflows/labeler-untriaged.yml

index 97b402eda9ff1c635ef666ea1141f07cd64427c8..69b2ca87749c6e8c5721bf5ae29bc1df602daed8 100644 (file)
@@ -16,7 +16,7 @@
 - changed-files:
   - any-glob-to-any-file: '**/*.swsl'
 
-"No C#":
+"Changes: No C#":
 - changed-files:
   # Equiv to any-glob-to-all as long as this has one matcher. If ALL changed files are not C# files, then apply label.
   - all-globs-to-all-files: "!**/*.cs"
similarity index 93%
rename from .github/workflows/conflict-labeler.yml
rename to .github/workflows/labeler-conflict.yml
index 1e2125c30a23b9bbdd21b9d3af6a8012dc3bffc1..ebcc54d4604dafdca1f7b166b40332389c1f187d 100644 (file)
@@ -16,6 +16,6 @@ jobs:
       - name: Check for Merge Conflicts
         uses: eps1lon/actions-label-merge-conflict@v3.0.0
         with:
-          dirtyLabel: "Merge Conflict"
+          dirtyLabel: "S: Merge Conflict"
           repoToken: "${{ secrets.GITHUB_TOKEN }}"
           commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
index 311048acb0f3e60548cf3f1512c306dbc51455ab..819b34b7bbd38192083779cb714f80dcc1b38828 100644 (file)
@@ -10,7 +10,7 @@ jobs:
     steps:
     - uses: actions-ecosystem/action-add-labels@v1
       with:
-        labels: "Status: Needs Review"
+        labels: "S: Needs Review"
     - uses: actions-ecosystem/action-remove-labels@v1
       with:
-        labels: "Status: Awaiting Changes"
+        labels: "S: Awaiting Changes"
diff --git a/.github/workflows/labeler-size.yml b/.github/workflows/labeler-size.yml
new file mode 100644 (file)
index 0000000..ad6e35c
--- /dev/null
@@ -0,0 +1,20 @@
+name: "Labels: Size"
+on: pull_request_target
+jobs:
+  size-label:
+    runs-on: ubuntu-latest
+    steps:
+      - name: size-label
+        uses: "pascalgn/size-label-action@v0.5.5"
+        env:
+          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+        with:
+          # Custom size configuration
+          sizes: >
+            {
+              "0": "XS",
+              "10": "S",
+              "30": "M",
+              "100": "L",
+              "1000": "XL"
+            }
index 491d6a76fad5092ed2f55e4ab0e10ebede111bc6..f6fd2033a11b6fff235769a6fe97d135b3c2fe77 100644 (file)
@@ -13,4 +13,4 @@ jobs:
     steps:
     - uses: actions-ecosystem/action-add-labels@v1
       with:
-        labels: "Branch: stable"
+        labels: "Branch: Stable"
index e31a5a482f2db55f6ed685dbd73a231753a325e2..b46a198aefb558fd8229b3d506be3911938d97f1 100644 (file)
@@ -13,4 +13,4 @@ jobs:
     steps:
     - uses: actions-ecosystem/action-add-labels@v1
       with:
-        labels: "Branch: staging"
+        labels: "Branch: Staging"
index 775aab265468af7554e06bdb05719f0451a6848c..ec1d194851c5c75dd845d6024a5834d1931afbfd 100644 (file)
@@ -3,6 +3,8 @@
 on:
   issues:
     types: [opened]
+  pull_request_target:
+    types: [opened]
 
 jobs:
   add_label:
@@ -11,4 +13,4 @@ jobs:
     - uses: actions-ecosystem/action-add-labels@v1
       if: join(github.event.issue.labels) == ''
       with:
-        labels: "Status: Untriaged"
+        labels: "S: Untriaged"