Yicong-Huang opened a new pull request, #4899:
URL: https://github.com/apache/texera/pull/4899

   ### What changes were proposed in this PR?
   
   Adds `.github/scripts/reconcile-triage.cjs` — a single source of truth for 
the rule \"open issue should carry \`triage\` iff it has zero assignees AND no 
open/merged closing PRs\". Each \`actions/github-script\` block in this repo 
that mutates closing-issue assignees now \`require\`s the helper and calls 
\`reconcileTriage(...)\` after each mutation:
   
   - \`pr-assignment.yml\`: \"Sync PR opener as assignee on linked issues\", 
\"Unassign PR opener ... on PR close without merge\", \"Credit issue assignees 
on PR merge\".
   - \`issue-triage.yml\`: \`/take\` self-claim job (previously relied on an 
\`issues.assigned\` webhook callback that GITHUB_TOKEN does not deliver).
   
   Each affected job adds a sparse \`actions/checkout@v5\` step so the cjs 
module is available to \`require()\`.
   
   ### Any related issues, documentation, discussions?
   
   Closes #4898.
   
   The event-driven handlers in \`issue-triage.yml\` (job 1) keep covering 
human UI \`assigned\`/\`unassigned\` actions — those webhooks are authored by 
real users and do trigger downstream workflows normally.
   
   ### How was this PR tested?
   
   Static checks only (no runner-side test harness): \`node --check\` on the 
cjs module, YAML parse on both workflow files. Behavior verifiable post-merge 
by closing a PR with linked issues and observing that the \`triage\` label 
reconciles without a separate \`issue-triage\` run.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 4.7 (1M context)


-- 
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