File tree 4 files changed +39
-16
lines changed
4 files changed +39
-16
lines changed Original file line number Diff line number Diff line change @@ -8,27 +8,37 @@ categories:
8
8
- title : " :boom: Breaking Changes"
9
9
label : " breaking"
10
10
- title : " :rocket: Features"
11
- label : " enhancement"
11
+ labels :
12
+ - " enhancement"
13
+ - " feat"
12
14
- title : " :fire: Removals and Deprecations"
13
15
label : " removal"
14
16
- title : " :beetle: Fixes"
15
- label : " bug"
17
+ labels :
18
+ - " bug"
19
+ - " fix"
20
+ - " bugfix"
16
21
- title : " :racehorse: Performance"
17
22
label : " performance"
18
23
- title : " :rotating_light: Testing"
19
24
label : " testing"
20
25
- title : " :construction_worker: Continuous Integration"
21
26
label : " ci"
22
27
- title : " :books: Documentation"
23
- label : " documentation"
28
+ labels :
29
+ - " documentation"
30
+ - " docs"
24
31
- title : " :hammer: Refactoring"
25
- label : " refactoring"
32
+ labels :
33
+ - " refactoring"
34
+ - " chore"
26
35
- title : " :lipstick: Style"
27
36
label : " style"
28
37
- title : " :package: Dependencies"
29
38
labels :
30
39
- " dependencies"
31
40
- " build"
41
+ - " bump"
32
42
33
43
version-resolver :
34
44
major :
Original file line number Diff line number Diff line change 1
1
name : Draft a release note
2
2
on :
3
3
push :
4
+ # Defaults to all.
4
5
branches :
5
6
- main
6
- - master
7
+ - develop
8
+ - testing
9
+ pull_request :
10
+ # Only following types are handled by the action, but one can default to all as well
11
+ types : [opened, reopened, synchronize]
12
+ # pull_request_target event is required for autolabeler to support PRs from forks
13
+ pull_request_target :
14
+ types : [opened, reopened, synchronize]
15
+
7
16
jobs :
8
17
draft_release :
9
18
name : Release Drafter
10
19
runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : write
22
+ # write on pr's is required for autolabeller
23
+ pull-requests : write
24
+ outputs :
25
+ resolved_version : ${{ steps.draftrelease.outputs.resolved_version }}
11
26
steps :
12
27
- name : Run release-drafter
28
+ id : draftrelease
13
29
uses :
release-drafter/[email protected]
14
30
env :
15
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 14
14
DEFAULT_PYTHON : 3.12
15
15
16
16
jobs :
17
- pre-commit :
17
+ linting :
18
18
runs-on : " ubuntu-latest"
19
- name : Pre-commit
19
+ name : Linting
20
20
steps :
21
21
- name : Check out the repository
22
22
uses : actions/checkout@v4
@@ -25,15 +25,10 @@ jobs:
25
25
26
26
with :
27
27
python-version : ${{ env.DEFAULT_PYTHON }}
28
+ cache : " pip"
28
29
29
- - name : Upgrade pip
30
- run : |
31
- pip install --constraint=.github/workflows/constraints.txt pip
32
- pip --version
33
-
34
- - name : Install Python modules
35
- run : |
36
- pip install --constraint=.github/workflows/constraints.txt pre-commit black flake8 isort
30
+ - name : " Install requirements"
31
+ run : python3 -m pip install -r requirements.txt
37
32
38
33
- name : Run pre-commit on all files
39
34
run : |
61
56
62
57
- name : Hassfest validation
63
58
uses : " home-assistant/actions/hassfest@master"
59
+
64
60
tests :
65
61
runs-on : " ubuntu-latest"
66
62
name : Run tests
Original file line number Diff line number Diff line change 4
4
"homeassistant" : " 2024.6" ,
5
5
"render_readme" : true ,
6
6
"zip_release" : true ,
7
- "filename" : " bermuda.zip"
7
+ "filename" : " bermuda.zip" ,
8
+ "hide_default_branch" : true
8
9
}
You can’t perform that action at this time.
0 commit comments