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

Commit e2a4274

Browse files
updated issue create call to octokit.rest...
1 parent dca5273 commit e2a4274

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

responses/14_create-js-files.md

Lines changed: 3 additions & 3 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. [Look here](https://octokit.github.io/rest.js/#octokit-routes-issues-create) to learn more about `octokit.rest.issues.create()`.
101101

102102
```javascript
103103
async function run() {
@@ -108,7 +108,7 @@ async function run() {
108108

109109
const octokit = github.getOctokit(token);
110110

111-
const newIssue = await octokit.issues.create({
111+
const newIssue = await octokit.rest.issues.create({
112112
repo: github.context.repo.repo,
113113
owner: github.context.repo.owner,
114114
title: issueTitle,
@@ -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)