From da4433692e15eea816e1f8f2cec89ea385564690 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Tue, 18 May 2021 23:15:27 +0200 Subject: [PATCH] Update index.mjs --- source/app/action/index.mjs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index cedb4d02..90ee9f3a 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -207,12 +207,12 @@ async function wait(seconds) { try { const {repository:{object:{oid}}} = await graphql( ` - query Sha { - repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") { - object(expression: "${committer.head}:${filename}") { ... on Blob { oid } } - } - } - `, + query Sha { + repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") { + object(expression: "${committer.head}:${filename}") { ... on Blob { oid } } + } + } + `, {headers:{authorization:`token ${committer.token}`}}, ) committer.sha = oid @@ -325,12 +325,12 @@ async function wait(seconds) { try { const {repository:{object:{oid}}} = await graphql( ` - query Sha { - repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") { - object(expression: "${committer.head}:${path}") { ... on Blob { oid } } - } - } - `, + query Sha { + repository(owner: "${github.context.repo.owner}", name: "${github.context.repo.repo}") { + object(expression: "${committer.head}:${path}") { ... on Blob { oid } } + } + } + `, {headers:{authorization:`token ${committer.token}`}}, ) sha = oid