From 0372217fbf2cbe2150ec4d3de8e31b5e33403ae5 Mon Sep 17 00:00:00 2001 From: ash17290 <136432476+ash17290@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:12:14 +0530 Subject: [PATCH] Update alternate-workflow.yml --- .github/workflows/alternate-workflow.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/alternate-workflow.yml b/.github/workflows/alternate-workflow.yml index d2a4cdf..b6c5d67 100644 --- a/.github/workflows/alternate-workflow.yml +++ b/.github/workflows/alternate-workflow.yml @@ -64,6 +64,7 @@ jobs: } }); } catch (GraphQLError) { + core.debug(GraphQLError); if ( GraphQLError.name === 'GraphqlResponseError' && GraphQLError.errors.some( @@ -72,9 +73,7 @@ jobs: ) { // Add comment to PR if the bot doesn't have permissions to update the PR - const comment = ` - @${context.actor} I don't have permissions to update this PR. Please ask the PR author to check the "Allow edits from maintainers" checkbox in the PR settings. - `; + const comment = `@${context.actor} I don't have permissions to update this PR. Please ask the PR author to check the "Allow edits from maintainers" checkbox in the PR settings.`; await github.rest.issues.createComment({ owner: context.repo.owner,