Skip to content

Commit

Permalink
Fix the labeler configuration example (#304)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
llucax authored Sep 12, 2024
2 parents cdabf82 + e963e40 commit e499080
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions cookiecutter/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@ cat <<'EOT' | patch -p1
+ - "actions/*-artifact"
EOT

echo "========================================================================"

echo "Fix the labeler configuration example."
perl -i -pe 's/all-glob-to-all-file/all-globs-to-all-files/g' .github/labeler.yml

# Add a separation line like this one after each migration step.
echo "========================================================================"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - changed-files:
# - any-glob-to-any-file:
# - "src/**/*.py"
# - all-glob-to-all-file:
# - all-globs-to-all-files:
# - "!src/__init__.py"
#
# Please have in mind that that the part:xxx labels need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - changed-files:
# - any-glob-to-any-file:
# - "src/**/*.py"
# - all-glob-to-all-file:
# - all-globs-to-all-files:
# - "!src/__init__.py"
#
# Please have in mind that that the part:xxx labels need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - changed-files:
# - any-glob-to-any-file:
# - "src/**/*.py"
# - all-glob-to-all-file:
# - all-globs-to-all-files:
# - "!src/__init__.py"
#
# Please have in mind that that the part:xxx labels need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - changed-files:
# - any-glob-to-any-file:
# - "src/**/*.py"
# - all-glob-to-all-file:
# - all-globs-to-all-files:
# - "!src/__init__.py"
#
# Please have in mind that that the part:xxx labels need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - changed-files:
# - any-glob-to-any-file:
# - "src/**/*.py"
# - all-glob-to-all-file:
# - all-globs-to-all-files:
# - "!src/__init__.py"
#
# Please have in mind that that the part:xxx labels need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - changed-files:
# - any-glob-to-any-file:
# - "src/**/*.py"
# - all-glob-to-all-file:
# - all-globs-to-all-files:
# - "!src/__init__.py"
#
# Please have in mind that that the part:xxx labels need to
Expand Down

0 comments on commit e499080

Please sign in to comment.