fix: Update error message to be consistent with what is being enforced #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Only for testing this action in its own repo | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
validate_pr_title: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Clone repository to runner | |
uses: actions/checkout@v3 | |
- name: Validate PR title | |
uses: ./ | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Post validation issue comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: always() | |
with: | |
header: pr_title_failed_validation | |
message: | | |
Thank you for your contribution! | |
PR titles in this repo follow our version of the Conventional Commits spec. | |
This allows us to automatically generate the changelog for the next release. | |
Therefore, we ask you to adjust your PR title to solve the issue(s) below: | |
${{ steps.validate_pr_title.outputs.validation_issues }} | |
- name: Remove validation issue comment | |
if: ${{ steps.validate_pr_title.outputs.validation_issues == null }} | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: pr_title_failed_validation | |
delete: true |