Skip to content

Commit

Permalink
Update alternate-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ash17290 authored Mar 28, 2024
1 parent 0eb847b commit 0372217
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/alternate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
}
});
} catch (GraphQLError) {
core.debug(GraphQLError);
if (
GraphQLError.name === 'GraphqlResponseError' &&
GraphQLError.errors.some(
Expand All @@ -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,
Expand Down

0 comments on commit 0372217

Please sign in to comment.