From 1c44b31ec14ef18d1ad0afea053f70e43e11d05e Mon Sep 17 00:00:00 2001 From: David Zager Date: Tue, 6 Feb 2024 14:34:48 -0500 Subject: [PATCH] :seedling: use bot for labelling too (#63) Signed-off-by: David Zager --- .github/workflows/reconcile-issue-comment.yaml | 1 + .github/workflows/reconcile-issue.yaml | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reconcile-issue-comment.yaml b/.github/workflows/reconcile-issue-comment.yaml index f92d227..fa8a49a 100644 --- a/.github/workflows/reconcile-issue-comment.yaml +++ b/.github/workflows/reconcile-issue-comment.yaml @@ -91,6 +91,7 @@ jobs: }); console.log(`Commenter ${commenterLogin} is a collaborator.`); } catch (error) { + console.log(error); console.log(`Commenter ${commenterLogin} is not a collaborator.`); await github.rest.issues.createComment({ issue_number: context.issue.number, diff --git a/.github/workflows/reconcile-issue.yaml b/.github/workflows/reconcile-issue.yaml index 049d90e..4859622 100644 --- a/.github/workflows/reconcile-issue.yaml +++ b/.github/workflows/reconcile-issue.yaml @@ -27,9 +27,8 @@ jobs: - name: Handle labels uses: actions/github-script@v7 - env: - GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }} with: + github-token: ${{ steps.get_workflow_token.outputs.token }} script: | // begin helper function for adding comments async function ensureComment(body, shouldExist) {