Skip to content

Commit ca05034

Browse files
committed
ci: add labels sync workflow
1 parent 4100d8d commit ca05034

File tree

2 files changed

+290
-0
lines changed

2 files changed

+290
-0
lines changed

.github/labels.json

+254
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
[
2+
{
3+
"name": "- Admin -",
4+
"color": "FFFFFF",
5+
"description": "Enjoyable to Install and Setup our Software",
6+
"aliases": []
7+
},
8+
{
9+
"name": "- Contributor -",
10+
"color": "FFFFFF",
11+
"description": "Nice to support Torrust",
12+
"aliases": []
13+
},
14+
{
15+
"name": "- Developer -",
16+
"color": "FFFFFF",
17+
"description": "Torrust Improvement Experience",
18+
"aliases": []
19+
},
20+
{
21+
"name": "- User -",
22+
"color": "FFFFFF",
23+
"description": "Enjoyable to Use our Software",
24+
"aliases": []
25+
},
26+
{
27+
"name": "Blocked",
28+
"color": "000000",
29+
"description": "Has Unsatisfied Dependency",
30+
"aliases": []
31+
},
32+
{
33+
"name": "Bug",
34+
"color": "a80506",
35+
"description": "Incorrect Behavior",
36+
"aliases": ["bug"]
37+
},
38+
{
39+
"name": "Build | Project System",
40+
"color": "99AAAA",
41+
"description": "Compiling and Packaging",
42+
"aliases": ["Rust"]
43+
},
44+
{
45+
"name": "Cannot Reproduce",
46+
"color": "D3D3D3",
47+
"description": "Inconsistent Observations",
48+
"aliases": []
49+
},
50+
{
51+
"name": "Code Cleanup / Refactoring",
52+
"color": "055a8b",
53+
"description": "Tidying and Making Neat",
54+
"aliases": ["refactoring", "tidying"]
55+
},
56+
{
57+
"name": "Continuous Integration",
58+
"color": "41c6b3",
59+
"description": "Workflows and Automation",
60+
"aliases": ["workflow"]
61+
},
62+
{
63+
"name": "Dependencies",
64+
"color": "d4f8f6",
65+
"description": "Related to Dependencies",
66+
"aliases": ["dependencies"]
67+
},
68+
{
69+
"name": "Documentation",
70+
"color": "3d2133",
71+
"description": "Improves Instructions, Guides, and Notices",
72+
"aliases": []
73+
},
74+
{
75+
"name": "Duplicate",
76+
"color": "cfd3d7",
77+
"description": "Not Unique",
78+
"aliases": []
79+
},
80+
{
81+
"name": "Easy",
82+
"color": "f0cff0",
83+
"description": "Good for Newcomers",
84+
"aliases": ["good first issue"]
85+
},
86+
{
87+
"name": "Enhancement / Feature Request",
88+
"color": "c9ecbf",
89+
"description": "Something New",
90+
"aliases": ["enhancement"]
91+
},
92+
{
93+
"name": "External Tools",
94+
"color": "a6006b",
95+
"description": "3rd Party Systems",
96+
"aliases": []
97+
},
98+
{
99+
"name": "First Time Contribution",
100+
"color": "f1e0e6",
101+
"description": "Welcome to Torrust",
102+
"aliases": []
103+
},
104+
{
105+
"name": "Fixed",
106+
"color": "8e4c42",
107+
"description": "Not a Concern Anymore",
108+
"aliases": []
109+
},
110+
{
111+
"name": "Hard",
112+
"color": "2c2c2c",
113+
"description": "Non-Trivial",
114+
"aliases": []
115+
},
116+
{
117+
"name": "Help Wanted",
118+
"color": "00896b",
119+
"description": "More Contributions are Appreciated",
120+
"aliases": []
121+
},
122+
{
123+
"name": "High Priority",
124+
"color": "ba3fbc",
125+
"description": "Focus Required",
126+
"aliases": []
127+
},
128+
{
129+
"name": "Hold Merge",
130+
"color": "9aafbe",
131+
"description": "We are not Ready Yet",
132+
"aliases": []
133+
},
134+
{
135+
"name": "Installer | Package",
136+
"color": "ed8b24",
137+
"description": "Distribution to Users",
138+
"aliases": []
139+
},
140+
{
141+
"name": "Invalid",
142+
"color": "c1c1c1",
143+
"description": "This doesn't seem right",
144+
"aliases": []
145+
},
146+
{
147+
"name": "Legal",
148+
"color": "463e60",
149+
"description": "Licenses and other Official Documents",
150+
"aliases": []
151+
},
152+
{
153+
"name": "Low Priority",
154+
"color": "43536b",
155+
"description": "Not our Focus Now",
156+
"aliases": []
157+
},
158+
{
159+
"name": "Needs Feedback",
160+
"color": "d6946c",
161+
"description": "What dose the Community Think?",
162+
"aliases": ["waiting for feedback"]
163+
},
164+
{
165+
"name": "Needs Rebase",
166+
"color": "FBC002",
167+
"description": "Base Branch has Incompatibilities",
168+
"aliases": []
169+
},
170+
{
171+
"name": "Needs Research",
172+
"color": "4bc021",
173+
"description": "We Need to Know More About This",
174+
"aliases": []
175+
},
176+
{
177+
"name": "Optimization",
178+
"color": "faeba8",
179+
"description": "Make it Faster",
180+
"aliases": []
181+
},
182+
{
183+
"name": "Portability",
184+
"color": "95de82",
185+
"description": "Distribution to More Places",
186+
"aliases": []
187+
},
188+
{
189+
"name": "Postponed",
190+
"color": "dadada",
191+
"description": "For Later",
192+
"aliases": []
193+
},
194+
{
195+
"name": "Quality & Assurance",
196+
"color": "eea2e8",
197+
"description": "Relates to QA, Testing, and CI",
198+
"aliases": []
199+
},
200+
{
201+
"name": "Question / Discussion",
202+
"color": "f89d00",
203+
"description": "Community Feedback",
204+
"aliases": ["code question"]
205+
},
206+
{
207+
"name": "Regression",
208+
"color": "d10588",
209+
"description": "It dose not work anymore",
210+
"aliases": []
211+
},
212+
{
213+
"name": "Reviewed",
214+
"color": "f4f4ea",
215+
"description": "This Looks Good",
216+
"aliases": []
217+
},
218+
{
219+
"name": "Security",
220+
"color": "650606",
221+
"description": "Publicly Connected to Security",
222+
"aliases": ["security"]
223+
},
224+
{
225+
"name": "Testing",
226+
"color": "c5def5",
227+
"description": "Checking Torrust",
228+
"aliases": []
229+
},
230+
{
231+
"name": "Translations",
232+
"color": "0c86af",
233+
"description": "Localization and Cultural Adaptions",
234+
"aliases": []
235+
},
236+
{
237+
"name": "Trivial",
238+
"color": "5f9685",
239+
"description": "Something Easy",
240+
"aliases": []
241+
},
242+
{
243+
"name": "Won't Fix",
244+
"color": "070003",
245+
"description": "Something Not Relevant",
246+
"aliases": []
247+
},
248+
{
249+
"name": "Workaround Possible",
250+
"color": "eae3e7",
251+
"description": "You can still do it another way",
252+
"aliases": []
253+
}
254+
]

.github/workflows/labels.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Labels
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- develop
7+
paths:
8+
- "/.github/labels.json"
9+
10+
jobs:
11+
export:
12+
name: Export Existing Labels
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- id: backup
17+
name: Export to Workflow Artifact
18+
uses: EndBug/export-label-config@v1
19+
20+
sync:
21+
name: Synchronize Labels from Repo
22+
needs: export
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- id: checkout
27+
name: Checkout Repository
28+
uses: actions/checkout@v4
29+
30+
- id: sync
31+
name: Apply Labels from File
32+
uses: EndBug/label-sync@v2
33+
with:
34+
config-file: .github/labels.json
35+
delete-other-labels: true
36+
token: ${{ secrets.UPDATE_ISSUES }}

0 commit comments

Comments
 (0)