GitHub - branch protection uses silent auth (#184609)

This commit is contained in:
Ladislau Szomoru
2023-06-08 17:59:26 +02:00
committed by GitHub
parent 991e5bdc4d
commit 908b24de44
2 changed files with 10 additions and 10 deletions

View File

@@ -59,10 +59,10 @@ export function getOctokit(): Promise<Octokit> {
let _octokitGraphql: Promise<graphql> | undefined;
export async function getOctokitGraphql(silent = false): Promise<graphql> {
export async function getOctokitGraphql(): Promise<graphql> {
if (!_octokitGraphql) {
try {
const session = await authentication.getSession('github', scopes, { silent });
const session = await authentication.getSession('github', scopes, { silent: true });
if (!session) {
throw new AuthenticationError('No GitHub authentication session available.');