Skip to content

Commit 492a1e3

Browse files
committed
Add example on how to exclude files in the labeler workflow
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent be453e7 commit 492a1e3

File tree

1 file changed

+8
-0
lines changed
  • cookiecutter/{{cookiecutter.github_repo_name}}/.github

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
# "part:other":
1616
# - "src/frequenz/{{cookiecutter.type}}/{{cookiecutter.name}}/other/**"
1717
#
18+
# # For excluding some files (in this example, label "part:complicated"
19+
# # everything inside src/ with a .py suffix, except for src/__init__.py)
20+
# "part:complicated":
21+
# - any:
22+
# - "src/**/*.py"
23+
# - all:
24+
# - "!src/__init__.py"
25+
#
1826
# Please have in mind that that the part:xxx labels need to
1927
# be created in the GitHub repository.
2028

0 commit comments

Comments
 (0)