Skip to content

Commit 54f0615

Browse files
committed
merge
1 parent 3470f2e commit 54f0615

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/auto_merge_approved_prs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
max_merges=2
4040
4141
echo "Authorized user: $authorized_user"
42-
echo "Looking for PRs with exact comment 'bot merge please' from $authorized_user..."
42+
echo "Looking for PRs with exact comment 'merge' from $authorized_user..."
4343
4444
# Get all open PRs
4545
prs=$(gh pr list --state open --json number,title,url --repo "$GITHUB_REPOSITORY")
@@ -74,14 +74,14 @@ jobs:
7474
echo "Comments in PR #$pr_number:"
7575
echo "$comments" | jq -r '" - Author: " + .author.login + " | Comment: " + (.body | split("\n")[0] | .[0:100])'
7676
77-
# Check if any comment from carlospolop contains exactly "bot merge please"
77+
# Check if any comment from carlospolop contains exactly "merge"
7878
has_merge_comment=false
7979
echo "$comments" | jq -r '.author.login + "|" + .body' | while IFS='|' read -r comment_author comment_body; do
8080
# Check if the comment author is exactly "carlospolop"
8181
if [ "$comment_author" = "$authorized_user" ]; then
82-
# Check for exact match "bot merge please" (case-insensitive)
83-
if echo "$comment_body" | grep -iExq "bot merge please"; then
84-
echo "Found exact 'bot merge please' comment from $authorized_user in PR #$pr_number"
82+
# Check for exact match "merge" (case-insensitive)
83+
if echo "$comment_body" | grep -iExq "merge"; then
84+
echo "Found exact 'merge' comment from $authorized_user in PR #$pr_number"
8585
echo "true" > /tmp/has_merge_comment_$pr_number
8686
break
8787
fi
@@ -113,7 +113,7 @@ jobs:
113113
echo "PR #$pr_number is not mergeable (status: $pr_mergeable)"
114114
fi
115115
else
116-
echo "No exact 'bot merge please' comment found from $authorized_user in PR #$pr_number"
116+
echo "No exact 'merge' comment found from $authorized_user in PR #$pr_number"
117117
fi
118118
119119
# Clean up temp file

0 commit comments

Comments
 (0)