We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d75af6 commit 75f0f74Copy full SHA for 75f0f74
index.js
@@ -1,7 +1,7 @@
1
'use strict'
2
3
const core = require('@actions/core')
4
-const { GitHub, context } = require('@actions/github')
+const { getOctokit, context } = require('@actions/github')
5
6
const main = async () => {
7
const token = core.getInput('github-token', {
@@ -26,7 +26,7 @@ const main = async () => {
26
required: false
27
});// merge|squash|rebase|fast-forward
28
29
- const octokit = new GitHub(token);
+ const octokit = getOctokit(token);
30
31
if (!context.actor.match(allowed_usernames)) {
32
core.warning('Ignored, the username does not match.');
0 commit comments