Skip to content

Commit e499080

Browse files
authored
Fix the labeler configuration example (#304)
The labeler configuration example was using a wrong key, it should be `all-globs-to-all-files` instead of `all-glob-to-all-file`. Note we use `perl` instead of `sed` in the migration script because it is more portable and we don't need to worry about the differences between the different `sed` implementations (refs #302).
2 parents cdabf82 + e963e40 commit e499080

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

cookiecutter/migrate.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,10 @@ cat <<'EOT' | patch -p1
4444
+ - "actions/*-artifact"
4545
EOT
4646

47+
echo "========================================================================"
48+
49+
echo "Fix the labeler configuration example."
50+
perl -i -pe 's/all-glob-to-all-file/all-globs-to-all-files/g' .github/labeler.yml
51+
4752
# Add a separation line like this one after each migration step.
4853
echo "========================================================================"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - changed-files:
2727
# - any-glob-to-any-file:
2828
# - "src/**/*.py"
29-
# - all-glob-to-all-file:
29+
# - all-globs-to-all-files:
3030
# - "!src/__init__.py"
3131
#
3232
# Please have in mind that that the part:xxx labels need to

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - changed-files:
2727
# - any-glob-to-any-file:
2828
# - "src/**/*.py"
29-
# - all-glob-to-all-file:
29+
# - all-globs-to-all-files:
3030
# - "!src/__init__.py"
3131
#
3232
# Please have in mind that that the part:xxx labels need to

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - changed-files:
2727
# - any-glob-to-any-file:
2828
# - "src/**/*.py"
29-
# - all-glob-to-all-file:
29+
# - all-globs-to-all-files:
3030
# - "!src/__init__.py"
3131
#
3232
# Please have in mind that that the part:xxx labels need to

tests_golden/integration/test_cookiecutter_generation/app/frequenz-app-test/.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - changed-files:
2727
# - any-glob-to-any-file:
2828
# - "src/**/*.py"
29-
# - all-glob-to-all-file:
29+
# - all-globs-to-all-files:
3030
# - "!src/__init__.py"
3131
#
3232
# Please have in mind that that the part:xxx labels need to

tests_golden/integration/test_cookiecutter_generation/lib/frequenz-test-python/.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - changed-files:
2727
# - any-glob-to-any-file:
2828
# - "src/**/*.py"
29-
# - all-glob-to-all-file:
29+
# - all-globs-to-all-files:
3030
# - "!src/__init__.py"
3131
#
3232
# Please have in mind that that the part:xxx labels need to

tests_golden/integration/test_cookiecutter_generation/model/frequenz-model-test/.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# - changed-files:
2727
# - any-glob-to-any-file:
2828
# - "src/**/*.py"
29-
# - all-glob-to-all-file:
29+
# - all-globs-to-all-files:
3030
# - "!src/__init__.py"
3131
#
3232
# Please have in mind that that the part:xxx labels need to

0 commit comments

Comments
 (0)