Skip to content

build(deps): bump amannn/action-semantic-pull-request from 5.5.3 to 6.0.1 #260

build(deps): bump amannn/action-semantic-pull-request from 5.5.3 to 6.0.1

build(deps): bump amannn/action-semantic-pull-request from 5.5.3 to 6.0.1 #260

Workflow file for this run

---
name: Lint PR Title
on:
pull_request_target:
types: [opened, edited, synchronize]
permissions: read-all
jobs:
main:
name: Validate PR title
runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
- name: Check PR title
id: lint_pr_title
uses: amannn/action-semantic-pull-request@fdd4d3ddf614fbcd8c29e4b106d3bbe0cb2c605d # v6.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on the PR if the title doesn't follow the Conventional Commits specification
if: always() && (steps.lint_pr_title.outputs.error_message != null)
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
with:
header: pr-title-lint-error
message: |
Thank you for opening this pull request! 👋🏼
In order to streamline our release process and maintain a consistent commit history, we require pull request (PR) titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/).
Based on our linter, it looks like your proposed title needs to be adjusted. Here's the error message we received:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
- name: Delete the previous comment once the PR title has been updated
if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
with:
header: pr-title-lint-error
delete: true