11#! /usr/bin/env bash
22set -euo pipefail
33
4- DRY_RUN=" ${DRY_RUN:- false } "
4+ DRY_RUN=" ${DRY_RUN:- true } "
55
66ANCHOR_DATE=" 2025-12-03"
77MEETING_LINK=" https://zoom-lfx.platform.linuxfoundation.org/meeting/99912667426?password=5b584a0e-1ed7-49d3-b2fc-dc5ddc888338"
88CALENDAR_LINK=" https://zoom-lfx.platform.linuxfoundation.org/meetings/hiero?view=week"
99
1010EXCLUDED_AUTHORS=(
11- " hiero-sdk-python-maintainers"
12- " hiero-sdk-python-committers"
11+ " rbair23"
12+ " nadineloepfe"
13+ " exploreriii"
14+ " manishdait"
15+ " Dosik13"
16+ " hendrikebbers"
1317)
1418
19+ if [ " $DRY_RUN " = " true" ]; then
20+ echo " === DRY RUN MODE ENABLED ==="
21+ echo " No comments will be posted."
22+ fi
23+
1524IS_MEETING_WEEK=$( python3 - << EOF
1625from datetime import date
1726d1 = date.fromisoformat("$ANCHOR_DATE ")
@@ -25,7 +34,14 @@ if [ "$IS_MEETING_WEEK" = "false" ]; then
2534 exit 0
2635fi
2736
28- REPO=" ${GITHUB_REPOSITORY:- $(gh repo view --json nameWithOwner -q .nameWithOwner)} "
37+ if [ -z " ${GITHUB_REPOSITORY:- } " ]; then
38+ echo " ERROR: GITHUB_REPOSITORY is not set."
39+ echo " Set it explicitly, e.g.:"
40+ echo " export GITHUB_REPOSITORY=owner/repo"
41+ exit 1
42+ fi
43+
44+ REPO=" $GITHUB_REPOSITORY "
2945
3046PR_DATA=$( gh pr list --repo " $REPO " --state open --json number,author,createdAt)
3147
@@ -78,7 +94,13 @@ echo "$PR_DATA" |
7894 fi
7995
8096 if [ " $DRY_RUN " = " true" ]; then
97+ echo " ----------------------------------------"
8198 echo " [DRY RUN] Would comment on PR #$PR_NUM "
99+ echo " [DRY RUN] Author: @$AUTHOR "
100+ echo " [DRY RUN] Comment body:"
101+ echo " ----------------------------------------"
102+ echo " $COMMENT_BODY "
103+ echo " ----------------------------------------"
82104 else
83105 gh pr comment " $PR_NUM " --repo " $REPO " --body " $COMMENT_BODY "
84106 echo " Reminder posted to PR #$PR_NUM "
0 commit comments