From c66a1493555812439a27c110ab8da8947756d756 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Thu, 25 Jan 2018 20:42:01 +0100 Subject: [PATCH] README.md: Add permissions required for the `assign-to-bounty-awaiting-for-approval.js` script --- README.md | 3 +++ scripts/assign-to-bounty-awaiting-for-approval.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad03ad9..05afef6 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ See the official [docs for deployment](https://probot.github.io/docs/deployment/ - Repository contents - **Read-only** - [x] Check the box for **Push** events - Repository projects - **Read & Write** + - [x] Check the box for **Project for repository projects** events + - Organization projects - **Read-only** + - [x] Check the box for **Project for organization projects** events - Single File - **Read-only** - Path: `.github/github-bot.yml` 1. Generate a private key pass and save it. diff --git a/scripts/assign-to-bounty-awaiting-for-approval.js b/scripts/assign-to-bounty-awaiting-for-approval.js index 307b016..2e04ff7 100644 --- a/scripts/assign-to-bounty-awaiting-for-approval.js +++ b/scripts/assign-to-bounty-awaiting-for-approval.js @@ -58,9 +58,9 @@ async function assignIssueToBountyAwaitingForApproval(context, robot, assign) { } if (assign) { - robot.log(`assignIssueToBountyAwaitingForApproval - Handling labelling of #${payload.issue.number} with ${payload.label.name} on repo ${ownerName}/${repoName}`) + robot.log(`assignIssueToBountyAwaitingForApproval - Handling labeling of #${payload.issue.number} with ${payload.label.name} on repo ${ownerName}/${repoName}`) } else { - robot.log(`assignIssueToBountyAwaitingForApproval - Handling unlabelling of #${payload.issue.number} with ${payload.label.name} on repo ${ownerName}/${repoName}`) + robot.log(`assignIssueToBountyAwaitingForApproval - Handling unlabeling of #${payload.issue.number} with ${payload.label.name} on repo ${ownerName}/${repoName}`) } // Fetch org projects