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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ci): handle masked first-time contributor status (#6467)
Ezra Ellettea22809a14a0c
diff --git a/.github/workflows/close-new-contributor-prs.yml b/.github/workflows/close-new-contributor-prs.ymlindex 63b3590df..5d13c3e6d 100644--- a/.github/workflows/close-new-contributor-prs.yml+++ b/.github/workflows/close-new-contributor-prs.yml@@ -32,6 +32,9 @@ jobs:query($owner: String!, $repo: String!, $number: Int!) {repository(owner: $owner, name: $repo) {pullRequest(number: $number) {+ author {+ __typename+ }authorAssociationnumberstate@@ -53,7 +56,16 @@ jobs:return;}- if (!newContributorAssociations.has(pullRequest.authorAssociation)) {+ // GitHub masks both first-time associations as NONE when this+ // query uses the workflow GITHUB_TOKEN. Existing contributors+ // retain CONTRIBUTOR, while bot actors are excluded explicitly.+ const isMaskedNewContributor =+ pullRequest.authorAssociation === "NONE" &&+ pullRequest.author?.__typename === "User";+ if (+ !newContributorAssociations.has(pullRequest.authorAssociation) &&+ !isMaskedNewContributor+ ) {core.info(`Leaving PR #${pullRequest.number} open: author association is ${pullRequest.authorAssociation}.`,);