diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml index ad6df65f2..59a8cd73a 100644 --- a/.github/workflows/lint-pr.yaml +++ b/.github/workflows/lint-pr.yaml @@ -1,11 +1,12 @@ name: "Lint PR" on: - pull_request_target: + pull_request: types: - opened - edited - synchronize + - reopened jobs: main: @@ -15,3 +16,8 @@ jobs: - uses: amannn/action-semantic-pull-request@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: deepakputhraya/action-pr-title@master + with: + max_length: 72 # Max length of PR title + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitlint b/.gitlint index 15251e34a..ff4f968d1 100644 --- a/.gitlint +++ b/.gitlint @@ -1,3 +1,3 @@ [general] contrib=contrib-title-conventional-commits -ignore=body-is-missing +ignore=body-is-missing,title-max-length