-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from GATEOverflow/mlperf-inference
Format all python files using autopep
- Loading branch information
Showing
381 changed files
with
12,249 additions
and
8,336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,12 +37,20 @@ jobs: | |
git add $FILE | ||
done | ||
- name: Commit | ||
- name: Commit and create PR | ||
run: | | ||
HAS_CHANGES=$(git diff --staged --name-only) | ||
if [ ${#HAS_CHANGES} -gt 0 ]; then | ||
git config --global user.name mlcommons-bot | ||
git config --global user.email "[email protected]" | ||
# Commit changes | ||
git commit -m '[Automated Commit] Format Codebase' | ||
git push | ||
# Push changes to a new branch | ||
BRANCH_NAME="auto/code-format-$(date +%Y%m%d%H%M%S)" | ||
git branch $BRANCH_NAME | ||
git push origin $BRANCH_NAME | ||
|
||
# Create a pull request to the "code-format" branch | ||
gh pr create --base code-format --head $BRANCH_NAME --title "[Automated PR] Format Codebase" --body "This pull request contains automated code formatting changes." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.