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

Commit

Permalink
Merge pull request #16 from markharrison/markharrison-patch-1
Browse files Browse the repository at this point in the history
Changed github.Github to github.GitHub
  • Loading branch information
mattdavis0351 authored Apr 29, 2020
2 parents bb21a2d + a3089ab commit acb3726
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 acb3726

Please sign in to comment.