|
39 | 39 | max_merges=2 |
40 | 40 | |
41 | 41 | 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..." |
43 | 43 | |
44 | 44 | # Get all open PRs |
45 | 45 | prs=$(gh pr list --state open --json number,title,url --repo "$GITHUB_REPOSITORY") |
@@ -74,14 +74,14 @@ jobs: |
74 | 74 | echo "Comments in PR #$pr_number:" |
75 | 75 | echo "$comments" | jq -r '" - Author: " + .author.login + " | Comment: " + (.body | split("\n")[0] | .[0:100])' |
76 | 76 | |
77 | | - # Check if any comment from carlospolop contains exactly "bot merge please" |
| 77 | + # Check if any comment from carlospolop contains exactly "merge" |
78 | 78 | has_merge_comment=false |
79 | 79 | echo "$comments" | jq -r '.author.login + "|" + .body' | while IFS='|' read -r comment_author comment_body; do |
80 | 80 | # Check if the comment author is exactly "carlospolop" |
81 | 81 | 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" |
85 | 85 | echo "true" > /tmp/has_merge_comment_$pr_number |
86 | 86 | break |
87 | 87 | fi |
@@ -113,7 +113,7 @@ jobs: |
113 | 113 | echo "PR #$pr_number is not mergeable (status: $pr_mergeable)" |
114 | 114 | fi |
115 | 115 | 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" |
117 | 117 | fi |
118 | 118 | |
119 | 119 | # Clean up temp file |
|
0 commit comments