diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6f288822b8..88232d9ff3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,8 +3,6 @@ name: PR on: pull_request: types: [opened, edited, synchronize] -permissions: - pull-requests: write jobs: check-title: @@ -19,19 +17,3 @@ jobs: const title = context.payload.pull_request.title.toLowerCase(); const titleHasValidPrefix = titlePrefixes.some((prefix) => title.startsWith(`${prefix}:`)); if (!titleHasValidPrefix) { process.exit(-1); } - - - uses: thollander/actions-comment-pull-request@v2 - if: success() - with: - message: | - ✅ PR title meet the requirements. - comment_tag: PR title check result - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: thollander/actions-comment-pull-request@v2 - if: failure() - with: - message: | - 🚨 PR title does not meet the requirements. It must start with one of the following prefixes: 'feat:', 'fix:', 'chore:', 'break:'. - comment_tag: PR title check result - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}