Skip to content

Commit

Permalink
feat(CI): Added PR comment permission
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Jan 12, 2024
1 parent 3b2563d commit 87e2025
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
contents: read
packages: read
statuses: write
pull-requests: write
issues: write
steps:
- name: Checkout Code
Expand Down Expand Up @@ -66,7 +65,7 @@ jobs:
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
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\`\`\`"}'
-d "{\"body\": \"## :negative_squared_cross_mark: Linting errors found! \n\`\`\`\n$COMMENT_BODY\n\`\`\`\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 87e2025

Please sign in to comment.