Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
octokit/request.js#463
node v14.20.1
version:
1.0.0
endpoint
share
tweet
https://github.com/octokit/request.js/issues/463
const { Octokit } = require("@octokit/core") const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN }) // https://github.com/octokit/request.js/pull/460.diff const result = await octokit.request("GET /repos/{owner}/{repo}/pulls/{pull_number}", { owner: "octokit", repo: "request.js", pull_number: 460, mediaType: { format: "diff", }, }); console.log(result.data)
Loading…
no comments
sign in
to comment