name: pr-title on: pull_request_target: types: - opened - edited - reopened - synchronize permissions: contents: read statuses: write jobs: validate: name: Validate PR title runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: headerPattern: '^([\w ]*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$' headerPatternCorrespondence: type, scope, subject types: | build chore ci docs feat fix memory base perf refactor revert style test - name: Disallow trailing ellipsis shell: bash env: PR_TITLE: ${{ github.event.pull_request.title }} run: | if [[ "$PR_TITLE" == *... ]]; then echo "::error title=Invalid PR title::PR title must not end with an ellipsis (...)" exit 1 fi