Skip to content

Commit

Permalink
Fix autoformat (mlflow#13734)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <[email protected]>
Signed-off-by: Daniel Lok <[email protected]>
  • Loading branch information
harupy authored and daniellok-db committed Nov 11, 2024
1 parent 4ce3cfa commit 4c6707c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/autoformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4c6707c

Please sign in to comment.