Skip to content

Commit

Permalink
chore: minor fix for ci-commit-titles.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-efremoff committed Dec 21, 2023
1 parent 48bc3f2 commit 9c7f9a9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci-commit-titles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@ jobs:
- name: "feat|fix"
run: |
grep -E '^(feat|fix)(\(\S+\))?!?: [a-z]+' titles.txt || (
grep -E '^(feat|fix)(\(\S+\))?!?: [a-z]+' titles.txt > feat-fix.txt || (
echo "You have to provide at least one 'feat'|'fix' commit to publish new versions of changed packages.";
echo "If you don't want to release new version then just ignore the check.";
false
)
- name: "issue|ticket"
run: |
grep -P '\[(#\d+)|(YTFRONT-\d+)\]$' feat-fix.txt || (
echo "At least one of your commits should be linked with an issue or a ticket.";
echo "Such commit should contain '[#xxx]' or '[YTFRONT-xxx]' at the end of title".;
echo "If you don't want to link your PR with any issue/ticket then just ignore the check";
cat feat-fix.txt;
false
)

0 comments on commit 9c7f9a9

Please sign in to comment.