From e2a42746aeacd094b7e33495b73fd6a9412f5878 Mon Sep 17 00:00:00 2001 From: Mark Patterson <35724907+markpatterson27@users.noreply.github.com> Date: Tue, 6 Jul 2021 12:59:26 +0100 Subject: [PATCH 1/3] updated issue create call to octokit.rest... --- responses/14_create-js-files.md | 6 +++--- responses/14_js-files-activity.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/responses/14_create-js-files.md b/responses/14_create-js-files.md index c5076bc..363d1d8 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. [Look here](https://octokit.github.io/rest.js/#octokit-routes-issues-create) to learn more about `octokit.rest.issues.create()`. ```javascript async function run() { @@ -108,7 +108,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, @@ -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, From f6e5811131690a1aa7c74a6900b76ff9028b3d52 Mon Sep 17 00:00:00 2001 From: Mark Patterson <35724907+markpatterson27@users.noreply.github.com> Date: Tue, 6 Jul 2021 13:03:05 +0100 Subject: [PATCH 2/3] updated issues-create API link --- responses/14_create-js-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/14_create-js-files.md b/responses/14_create-js-files.md index 363d1d8..41fb78d 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.rest.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. [Look here](https://octokit.github.io/rest.js/v18#issues-create) to learn more about `octokit.rest.issues.create()`. ```javascript async function run() { From 69339c323af5e5012fc493ae92b3355d0d6fa167 Mon Sep 17 00:00:00 2001 From: Mark Patterson <35724907+markpatterson27@users.noreply.github.com> Date: Tue, 6 Jul 2021 13:16:13 +0100 Subject: [PATCH 3/3] use accessible link text for issues-create docs --- responses/14_create-js-files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/14_create-js-files.md b/responses/14_create-js-files.md index 41fb78d..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/v18#issues-create) to learn more about `octokit.rest.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() { 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