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
ci: close first-time contributor pull requests (#5949)
Ezra Ellette46375c9c46b7
diff --git a/.github/workflows/close-new-contributor-prs.yml b/.github/workflows/close-new-contributor-prs.ymlnew file mode 100644index 000000000..0b17dcbcf--- /dev/null+++ b/.github/workflows/close-new-contributor-prs.yml@@ -0,0 +1,54 @@+name: Close new contributor PRs++on:+ pull_request_target:+ types: [opened, reopened]++permissions:+ contents: read+ pull-requests: write++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:+ - name: Close pull request+ uses: actions/github-script@v7+ with:+ script: |+ const pullRequest = context.payload.pull_request;+ const newContributorAssociations = new Set([+ "FIRST_TIMER",+ "FIRST_TIME_CONTRIBUTOR",+ ]);++ if (!newContributorAssociations.has(pullRequest.author_association)) {+ core.info(+ `Leaving PR #${pullRequest.number} open: author association is ${pullRequest.author_association}.`,+ );+ return;+ }++ await github.rest.issues.createComment({+ ...context.repo,+ issue_number: pullRequest.number,+ body: [+ "Thanks for your interest in contributing to screenpipe.",+ "",+ "This repository currently does not accept pull requests from first-time contributors, so this pull request has been closed automatically.",+ ].join("\n"),+ });++ await github.rest.pulls.update({+ ...context.repo,+ pull_number: pullRequest.number,+ state: "closed",+ });++ core.info(+ `Closed PR #${pullRequest.number}: author association is ${pullRequest.author_association}.`,+ );