chore(main): release 0.0.15 #47
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
name: "Semantic PR" | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
- reopened | |
permissions: | |
pull-requests: write | |
statuses: write | |
jobs: | |
main: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
steps: | |
- uses: amannn/action-semantic-pull-request@v5 | |
id: lint_pr_title | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Post a comment when the PR title is invalid | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
if: always() && (steps.lint_pr_title.outputs.error_message != null) | |
with: | |
header: pr-title-lint-error | |
message: | | |
### Pull Request Title Check Failure | |
The pull request title is not formatted according to [Conventional Commits](https://www.conventionalcommits.org/). | |
Please update the pull request title to following the format: | |
``` | |
<type>[optional scope]: <description> | |
``` | |
### Check Failure Details: | |
${{ steps.lint_pr_title.outputs.error_message }} | |
# Delete a previous comment when the issue has been resolved | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
if: ${{ steps.lint_pr_title.outputs.error_message == null }} | |
with: | |
header: pr-title-lint-error | |
delete: true |