Chore: Integration test for the bug not possible to use OpenTofu as b… #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Assign PR Reviewers | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
assign-reviewers: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.issue.pull_request != null && github.event.comment.body == '/review' }} | |
steps: | |
- name: Assign PR Reviewers | |
env: | |
GITHUB_TOKEN: ${{ secrets.ENV0_BOT_PAT }} | |
run: | | |
curl -X POST \ | |
-H "Authorization: token $GITHUB_TOKEN" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}/requested_reviewers \ | |
-d '{"team_reviewers":["env0-team"]}' |