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

Use up-to-date API of @actions/github #19

Merged
merged 2 commits into from
Jul 6, 2020
Merged
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 @@ -89,7 +89,7 @@ async function run() {
const jokeBody = core.getInput("joke");
const token = core.getInput("repo-token");

const octokit = new github.GitHub(token);
const octokit = github.getOctokit(token);
} catch (err) {}
}

Expand All @@ -106,7 +106,7 @@ async function run() {
const jokeBody = core.getInput("joke");
const token = core.getInput("repo-token");

const octokit = new github.GitHub(token);
const octokit = github.getOctokit(token);

const newIssue = await octokit.issues.create({
repo: github.context.repo.repo,
Expand All @@ -132,7 +132,7 @@ async function run() {
const jokeBody = core.getInput("joke");
const token = core.getInput("repo-token");

const octokit = new github.GitHub(token);
const octokit = github.getOctokit(token);

const newIssue = await octokit.issues.create({
repo: github.context.repo.repo,
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