Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit acb3726

Browse files
Merge pull request #16 from markharrison/markharrison-patch-1
Changed github.Github to github.GitHub
2 parents bb21a2d + a3089ab commit acb3726

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

responses/14_create-js-files.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function run() {
8989
const jokeBody = core.getInput("joke");
9090
const token = core.getInput("repo-token");
9191

92-
const octokit = new github.Github(token);
92+
const octokit = new github.GitHub(token);
9393
} catch (err) {}
9494
}
9595

@@ -106,7 +106,7 @@ async function run() {
106106
const jokeBody = core.getInput("joke");
107107
const token = core.getInput("repo-token");
108108

109-
const octokit = new github.Github(token);
109+
const octokit = new github.GitHub(token);
110110

111111
const newIssue = await octokit.issues.create({
112112
repo: github.context.repo.repo,
@@ -132,7 +132,7 @@ async function run() {
132132
const jokeBody = core.getInput("joke");
133133
const token = core.getInput("repo-token");
134134

135-
const octokit = new github.Github(token);
135+
const octokit = new github.GitHub(token);
136136

137137
const newIssue = await octokit.issues.create({
138138
repo: github.context.repo.repo,
@@ -141,7 +141,7 @@ async function run() {
141141
body; jokeBody
142142
});
143143
} catch (err) {
144-
core.setFailed(error.message);
144+
core.setFailed(err.message);
145145
}
146146
}
147147

0 commit comments

Comments
 (0)