diff --git a/scripts/commit-formatted-code.sh b/scripts/commit-formatted-code.sh deleted file mode 100755 index 24bba6f6..00000000 --- a/scripts/commit-formatted-code.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -euo pipefail - -GITHUB_BRANCH="${1}" - -if [[ $(git status) == *"nothing to commit"* ]]; then - echo "Nothing to commit. All code formatted correctly." -else - echo "Formatted some code. Going to push the changes." - git config --global user.name 'Sentry Github Bot' - git config --global user.email 'bot+github-bot@sentry.io' - git fetch - git checkout ${GITHUB_BRANCH} - git commit -am "Format code" - git push --set-upstream origin ${GITHUB_BRANCH} -fi