Skip to content

Commit b14d520

Browse files
committed
chore(ci): define github labels in code
1 parent bd44839 commit b14d520

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

.github/labels.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# libevm specific labels
2+
- name: "Status: 🔴 Blocked by Geth sync"
3+
color: "959a9c"
4+
description: "This needs to wait for the next fork sync with the geth repository 🍴"
5+
6+
# General categories
7+
- name: "Category: New feature 🆕"
8+
color: "ffc7ea"
9+
- name: "Category: Documentation ✒️"
10+
description: "A problem with the readme or a code comment."
11+
color: "ffc7ea"
12+
- name: "Category: Bug 🐛"
13+
color: "ffc7ea"
14+
from_name: "bug"
15+
- name: "Category: Investigation 🔍"
16+
color: "ffc7ea"
17+
- name: "Category: CI ⛓️"
18+
description: "Anything related to continuous integration"
19+
color: "ffc7ea"
20+
- name: "Category: Testing 🧪"
21+
description: "Unit tests, integration tests, etc."
22+
color: "ffc7ea"
23+
- name: "Category: Code quality ✏️"
24+
description: "Unit tests, integration tests, etc."
25+
color: "ffc7ea"
26+
- name: "Category: Performance 🚀"
27+
color: "ffc7ea"
28+
- name: "Category: Label missing ❗"
29+
description: "Use this if it feels a label should be added to label this issue"
30+
color: "ffc7ea"
31+
32+
# Status
33+
- name: "Status: 🗯️ Waiting for feedback"
34+
color: "f7d692"
35+
- name: "Status: 🔴 Blocked"
36+
color: "f7d692"
37+
description: "Blocked by another issue or pull request"
38+
- name: "Status: 🟡 Nearly resolved"
39+
color: "f7d692"
40+
description: "This might be resolved or is about to be resolved"
41+
42+
# Priority
43+
- name: "Priority: 🚨 Urgent"
44+
color: "03adfc"
45+
- name: "Priority: 📌 Before next release"
46+
color: "03adfc"
47+
description: "Has to be done before the next release"
48+
- name: "Status: 🔒 After next release"
49+
color: "03adfc"
50+
description: "Will be done after the next release"
51+
- name: "Priority: 💤 Low priority"
52+
color: "03adfc"
53+
54+
# Complexity
55+
- name: "Complexity: 🟥 Hard to do"
56+
color: "ff9efc"
57+
- name: "Complexity: 🟩 Easy to do"
58+
color: "ff9efc"
59+
60+
# Closing reason
61+
- name: "Closed: 👥 Duplicate"
62+
color: "959a9c"
63+
description: "Issue duplicates an existing issue"
64+
- name: "Closed: ⚰️ Inactive"
65+
color: "959a9c"
66+
description: "No answer was received for weeks"
67+
- name: "Closed: 🗑️ Bad issue"
68+
color: "959a9c"

.github/workflows/label-skip.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: labels
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- .github/labels.yml
6+
- .github/workflows/labels.yml
7+
8+
jobs:
9+
labeler:
10+
permissions:
11+
actions: read
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: No trigger path triggered for required workflow.
15+
run: exit 0

.github/workflows/labels.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: labels
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- .github/labels.yml
8+
- .github/workflows/labels.yml
9+
pull_request: # dry run only
10+
paths:
11+
- .github/labels.yml
12+
- .github/workflows/labels.yml
13+
14+
jobs:
15+
labeler:
16+
permissions:
17+
contents: read
18+
issues: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: crazy-max/ghaction-github-labeler@v5
23+
with:
24+
dry-run: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)