You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Fetch open PRs with the specific label in JSON format. Extract number and author username
23
+
prs=$(gh pr list --state open --label "waiting-author-response" --json number,author --jq '.[] | "\(.number),\(.author.login)"')
24
+
25
+
# However unlikely, exit if none found
26
+
if [ -z "$prs" ]; then
27
+
echo "No open PRs found with the 'waiting-author-response' label."
28
+
exit 0
29
+
fi
30
+
31
+
# Loop through the PRs and post reminder
32
+
echo "$prs" | while IFS=, read -r pr_number author; do
33
+
echo "Sending reminder to @$author on PR #$pr_number..."
34
+
35
+
gh pr comment "$pr_number" --body "Happy Friday @$author, this is a friendly reminder that this PR is waiting for your changes or response. Please take a look when you have a moment!
36
+
37
+
**Note:** Once your changes are ready, remove the \`waiting-author-response\` label and add the \`waiting-review\` label."
0 commit comments