rok opened a new pull request, #55885:
URL: https://github.com/apache/arrow/pull/55885

   ### Rationale for this change
   
   To help keep the open PR queue manageable under the increased volume of 
unsolicited/low-effort PRs, untriaged PRs from first-time contributors should 
expire automatically unless a maintainer opts in by removing the triage label.
   
   ### What changes are included in this PR?
   
   Adds `.github/workflows/triage.yml` with two jobs using 
`actions/github-script@v9`:
   - **`label`** (`pull_request_target: [opened]`): applies `Status: Needs 
triage` to newly opened PRs from first-time contributors (skips `OWNER`, 
`MEMBER`, `COLLABORATOR`, `CONTRIBUTOR`, `dependabot[bot]`, and 
`github-actions[bot]`). Does not check out PR code.
   - **`close`** (`schedule` every 6 hours + `workflow_dispatch`): finds open 
PRs labeled `Status: Needs triage` and closes any where the label was most 
recently applied more than 3 days ago, leaving an explanatory comment.
   
   ### Are these changes tested?
   
   Validated workflow YAML syntax and unit-tested both `actions/github-script` 
blocks locally against mocked GitHub API payloads (author associations/bots, 
ignoring non-PR issues, <3-day PRs, re-labeled PRs, and >3-day closures).
   
   ### Are there any user-facing changes?
   
   No public API changes. First-time PR contributors will see the `Status: 
Needs triage` label applied on open, and untriaged PRs will auto-close after 3 
days unless a maintainer removes the label.
   
   ### Was AI used for this PR?
   
   In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
   
   **PR code and description written by:**
   
   - [ ] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [x] Human
   - [ ] AI
   - [ ] Not reviewed
   
   * GitHub Issue: #55884
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to