Skip to content

Commit 40d770a

Browse files
committed
✨ Add new label sync workflow
1 parent 7d51066 commit 40d770a

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

.github/labels.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
- name: "breaking-change"
2+
color: ee0701
3+
description: "A breaking change for existing users."
4+
- name: "bugfix"
5+
color: ee0701
6+
description: "Inconsistencies or issues which will cause a problem for users or implementors."
7+
- name: "documentation"
8+
color: 0052cc
9+
description: "Solely about the documentation of the project."
10+
- name: "enhancement"
11+
color: 1d76db
12+
description: "Enhancement of the code, not introducing new features."
13+
- name: "refactor"
14+
color: 1d76db
15+
description: "Improvement of existing code, not introducing new features."
16+
- name: "new-feature"
17+
color: 0e8a16
18+
description: "New features or options."
19+
- name: "maintenance"
20+
color: 2af79e
21+
description: "Generic maintenance tasks (also CI)."
22+
- name: "dependencies"
23+
color: 1d76db
24+
description: "Upgrade or downgrade of project dependencies."
25+
26+
- name: "security"
27+
color: ee0701
28+
description: "Marks a security issue that needs to be resolved asap."
29+
- name: "incomplete"
30+
color: fef2c0
31+
description: "Marks a PR or issue that is missing information."
32+
- name: "invalid"
33+
color: fef2c0
34+
description: "Marks a PR or issue that is missing information."
35+
36+
- name: "beginner-friendly"
37+
color: 0e8a16
38+
description: "Good first issue for people wanting to contribute to the project."
39+
- name: "help-wanted"
40+
color: 0e8a16
41+
description: "We need some extra helping hands or expertise in order to resolve this."
42+
43+
- name: "hacktoberfest"
44+
description: "Issues/PRs are participating in the Hacktoberfest."
45+
color: 63034b
46+
- name: "hacktoberfest-accepted"
47+
description: "Issues/PRs are participating in the Hacktoberfest."
48+
color: 63034b
49+
50+
- name: "priority-critical"
51+
color: ee0701
52+
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
53+
- name: "priority-high"
54+
color: b60205
55+
description: "After critical issues are fixed, these should be dealt with before any further issues."
56+
- name: "priority-medium"
57+
color: 0e8a16
58+
description: "This issue may be useful, and needs some attention."
59+
- name: "priority-low"
60+
color: e4ea8a
61+
description: "Nice addition, maybe... someday..."
62+
63+
- name: "major"
64+
color: b60205
65+
description: "This PR causes a major version bump in the version number."
66+
- name: "minor"
67+
color: 0e8a16
68+
description: "This PR causes a minor version bump in the version number."

.github/workflows/labels.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync repo labels
2+
3+
# yamllint disable-line rule:truthy
4+
on:
5+
schedule:
6+
- cron: "0 0 * * SUN"
7+
workflow_dispatch:
8+
workflow_call:
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .github/labels.yaml
14+
15+
jobs:
16+
labels:
17+
name: ♻️ Sync labels
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: ⤵️ Download latest labels definitions
21+
uses: enflo/curl-action@v1
22+
with:
23+
curl: -o labels.yaml https://raw.githubusercontent.com/Poeschl-HomeAssistant-Addons/workflows/main/.github/labels.yaml
24+
25+
- name: 🚀 Run Label Sync
26+
uses: micnncim/[email protected]
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
manifest: labels.yaml

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# Workflows
22

33
This are shared workflows for GitHub actions shared between the addons.
4+
5+
## Thanks
6+
7+
To the [Home Assistant Community addons](https://github.com/hassio-addons/workflows).
8+
I got some inspiration from there

0 commit comments

Comments
 (0)