From cf746b9b06cb44f98bbd53aaca723eae640c9934 Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Mon, 6 Mar 2023 12:51:39 +0530 Subject: [PATCH] Fix thank you workflow (#5022) --- .github/workflows/thank-you.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/thank-you.yml b/.github/workflows/thank-you.yml index 07b042056a0..cdc207fd7c8 100644 --- a/.github/workflows/thank-you.yml +++ b/.github/workflows/thank-you.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest permissions: issues: write + pull-requests: write + contents: write steps: - name: Add thankyou note uses: actions/github-script@v6.3.3 @@ -32,7 +34,7 @@ jobs: const { assignees } = result.data if (assignees.length == 0) { - await github.rest.issues.createComment({ ...options, body }) + await github.rest.issues.createComment({ ...options, body: thankyouNote }) return }