Prevent recursive commits (#576)

Signed-off-by: Glenn Jocher <[email protected]>
This commit is contained in:
Glenn Jocher
2025-10-21 15:02:17 +02:00
committed by GitHub
parent a82e2b66b4
commit 5eee03ab92
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -232,6 +232,12 @@ runs:
GITHUB_USERNAME: ${{ inputs.github_username }}
GITHUB_EMAIL: ${{ inputs.github_email }}
run: |
# Check if last commit was by the bot to prevent recursive loops
LAST_AUTHOR=$(git log -1 --pretty=format:'%an')
if [ "$LAST_AUTHOR" = "$GITHUB_USERNAME" ]; then
echo "Last commit was by $GITHUB_USERNAME, skipping to prevent recursive loop"
exit 0
fi
git config --global user.name "$GITHUB_USERNAME"
git config --global user.email "$GITHUB_EMAIL"
git add .
+2 -2
View File
@@ -231,8 +231,8 @@ def post_review_summary(event: Action, review_data: dict, review_number: int) ->
"please",
"should",
"must",
"need to",
"needs to",
"raise",
"needs",
"before merging",
"fix",
"error",