Skip to content

Commit

Permalink
chore(deps): fix: Stop spamming
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Sep 1, 2024
1 parent 22a2f00 commit 60d5e02
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,17 @@ jobs:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
var comments = github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '`yarn.lock` is not deduplicated. You can try deduplicating dependencies using `/deduplicate` command'
})
});
if (!comments.find(c => c.body.includes('is not deduplicated. You can try deduplicating'))) {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '`yarn.lock` is not deduplicated. You can try deduplicating dependencies using `/deduplicate` command'
})
}
if: failure()

0 comments on commit 60d5e02

Please sign in to comment.