From 44685cf94e9a81d934cb83bd636ec20efffa10f9 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Tue, 8 Oct 2024 00:38:03 +0200 Subject: [PATCH] remove --- scripts/commit-formatted-code.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 scripts/commit-formatted-code.sh 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