Skip to content

Commit 4d68527

Browse files
authored
Add github workflows (#1)
1 parent 9daace2 commit 4d68527

File tree

4 files changed

+120
-0
lines changed

4 files changed

+120
-0
lines changed

.github/labeler.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Domains
2+
"addons":
3+
- addons/**/*
4+
5+
"misc":
6+
- misc/**/*
7+
8+
"observability":
9+
- observability/**/*

.github/labels.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Warning
2+
- color: "ee0701"
3+
description: "Categorize bug reports."
4+
name: ":warning: bug"
5+
- color: "ee0701"
6+
description: "Categorize vulnerability reports."
7+
name: ":warning: vulnerability"
8+
9+
# Highlight
10+
- color: "0e8a16"
11+
description: "Good for newcomers."
12+
name: ":fire: good first issue"
13+
- color: "0e8a16"
14+
description: "Extra attention is needed."
15+
name: ":fire: help wanted"
16+
17+
# Cancel
18+
- color: "b60205"
19+
description: "This issue or pull request already exists."
20+
name: ":pray: duplicate"
21+
- color: "b60205"
22+
description: "This will not be worked on."
23+
name: ":pray: wontfix"
24+
25+
# Size
26+
- color: "cfd3d7"
27+
description: "Extra Small size issue or PR."
28+
name: "size/XS"
29+
- color: "cfd3d7"
30+
description: "Small size issue or PR."
31+
name: "size/S"
32+
- color: "cfd3d7"
33+
description: "Medium size issue or PR."
34+
name: "size/M"
35+
- color: "cfd3d7"
36+
description: "Large size issue or PR."
37+
name: "size/L"
38+
- color: "cfd3d7"
39+
description: "Extra Large size issue or PR."
40+
name: "size/XL"
41+
42+
# Domains
43+
- color: "000000"
44+
description: "This issue or pull request is related to addons."
45+
name: "addons"
46+
- color: "000000"
47+
description: "This issue or pull request is related to misc."
48+
name: "misc"
49+
- color: "000000"
50+
description: "This issue or pull request is related to observability."
51+
name: "observability"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Label Pull Requests
2+
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
label-pr:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Add Labels for PR
12+
uses: actions/labeler@v3
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
configuration-path: .github/labeler.yaml
16+
sync-labels: true
17+
18+
- name: Add PR Size Labels for PR
19+
uses: codelytv/pr-size-labeler@v1
20+
with:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
github_api_url: 'github.dev.kr.krpay.io/api/v3'
23+
xs_label: 'size/XS'
24+
xs_max_size: '20'
25+
s_label: 'size/S'
26+
s_max_size: '50'
27+
m_label: 'size/M'
28+
m_max_size: '150'
29+
l_label: 'size/L'
30+
l_max_size: '300'
31+
xl_label: 'size/XL'
32+
fail_if_xl: 'false'
33+
message_if_xl: >
34+
'This PR has too many changes.
35+
Please make sure you are NOT addressing multiple issues with one PR.'

.github/workflows/sync-labels.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sync labels
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- .github/labels.yaml
9+
10+
jobs:
11+
sync-labels:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Sync labels
19+
uses: crazy-max/ghaction-github-labeler@v3
20+
with:
21+
github-otken: ${{ secrets.GITHUB_TOKEN }}
22+
yaml-file: .github/labels.yaml
23+
skip-delete: false
24+
dry-run: false
25+
# exclude: |

0 commit comments

Comments
 (0)