summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-11-28 13:48:52 +0100
committerGitHub <noreply@github.com>2022-11-28 13:48:52 +0100
commit398c407399280bdc2fcab02f0950218d236a5e69 (patch)
treeabefe6d8e6abc8e7c067b7ada8e72135d5341d17 /.github
parentMerge pull request #12408 from opensourcerouting/fix/mpls_vtysh_print (diff)
parentgithub: Create size label for every PR (diff)
downloadfrr-398c407399280bdc2fcab02f0950218d236a5e69.tar.xz
frr-398c407399280bdc2fcab02f0950218d236a5e69.zip
Merge pull request #12363 from opensourcerouting/feature/add_size_label_github
github: Create size label for every PR
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"
+ }