@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 4f436782af
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 5, 01:00 UTC

[Misc] Improve new PR bot trigger condition (#40114)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>

Cyrus Leung committed Apr 17, 2026 at 16:56 UTC 4f436782afd0b21d6754ea6bc4b80639f737bbc1
1 file changed +5 -5
.github/workflows/new_pr_bot.yml
+5 -5
@@ -62,14 +62,14 @@ jobs:
62 const prAuthor = context.payload.pull_request.user.login;
63
64 const { data: searchResults } = await github.rest.search.issuesAndPullRequests({
65 - q: `repo:${owner}/${repo} type:pr author:${prAuthor}`,
65 + q: `repo:${owner}/${repo} type:pr is:merged author:${prAuthor}`,
66 per_page: 1,
67 });
68
69 - const authorPRCount = searchResults.total_count;
70 - console.log(`Found ${authorPRCount} PRs by ${prAuthor}`);
69 + const mergedPRCount = searchResults.total_count;
70 + console.log(`Found ${mergedPRCount} merged PRs by ${prAuthor}`);
71
72 - if (authorPRCount === 1) {
72 + if (mergedPRCount === 0) {
73 console.log(`Posting welcome comment for first-time contributor: ${prAuthor}`);
74 await github.rest.issues.createComment({
75 owner,
@@ -98,5 +98,5 @@ jobs:
98 ].join('\n'),
99 });
100 } else {
101 - console.log(`Skipping comment for ${prAuthor} - not their first PR (${authorPRCount} PRs found)`);
101 + console.log(`Skipping comment for ${prAuthor} - not a first-time contributor (${mergedPRCount} merged PRs)`);
102 }