Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankXie05 committed Jul 30, 2024
1 parent 383dcd3 commit 27b8747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check_pr_comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
uses: actions/checkout@v3

- name: Check PR body for comments
id: check_pr_body
uses: actions/github-script@v7
with:
script: |
Expand All @@ -22,13 +21,14 @@ jobs:
const commentRegex = /<!--[\s\S]*?-->/;
const hasComment = commentRegex.test(prBody);
if (hasComment) {
const comment = "This pull request comments contains `<!-- ... -->` comments.";
const comment = "This pull request contains `<!-- ... -->` comments.";
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: comment
});
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 27b8747

Please sign in to comment.