Skip to content

Commit 48cd6f6

Browse files
committed
chore: rename
Signed-off-by: exploreriii <[email protected]>
1 parent 3c4809a commit 48cd6f6

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed
Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
DRY_RUN="${DRY_RUN:-false}"
4+
DRY_RUN="${DRY_RUN:-true}"
55

66
ANCHOR_DATE="2025-12-03"
77
MEETING_LINK="https://zoom-lfx.platform.linuxfoundation.org/meeting/99912667426?password=5b584a0e-1ed7-49d3-b2fc-dc5ddc888338"
88
CALENDAR_LINK="https://zoom-lfx.platform.linuxfoundation.org/meetings/hiero?view=week"
99

1010
EXCLUDED_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+
1524
IS_MEETING_WEEK=$(python3 - <<EOF
1625
from datetime import date
1726
d1 = date.fromisoformat("$ANCHOR_DATE")
@@ -25,7 +34,14 @@ if [ "$IS_MEETING_WEEK" = "false" ]; then
2534
exit 0
2635
fi
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

3046
PR_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"

.github/workflows/bot-office-hours.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: PythonBot - Office Hour Reminder
22

33
on:
4-
# push:
54
schedule:
65
- cron: "0 10 * * 3"
7-
workflow_dispatch:
86

97
permissions:
108
contents: read
@@ -19,9 +17,12 @@ jobs:
1917
with:
2018
egress-policy: audit
2119

20+
- name: Checkout repository
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
22+
2223
- name: Check Schedule and Notify
2324
env:
2425
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
DRY_RUN: "true"
26+
DRY_RUN: "false" # will post
2627
run: |
27-
bash ./scripts/office_hour_reminder.sh
28+
bash ./scripts/bot-office-hours.sh

0 commit comments

Comments
 (0)