Skip to content

Commit

Permalink
🌱 use bot for labelling too (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <[email protected]>
  • Loading branch information
djzager authored Feb 6, 2024
1 parent adbaa62 commit 1c44b31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/reconcile-issue-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/reconcile-issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c44b31

Please sign in to comment.