1
0
mirror of synced 2025-12-20 02:19:14 -05:00

use a regular issue comment instead of a PR review comment

This commit is contained in:
Sarah Schneider
2021-05-17 16:15:35 -04:00
parent 1001502ca6
commit 42baac12b6
3 changed files with 20 additions and 21 deletions

View File

@@ -10,9 +10,11 @@ if (!process.env.GITHUB_TOKEN) {
// 3. an installation token granted via GitHub Actions
const apiToken = process.env.GITHUB_TOKEN
const { Octokit } = require('@octokit/rest')
// See https://github.com/octokit/rest.js/issues/1207
module.exports = function github () {
return require('@octokit/rest')({
return new Octokit({
auth: `token ${apiToken}`
})
}