upgrade(deps): update dependency @vercel/functions to v1.5.1 #420
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
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 |