Skip to content

Commit

Permalink
feat(CI): Added PR comment code
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Jan 11, 2024
1 parent 81b2f2a commit 4777bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/OWNER/REPO/pulls/PULL_NUMBER/comments \
-d "{\"body\": \"$COMMENT_BODY\"}"
https://api.github.com/repos/OWNER/REPO/issues/${{ github.event.pull_request.number }}/comments \
-d "{\"body\": \"## :negative_squared_cross_mark: Linting errors found! \n\`\`\`\n$COMMENT_BODY\n\`\`\`\"}"
- name: Fail Workflow for failure in linting
if: ${{ steps.lint.outcome == 'failure' }}
uses: actions/github-script@v7.0.1
Expand Down

0 comments on commit 4777bc7

Please sign in to comment.