format and lint
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import {Octokit} from "@octokit/rest";
|
import {Octokit} from "@octokit/rest";
|
||||||
import { Agent } from "node:https";
|
import {Agent} from "node:https";
|
||||||
import { readFileSync } from "fs";
|
import {readFileSync} from "fs";
|
||||||
|
|
||||||
export function getClient(token: string, userAgent?: string): Octokit {
|
export function getClient(token: string, userAgent?: string): Octokit {
|
||||||
const selfSignedCertPath = process.env.PATH_TO_SELF_SIGNED_CERT;
|
const selfSignedCertPath = process.env.PATH_TO_SELF_SIGNED_CERT;
|
||||||
@@ -15,9 +15,8 @@ export function getClient(token: string, userAgent?: string): Octokit {
|
|||||||
userAgent: userAgent || `GitHub Actions Language Server`,
|
userAgent: userAgent || `GitHub Actions Language Server`,
|
||||||
request: {
|
request: {
|
||||||
agent: httpsAgent
|
agent: httpsAgent
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return new Octokit({
|
return new Octokit({
|
||||||
auth: token,
|
auth: token,
|
||||||
|
|||||||
Reference in New Issue
Block a user