From 9d3e1fd9cf446d6346dd0b3e37e0d57f8a6c3bcc Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Tue, 7 May 2024 09:26:31 +0200 Subject: [PATCH] chore(ci): Update PR title linting workflow --- .github/workflows/conventional-pr-title.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/conventional-pr-title.yml b/.github/workflows/conventional-pr-title.yml index fcf217ab41ab..e3dfb587bc1b 100644 --- a/.github/workflows/conventional-pr-title.yml +++ b/.github/workflows/conventional-pr-title.yml @@ -1,22 +1,20 @@ -name: Check PR title conventional commit +name: "Lint PR" on: - pull_request: + pull_request_target: types: - opened - - reopened - edited - synchronize +permissions: + pull-requests: read + jobs: - lint: + main: + name: Validate PR title runs-on: ubuntu-latest steps: - - uses: aslafy-z/conventional-pr-title-action@main - with: - success-state: Title follows the specification. - failure-state: Title does not follow the specification. - context-name: conventional-pr-title - preset: conventional-changelog-angular@latest + - uses: amannn/action-semantic-pull-request@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file