mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
feat: pr review reminder frequency (#7129)
* feat: run at 9:00 am on monday, wednesday, friday Signed-off-by: jeremyhi <fengjiachun@gmail.com> * chore: remove unused method Signed-off-by: jeremyhi <fengjiachun@gmail.com> --------- Signed-off-by: jeremyhi <fengjiachun@gmail.com>
This commit is contained in:
8
.github/scripts/pr-review-reminder.js
vendored
8
.github/scripts/pr-review-reminder.js
vendored
@@ -57,14 +57,6 @@
|
||||
return days;
|
||||
}
|
||||
|
||||
// Get urgency emoji based on PR age
|
||||
function getAgeEmoji(days) {
|
||||
if (days >= 14) return "🔴"; // 14+ days - critical
|
||||
if (days >= 7) return "🟠"; // 7+ days - urgent
|
||||
if (days >= 3) return "🟡"; // 3+ days - needs attention
|
||||
return "🟢"; // < 3 days - fresh
|
||||
}
|
||||
|
||||
// Build Slack notification message from PR list
|
||||
function buildSlackMessage(prs) {
|
||||
if (prs.length === 0) {
|
||||
|
||||
4
.github/workflows/pr-review-reminder.yml
vendored
4
.github/workflows/pr-review-reminder.yml
vendored
@@ -2,8 +2,8 @@ name: PR Review Reminder
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Run at 9:00 AM UTC+8 (01:00 AM UTC) every day
|
||||
- cron: '0 1 * * *'
|
||||
# Run at 9:00 AM UTC+8 (01:00 AM UTC) on Monday, Wednesday, Friday
|
||||
- cron: '0 1 * * 1,3,5'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
Reference in New Issue
Block a user