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

Fix typo and update token call for "14_js-files-activity.md" #32

Merged
merged 1 commit into from
Apr 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions responses/14_js-files-activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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.

1. Create a file named `index.js`. **Its full path should be: `.github/actions/issue-makes/index.js`.**
1. Create a file named `index.js`. **Its full path should be: `.github/actions/issue-maker/index.js`.**
2. Create the `core` and `github` variables
3. Create an asynchronous function named `run()`
4. Inside a try/catch block define the `issueTitle`, `jokeBody`, `token` and `octokit` variables
Expand Down Expand Up @@ -33,7 +33,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.getOctokit(token);

const newIssue = await octokit.issues.create({
repo: github.context.repo.repo,
Expand Down