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

Commit

Permalink
Changed to github.GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
markharrison authored Apr 27, 2020
1 parent bb21a2d commit a3089ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions responses/14_create-js-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function run() {
const jokeBody = core.getInput("joke");
const token = core.getInput("repo-token");

const octokit = new github.Github(token);
const octokit = new github.GitHub(token);
} catch (err) {}
}

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

const octokit = new github.Github(token);
const octokit = new github.GitHub(token);

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

const octokit = new github.Github(token);
const octokit = new github.GitHub(token);

const newIssue = await octokit.issues.create({
repo: github.context.repo.repo,
Expand All @@ -141,7 +141,7 @@ async function run() {
body; jokeBody
});
} catch (err) {
core.setFailed(error.message);
core.setFailed(err.message);
}
}

Expand Down

0 comments on commit a3089ab

Please sign in to comment.