Skip to content

Commit fb78640

Browse files
committed
Create a way to set labels easier.
1 parent 9466263 commit fb78640

File tree

3 files changed

+207
-51
lines changed

3 files changed

+207
-51
lines changed

.github/labels.json

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
[
2+
{
3+
"name": "component / contrib.admin",
4+
"color": "5319e7"
5+
},
6+
{
7+
"name": "component / contrib.admindocs",
8+
"color": "5319e7"
9+
},
10+
{
11+
"name": "component / contrib.auth",
12+
"color": "5319e7"
13+
},
14+
{
15+
"name": "component / contrib.contenttypes",
16+
"color": "5319e7"
17+
},
18+
{
19+
"name": "component / contrib.flatpages",
20+
"color": "5319e7"
21+
},
22+
{
23+
"name": "component / contrib.humanize",
24+
"color": "5319e7"
25+
},
26+
{
27+
"name": "component / contrib.messages",
28+
"color": "5319e7"
29+
},
30+
{
31+
"name": "component / contrib.postgres",
32+
"color": "5319e7"
33+
},
34+
{
35+
"name": "component / contrib.redirects",
36+
"color": "5319e7"
37+
},
38+
{
39+
"name": "component / contrib.sessions",
40+
"color": "5319e7"
41+
},
42+
{
43+
"name": "component / contrib.sitemaps",
44+
"color": "5319e7"
45+
},
46+
{
47+
"name": "component / contrib.sites",
48+
"color": "5319e7"
49+
},
50+
{
51+
"name": "component / contrib.staticfiles",
52+
"color": "5319e7"
53+
},
54+
{
55+
"name": "component / contrib.syndication",
56+
"color": "5319e7"
57+
},
58+
{
59+
"name": "component / Core (Cache system)",
60+
"color": "0366d6"
61+
},
62+
{
63+
"name": "component / Core (Mail)",
64+
"color": "0366d6"
65+
},
66+
{
67+
"name": "component / Core (Management commands)",
68+
"color": "0366d6"
69+
},
70+
{
71+
"name": "component / Core (Other)",
72+
"color": "0366d6"
73+
},
74+
{
75+
"name": "component / Core (Serialization)",
76+
"color": "0366d6"
77+
},
78+
{
79+
"name": "component / Core (System checks)",
80+
"color": "0366d6"
81+
},
82+
{
83+
"name": "component / Core (URLs)",
84+
"color": "0366d6"
85+
},
86+
{
87+
"name": "component / CSRF",
88+
"color": "1d76db"
89+
},
90+
{
91+
"name": "component / Database layer (models, ORM)",
92+
"color": "1d76db"
93+
},
94+
{
95+
"name": "component / Documentation",
96+
"color": "1d76db"
97+
},
98+
{
99+
"name": "component / Error reporting",
100+
"color": "1d76db"
101+
},
102+
{
103+
"name": "component / File uploads/storage",
104+
"color": "1d76db"
105+
},
106+
{
107+
"name": "component / Forms",
108+
"color": "1d76db"
109+
},
110+
{
111+
"name": "component / Generic views",
112+
"color": "1d76db"
113+
},
114+
{
115+
"name": "component / GIS",
116+
"color": "1d76db"
117+
},
118+
{
119+
"name": "component / HTTP handling",
120+
"color": "1d76db"
121+
},
122+
{
123+
"name": "component / Internationalization",
124+
"color": "1d76db"
125+
},
126+
{
127+
"name": "component / Migrations",
128+
"color": "1d76db"
129+
},
130+
{
131+
"name": "component / Packaging",
132+
"color": "1d76db"
133+
},
134+
{
135+
"name": "component / Template system",
136+
"color": "1d76db"
137+
},
138+
{
139+
"name": "component / Testing framework",
140+
"color": "1d76db"
141+
},
142+
{
143+
"name": "component / Utilities",
144+
"color": "1d76db"
145+
},
146+
{
147+
"name": "size / small",
148+
"color": "c2e0c6"
149+
},
150+
{
151+
"name": "size / medium",
152+
"color": "c2e0c6"
153+
},
154+
{
155+
"name": "size / large",
156+
"color": "c2e0c6"
157+
},
158+
{
159+
"name": "phase / new",
160+
"color": "fbca04"
161+
},
162+
{
163+
"name": "phase / is there community support",
164+
"color": "fbca04"
165+
},
166+
{
167+
"name": "phase / is this expected in core",
168+
"color": "fbca04"
169+
},
170+
{
171+
"name": "phase / third-party package",
172+
"color": "fbca04"
173+
},
174+
{
175+
"name": "phase / needs community DEP",
176+
"color": "fbca04"
177+
},
178+
{
179+
"name": "phase / wontfix",
180+
"color": "fbca04"
181+
},
182+
{
183+
"name": "phase / needs SC DEP",
184+
"color": "fbca04"
185+
},
186+
{
187+
"name": "phase / implementation",
188+
"color": "fbca04"
189+
}
190+
]

.github/workflows/setup_labels.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Setup Repository Labels
2+
3+
on:
4+
workflow_dispatch: # Allows manual triggering
5+
6+
jobs:
7+
sync-labels:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Sync Labels
12+
uses: micnncim/action-label-syncer@v1
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
manifest: .github/labels.json

setup/start.md

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,4 @@ This is for the folks who set up the final feature repo.
44

55
## Labels
66

7-
Create the following labels:
8-
9-
- component / contrib.admin
10-
- component / contrib.admindocs
11-
- component / contrib.auth
12-
- component / contrib.contenttypes
13-
- component / contrib.flatpages
14-
- component / contrib.humanize
15-
- component / contrib.messages
16-
- component / contrib.postgres
17-
- component / contrib.redirects
18-
- component / contrib.sessions
19-
- component / contrib.sitemaps
20-
- component / contrib.sites
21-
- component / contrib.staticfiles
22-
- component / contrib.syndication
23-
- component / Core (Cache system)
24-
- component / Core (Mail)
25-
- component / Core (Management commands)
26-
- component / Core (Other)
27-
- component / Core (Serialization)
28-
- component / Core (System checks)
29-
- component / Core (URLs)
30-
- component / CSRF
31-
- component / Database layer (models, ORM)
32-
- component / Documentation
33-
- component / Error reporting
34-
- component / File uploads/storage
35-
- component / Forms
36-
- component / Generic views
37-
- component / GIS
38-
- component / HTTP handling
39-
- component / Internationalization
40-
- component / Migrations
41-
- component / Packaging
42-
- component / Template system
43-
- component / Testing framework
44-
- component / Utilities
45-
46-
- size / small
47-
- size / medium
48-
- size / large
49-
50-
- phase / new
51-
- phase / is there community support
52-
- phase / is this expected in core
53-
- phase / third-party package
54-
- phase / needs community DEP
55-
- phase / wontfix
56-
- phase / needs SC DEP
57-
- phase / implementation
7+
Create the following labels in github. Use the .github/labels.json file

0 commit comments

Comments
 (0)