Skip to content

upgrade(deps): update pnpm to v9.9.0 #145

upgrade(deps): update pnpm to v9.9.0

upgrade(deps): update pnpm to v9.9.0 #145

Workflow file for this run

name: Lint pull request title
permissions:
pull-requests: read
statuses: write
on:
pull_request:
types:
- opened
- edited
- synchronize
## Pattern to match strings as follows:
# feat(ui): add `Button` component
# ^ ^ ^
# | | |__ Subject
# | |_______ Scope
# |____________ Type
jobs:
main:
runs-on: ubuntu-latest
name: lint
steps:
- name: Validate PR title
id: lint_pr_title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
build
chore
ci
docs
feat
fix
perf
refactor
revert
style
test
upgrade
wip
- 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! 👋🏼
We require pull request titles to be formatted as follows:
```
feat(ui): add `Button` component
^ ^ ^
| | |__ Subject
| |_______ Scope
|____________ Type
```
The current title does not match this format.
<details>
<summary>Error details 👀</summary>
```
${{ steps.lint_pr_title.outputs.error_message }}
```
</details>
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true