@@ -47,16 +47,15 @@ jobs: |
47 | 47 | TODAY'S DATE: ${TODAY} |
48 | 48 |
|
49 | 49 | STEP 1: Gather PR data |
50 | | - Run these commands to gather PR information: |
| 50 | + Run these commands to gather PR information. ONLY include PRs created or updated TODAY (${TODAY}): |
51 | 51 |
|
52 | | - # Open PRs with bug fix labels or 'fix' in title |
53 | | - gh pr list --repo ${{ github.repository }} --state open --search \"fix in:title\" --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft,additions,deletions --limit 100 |
| 52 | + # PRs created today |
| 53 | + gh pr list --repo ${{ github.repository }} --state all --search \"created:${TODAY}\" --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft,additions,deletions --limit 100 |
| 54 | +
|
| 55 | + # PRs with activity today (updated today) |
| 56 | + gh pr list --repo ${{ github.repository }} --state open --search \"updated:${TODAY}\" --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft,additions,deletions --limit 100 |
54 | 57 |
|
55 | | - # PRs with high activity (get comments separately to filter bots) |
56 | | - gh pr list --repo ${{ github.repository }} --state open --json number,title,author,labels,createdAt,updatedAt,reviewDecision,isDraft --limit 100 |
57 | 58 |
|
58 | | - # Recently merged bug fixes |
59 | | - gh pr list --repo ${{ github.repository }} --state merged --search \"merged:${TODAY} fix in:title\" --json number,title,author,mergedAt --limit 50 |
60 | 59 |
|
61 | 60 | STEP 2: For high-activity PRs, check comment counts |
62 | 61 | For promising PRs, run: |
@@ -66,39 +65,35 @@ jobs: |
66 | 65 | - copilot-pull-request-reviewer |
67 | 66 | - github-actions |
68 | 67 |
|
69 | | - STEP 3: Identify what matters |
| 68 | + STEP 3: Identify what matters (ONLY from today's PRs) |
70 | 69 |
|
71 | | - **Bug Fixes We Might Miss:** |
72 | | - - PRs with 'fix' or 'bug' in title that have been open 2+ days |
| 70 | + **Bug Fixes From Today:** |
| 71 | + - PRs with 'fix' or 'bug' in title created/updated today |
73 | 72 | - Small bug fixes (< 100 lines changed) that are easy to review |
74 | | - - Bug fixes from community contributors (not core team) |
| 73 | + - Bug fixes from community contributors |
75 | 74 |
|
76 | | - **High Activity PRs:** |
77 | | - - PRs with 5+ human comments (excluding bots listed above) |
78 | | - - PRs with back-and-forth discussion |
79 | | - - Controversial or complex changes getting attention |
| 75 | + **High Activity Today:** |
| 76 | + - PRs with significant human comments today (excluding bots listed above) |
| 77 | + - PRs with back-and-forth discussion today |
80 | 78 |
|
81 | 79 | **Quick Wins:** |
82 | 80 | - Small PRs (< 50 lines) that are approved or nearly approved |
83 | | - - Bug fixes that just need a final review |
| 81 | + - PRs that just need a final review |
84 | 82 |
|
85 | 83 | STEP 4: Generate the recap |
86 | 84 | Create a structured recap: |
87 | 85 |
|
88 | 86 | ===DISCORD_START=== |
89 | 87 | **Daily PR Recap - ${TODAY}** |
90 | 88 |
|
91 | | - **Bug Fixes Needing Attention** |
92 | | - [PRs fixing bugs that might be overlooked - prioritize by age and size] |
93 | | -
|
94 | | - **High Activity** (5+ human comments) |
95 | | - [PRs with significant discussion - exclude bot comments] |
| 89 | + **New PRs Today** |
| 90 | + [PRs opened today - group by type: bug fixes, features, etc.] |
96 | 91 |
|
97 | | - **Quick Wins** (small, ready to merge) |
98 | | - [Easy PRs that just need a review/merge] |
| 92 | + **Active PRs Today** |
| 93 | + [PRs with activity/updates today - significant discussion] |
99 | 94 |
|
100 | | - **Merged Bug Fixes Today** |
101 | | - [What bug fixes shipped] |
| 95 | + **Quick Wins** |
| 96 | + [Small PRs ready to merge] |
102 | 97 | ===DISCORD_END=== |
103 | 98 |
|
104 | 99 | STEP 5: Format for Discord |
|