Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): classify new contributors from live PR data (#6010)

Ezra Ellette8b02e374f303
diff --git a/.github/workflows/close-new-contributor-prs.yml b/.github/workflows/close-new-contributor-prs.yml
index 0b17dcbcf..5400dfaf8 100644
--- a/.github/workflows/close-new-contributor-prs.yml
+++ b/.github/workflows/close-new-contributor-prs.yml
@@ -10,9 +10,6 @@ permissions:
jobs:
close:
- if: >-
- github.event.pull_request.author_association == 'FIRST_TIMER' ||
- github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
runs-on: ubuntu-latest
steps:
@@ -20,7 +17,10 @@ jobs:
uses: actions/github-script@v7
with:
script: |
- const pullRequest = context.payload.pull_request;
+ const { data: pullRequest } = await github.rest.pulls.get({
+ ...context.repo,
+ pull_number: context.payload.pull_request.number,
+ });
const newContributorAssociations = new Set([
"FIRST_TIMER",
"FIRST_TIME_CONTRIBUTOR",