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

Update octokit calls #39

Merged
merged 3 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions responses/14_create-js-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion responses/14_js-files-activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
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