Skip to content

Commit

Permalink
remove logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Apr 7, 2024
1 parent e20e8b4 commit 6c4bcc1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: PR
on:
pull_request:
types: [opened, edited, synchronize]
permissions:
pull-requests: write

jobs:
check-title:
Expand All @@ -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 }}

0 comments on commit 6c4bcc1

Please sign in to comment.