Skip to content

Commit

Permalink
Merge pull request #4141 from c2corg/chore/fix-semantic-pr-types-config
Browse files Browse the repository at this point in the history
chore: fix semantic PR allowed types configuration
  • Loading branch information
brunobesson authored Nov 22, 2024
2 parents fa14939 + 21aba03 commit f763ca8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ jobs:
steps:
- uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
types: |
feat
fix
Expand All @@ -33,6 +26,14 @@ jobs:
chore
revert
i18n
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: |
Hey there and thank you for opening this pull request! 👋🏼
Expand Down

0 comments on commit f763ca8

Please sign in to comment.