From edb79d2fdc5fede4a6cc30fb4478294b6493f840 Mon Sep 17 00:00:00 2001 From: Shardul Vaidya Date: Mon, 2 Oct 2023 14:01:53 -0400 Subject: [PATCH] Fixed exponential revert problem --- .github/workflows/close-pull-request.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-pull-request.yaml b/.github/workflows/close-pull-request.yaml index 835c9f14..3a144125 100644 --- a/.github/workflows/close-pull-request.yaml +++ b/.github/workflows/close-pull-request.yaml @@ -23,10 +23,12 @@ jobs: # Revert Commits or Log that no change was made git config --local user.email "dev@null" git config --local user.name "Conformitron Bot" + + git revert ${commit[0]} --no-edit || echo "Commit ${commit[0]} not reverted" - for commit in $commits; do - echo $commit - git revert $commit --no-edit || echo "Commit $commit not reverted" - done +# for commit in $commits; do +# echo $commit +# git revert $commit --no-edit || echo "Commit $commit not reverted" +# done git push