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

Commit a77df64

Browse files
authored
Merge pull request #39 from markpatterson27/update-octokit-calls
Update octokit calls
2 parents c665248 + 69339c3 commit a77df64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

responses/14_create-js-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ run();
9797
```
9898

9999
**Creating an issue in the repository**
100-
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()`.
100+
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).
101101

102102
```javascript
103103
async function run() {
@@ -134,7 +134,7 @@ async function run() {
134134

135135
const octokit = github.getOctokit(token);
136136

137-
const newIssue = await octokit.issues.create({
137+
const newIssue = await octokit.rest.issues.create({
138138
repo: github.context.repo.repo,
139139
owner: github.context.repo.owner,
140140
title: issueTitle,

responses/14_js-files-activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function run() {
3535

3636
const octokit = new github.getOctokit(token);
3737

38-
const newIssue = await octokit.issues.create({
38+
const newIssue = await octokit.rest.issues.create({
3939
repo: github.context.repo.repo,
4040
owner: github.context.repo.owner,
4141
title: issueTitle,

0 commit comments

Comments
 (0)