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

Commit dca5273

Browse files
authored
Merge pull request #33 from githubtraining/quick-fix
Correct JS codeblock in 14_js-files-activity.md
2 parents 6af39ca + d282e23 commit dca5273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

responses/14_js-files-activity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
I'm counting on you this time! In the previous steps I have guided you heavily on what to type along the way. This time I ask that you look back on the things you've done in this course and pull from the knowledge you already have to accomplish these tasks.
44

5-
1. Create a file named `index.js`. **Its full path should be: `.github/actions/issue-makes/index.js`.**
5+
1. Create a file named `index.js`. **Its full path should be: `.github/actions/issue-maker/index.js`.**
66
2. Create the `core` and `github` variables
77
3. Create an asynchronous function named `run()`
88
4. Inside a try/catch block define the `issueTitle`, `jokeBody`, `token` and `octokit` variables
@@ -33,7 +33,7 @@ async function run() {
3333
const jokeBody = core.getInput("joke");
3434
const token = core.getInput("repo-token");
3535

36-
const octokit = new github.GitHub(token);
36+
const octokit = new github.getOctokit(token);
3737

3838
const newIssue = await octokit.issues.create({
3939
repo: github.context.repo.repo,

0 commit comments

Comments
 (0)