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 12, 2024
1 parent b037c63 commit f5b6042
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 @@ -63,8 +63,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/issues/${{ github.event.pull_request.number }}/comments \
-d "## :negative_squared_cross_mark: Linting errors found! \n\`\`\` \n$COMMENT_BODY \n\`\`\`"
https://api.github.com/repos/${{ github.repository }}/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 f5b6042

Please sign in to comment.