Skip to content

Commit e7a5380

Browse files
committed
cookiecutter: Upgrade templates to labeler 5.0.0
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 26abebe commit e7a5380

File tree

2 files changed

+37
-25
lines changed

2 files changed

+37
-25
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/.github/labeler.yml

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,58 @@
1010
# For example:
1111
#
1212
# "part:module":
13-
# - "src/frequenz/{{cookiecutter.type}}/{{cookiecutter.name | as_identifier}}/module/**"
13+
# - changed-files:
14+
# - any-glob-to-any-file:
15+
# - "src/frequenz/{{cookiecutter.type}}/{{cookiecutter.name | as_identifier}}/module/**"
1416
#
1517
# "part:other":
16-
# - "src/frequenz/{{cookiecutter.type}}/{{cookiecutter.name | as_identifier}}/other/**"
18+
# - changed-files:
19+
# - any-glob-to-any-file:
20+
# - "src/frequenz/{{cookiecutter.type}}/{{cookiecutter.name | as_identifier}}/other/**"
1721
#
1822
# # For excluding some files (in this example, label "part:complicated"
1923
# # everything inside src/ with a .py suffix, except for src/__init__.py)
2024
# "part:complicated":
21-
# - any:
22-
# - "src/**/*.py"
2325
# - all:
24-
# - "!src/__init__.py"
26+
# - changed-files:
27+
# - any-glob-to-any-file:
28+
# - "src/**/*.py"
29+
# - all-glob-to-all-file:
30+
# - "!src/__init__.py"
2531
#
2632
# Please have in mind that that the part:xxx labels need to
2733
# be created in the GitHub repository.
2834

2935
"part:docs":
30-
- "**/*.md"
31-
- "docs/**"
32-
- "examples/**"
33-
- LICENSE
36+
- changed-files:
37+
- any-glob-to-any-file:
38+
- "**/*.md"
39+
- "docs/**"
40+
- "examples/**"
41+
- LICENSE
3442

3543
"part:tests":
36-
- "**/conftest.py"
44+
- changed-files:
45+
- any-glob-to-any-file:
46+
- "**/conftest.py"
3747
{%- if cookiecutter.type == "api" %}
38-
- "pytests/**"
48+
- "pytests/**"
3949
{%- else %}
40-
- "tests/**"
50+
- "tests/**"
4151
{%- endif %}
4252

4353
"part:tooling":
44-
- "**/*.ini"
45-
- "**/*.toml"
46-
- "**/*.yaml"
47-
- "**/*.yml"
48-
- "**/conftest.py"
49-
- ".editorconfig"
50-
- ".git*"
51-
- ".git*/**"
52-
- "docs/*.py"
53-
- CODEOWNERS
54-
- MANIFEST.in
55-
- noxfile.py
54+
- changed-files:
55+
- any-glob-to-any-file:
56+
- "**/*.ini"
57+
- "**/*.toml"
58+
- "**/*.yaml"
59+
- "**/*.yml"
60+
- "**/conftest.py"
61+
- ".editorconfig"
62+
- ".git*"
63+
- ".git*/**"
64+
- "docs/*.py"
65+
- CODEOWNERS
66+
- MANIFEST.in
67+
- noxfile.py

cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# only use hashes to pick the action to execute (instead of tags or branches).
2020
# For more details read:
2121
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
22-
uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # 4.3.0
22+
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # 5.0.0
2323
with:
2424
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2525
dot: true

0 commit comments

Comments
 (0)