summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-11-21 21:22:27 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-11-21 21:22:27 +0100
commit0709fdb6d85e65cd28624e309bd3d65652665015 (patch)
tree18daf33bcdc40c874f87b683e694fa2eb3d415d7 /.github
parentMerge pull request #12313 from louis-6wind/fix-lfa-topo (diff)
downloadfrr-0709fdb6d85e65cd28624e309bd3d65652665015.tar.xz
frr-0709fdb6d85e65cd28624e309bd3d65652665015.zip
github: Create size label for every PR
Examples: size/XS, size/S, size/M, size/L, ... Inspired by kubernetes/kubernetes. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/size-label.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml
new file mode 100644
index 000000000..a37700342
--- /dev/null
+++ b/.github/workflows/size-label.yml
@@ -0,0 +1,25 @@
+name: Add PRs size label
+
+on: pull_request_target
+
+jobs:
+ size-label:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - name: size-label
+ uses: "pascalgn/size-label-action@v0.4.2"
+ env:
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
+ with:
+ sizes: >
+ {
+ "0": "XS",
+ "20": "S",
+ "50": "M",
+ "200": "L",
+ "800": "XL",
+ "2000": "XXL"
+ }