Skip to content

Commit 87712d4

Browse files
snomiaoclaude
andauthored
feat(coreping): filter out draft PRs from Core/Important PR notifications (#59)
Draft PRs should not be included in Core/Important PR reminder messages since they are not ready for review yet. Added check to exclude draft PRs by marking them as "unrelated" status. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 0ce970c commit 87712d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/tasks/coreping/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ if (import.meta.main) {
139139

140140
if (!corePrLabel) return saveTask({ url: html_url, status: "unrelated" });
141141
if (pr.state === "closed") return saveTask({ url: html_url, status: "closed" });
142+
if (pr.draft) return saveTask({ url: html_url, status: "unrelated", statusMsg: "Draft PR, skipping" });
142143

143144
// check timeline events
144145
const timeline = await fetchFullTimeline(html_url);

0 commit comments

Comments
 (0)