diff --git a/responses/14_create-js-files.md b/responses/14_create-js-files.md index ce702e9..0e7d845 100644 --- a/responses/14_create-js-files.md +++ b/responses/14_create-js-files.md @@ -97,7 +97,7 @@ run(); ``` **Creating an issue in the repository** -Next we use that octokit client to create an issue in your repository, which will make the HTTP request to the GitHub API for us. [Look here](https://octokit.github.io/rest.js/#octokit-routes-issues-create) to learn more about `octokit.issues.create()`. +Next we use that octokit client to create an issue in your repository, which will make the HTTP request to the GitHub API for us. You can learn more about `octokit.rest.issues.create()` in the [octokit API documentation](https://octokit.github.io/rest.js/v18#issues-create). ```javascript async function run() { @@ -134,7 +134,7 @@ async function run() { const octokit = github.getOctokit(token); - const newIssue = await octokit.issues.create({ + const newIssue = await octokit.rest.issues.create({ repo: github.context.repo.repo, owner: github.context.repo.owner, title: issueTitle, diff --git a/responses/14_js-files-activity.md b/responses/14_js-files-activity.md index 3cf9372..5a248bf 100644 --- a/responses/14_js-files-activity.md +++ b/responses/14_js-files-activity.md @@ -35,7 +35,7 @@ async function run() { const octokit = new github.getOctokit(token); - const newIssue = await octokit.issues.create({ + const newIssue = await octokit.rest.issues.create({ repo: github.context.repo.repo, owner: github.context.repo.owner, title: issueTitle, pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy