Skip to content

Commit b6c1704

Browse files
swissspidyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 8f49dea commit b6c1704

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/reusable-welcome-new-contributors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
result-encoding: string
2525
script: |
2626
const { data } = await github.rest.search.issuesAndPullRequests({
27-
q: `is:pr repo:${context.repo.owner}/${context.repo.repo} author:${context.payload.sender.login}`,
27+
q: `is:pr repo:${context.repo.owner}/${context.repo.repo} author:${context.payload.sender.login} created:<${context.payload.pull_request.created_at}`,
2828
per_page: 2,
2929
});
30-
return String(data.total_count <= 1);
30+
return String(data.total_count === 0);
3131
3232
- name: Welcome New Contributor
3333
if: steps.bot-author-check.outputs.result != 'true' && steps.first-pr-check.outputs.result == 'true'

0 commit comments

Comments
 (0)