From b893fb0919e312dab7bb8170f8570e07d1575bac Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 28 Apr 2021 11:07:39 -0700 Subject: [PATCH] [Squash] nit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michaël Zasso --- .github/workflows/fast-track.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fast-track.yml b/.github/workflows/fast-track.yml index 8485b400f638b50..5c1a18937f79a1c 100644 --- a/.github/workflows/fast-track.yml +++ b/.github/workflows/fast-track.yml @@ -11,9 +11,5 @@ jobs: - name: Request Fast-Track if: github.event.label.name == 'fast-track' env: - COMMENTS_URL: ${{ github.event.issue.comments_url || github.event.pull_request.comments_url }} - run: | - curl -X POST $COMMENTS_URL \ - -H "Content-Type: application/json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - --data '{ "body": "Fast-track has been requested. Please 👍 to approve." }' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "Fast-track has been requested. Please 👍 to approve."