Skip to content

Commit

Permalink
ci: correctly update comment in action (#6397)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Mar 1, 2023
1 parent ee8b2a0 commit 2678264
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ jobs:
--header 'content-type: application/json' \
-d '["semver minor"]'
- name: Send PR review
if: steps.find-blockers.outputs.found == 'true'
run: | # approve the pull request
curl --request POST \
--url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
-d '{"event":"REQUEST_CHANGES","body":"This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved."}'
uses: peter-evans/create-or-update-comment@v2
continue-on-error: true
with:
issue-number: ${{ github.event.issue.number }}
body: |
This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved.
edit-mode: replace
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"mri": "^1.2.0",
"port-authority": "^2.0.1"
}
}
}

0 comments on commit 2678264

Please sign in to comment.