Skip to content

Commit 530d7c9

Browse files
GiggleLiuclaude
andcommitted
Improve community call reminder: closed issues, doc link, Monday schedule
- Add closed issues from the last week (with issue author, not PR author) - Add link to latest reductions.pdf documentation - Move schedule from Tuesday to Monday (one day before the call) - Topic date now shows tomorrow (the actual call date) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7ab541f commit 530d7c9

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/community-call.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Community Call Reminder
22

33
on:
44
schedule:
5-
# Every Tuesday at 00:00 UTC = 08:00 HKT (2 hours before 10:00 HKT call)
6-
- cron: '0 0 * * 2'
5+
# Every Monday at 00:00 UTC = 08:00 HKT (one day before Tuesday 10:00 HKT call)
6+
- cron: '0 0 * * 1'
77
workflow_dispatch: # Manual trigger for testing
88

99
jobs:
@@ -70,21 +70,44 @@ jobs:
7070
echo 'EOF'
7171
} >> "$GITHUB_OUTPUT"
7272
73+
- name: Collect closed issues from last week
74+
id: closed
75+
env:
76+
GH_TOKEN: ${{ secrets.PROJECT_READ_TOKEN }}
77+
run: |
78+
SINCE=$(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ)
79+
ITEMS=$(gh issue list --repo "$GITHUB_REPOSITORY" --state closed \
80+
--search "closed:>=$SINCE" --json number,title,url,author \
81+
--jq '.[] | "- [#\(.number)](\(.url)) \(.title) (by @\(.author.login))"')
82+
83+
{
84+
echo 'CLOSED<<EOF'
85+
if [ -n "$ITEMS" ]; then
86+
echo "**Closed this week:**"
87+
echo "$ITEMS"
88+
echo ""
89+
fi
90+
echo 'EOF'
91+
} >> "$GITHUB_OUTPUT"
92+
7393
- name: Post to Zulip
7494
env:
7595
ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }}
7696
ZULIP_BOT_API_KEY: ${{ secrets.ZULIP_BOT_API_KEY }}
7797
run: |
78-
TODAY=$(TZ=Asia/Hong_Kong date +%Y-%m-%d)
98+
TOMORROW=$(TZ=Asia/Hong_Kong date -d '+1 day' +%Y-%m-%d)
7999
CALL_TIME="10:00 HKT (UTC+8)"
80100
81-
TOPIC="Community Call ${TODAY}"
101+
TOPIC="Community Call ${TOMORROW}"
82102
83-
BODY="**Community Call — ${TODAY} at ${CALL_TIME}**
103+
BODY="**Community Call — ${TOMORROW} at ${CALL_TIME}**
84104
85105
**Join:** ${{ secrets.CALL_LINK }}
86106
107+
**Latest documentation:** [reductions.pdf](https://codingthrust.github.io/problem-reductions/reductions.pdf)
108+
87109
## Agenda
110+
${{ steps.closed.outputs.CLOSED }}
88111
${{ steps.agenda.outputs.AGENDA }}
89112
**Open discussion** — bring your questions and ideas!
90113

0 commit comments

Comments
 (0)