From ea8d5957ffce180857185687fb4ce338aba7c398 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 23 Jan 2021 19:35:04 +0200 Subject: [PATCH] Update uncivbot.yml --- .github/workflows/uncivbot.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/uncivbot.yml b/.github/workflows/uncivbot.yml index 9c61205022..31d4be0053 100644 --- a/.github/workflows/uncivbot.yml +++ b/.github/workflows/uncivbot.yml @@ -82,18 +82,18 @@ jobs: async function createTranslationBranchIfNeeded() { if (await branchExists(translations)) return var defaultBranch = await getDefaultBranch() - var currentHead = await context.github.git.getRef({ + var currentHead = await github.git.getRef({ owner: context.repo.owner, repo: context.repo.repo, ref: 'heads/' + defaultBranch }) var currentSha = currentHead.data.object.sha - app.log("Current sha: " + currentSha) - await context.github.git.createRef({ + console.log("Current sha: " + currentSha) + await github.git.createRef({ owner: context.repo.owner, repo: context.repo.repo, ref: `refs/heads/`+translations, sha: currentSha }) - await context.github.issues.createComment({ + await github.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,