We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0084b1e commit 30d64c6Copy full SHA for 30d64c6
cli.js
@@ -56,9 +56,8 @@ async function main() {
56
const { token } = await auth({ type: "oauth" });
57
const octokit = new Octokit({ auth: token });
58
octokit.hook.before("request", async (options) => {
59
- const { method, url, ...parameters } = octokit.request.endpoint.parse(
60
- options
61
- );
+ const { method, url, ...parameters } =
+ octokit.request.endpoint.parse(options);
62
console.log(`> ${method} ${url.replace("https://api.github.com", "")}`);
63
for (const [name, value] of Object.entries(parameters.headers)) {
64
console.log(` ${name}: ${value}`);
0 commit comments