diff --git a/.github/workflows/autoformat.js b/.github/workflows/autoformat.js index 95f49fe5f756b6..fd4092be2f5f9e 100644 --- a/.github/workflows/autoformat.js +++ b/.github/workflows/autoformat.js @@ -25,7 +25,7 @@ const shouldAutoformat = (comment) => { return isNewCommand(comment) || isOldCommand(comment); }; -const getPullInformation = async (context, github) => { +const getPullInfo = async (context, github) => { const { owner, repo } = context.repo; const pull_number = context.issue.number; const pr = await github.rest.pulls.get({ owner, repo, pull_number }); diff --git a/.github/workflows/autoformat.yml b/.github/workflows/autoformat.yml index 805cc3e7d44071..94473a4bf3472a 100644 --- a/.github/workflows/autoformat.yml +++ b/.github/workflows/autoformat.yml @@ -48,6 +48,7 @@ jobs: await autoformat.createReaction(context, github); await autoformat.createStatus(context, github, core); } + const pullInfo = await autoformat.getPullInfo(context, github); return { ...pullInfo, shouldAutoformat }; format: