Skip to content

Reduce action_required in Label Closed PRs by using pull_request_target on close events - #44887

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/label-closed-prs
Closed

pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/label-closed-prs

Conversation

Copilot AI commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Label Closed PRs regressed to a high action_required rate, especially on recently closed PRs. The failure pattern is consistent with permission/approval constraints during label-write operations on close events.

  • Trigger/permission context adjustment

    • Switched the workflow trigger from pull_request to pull_request_target for types: [closed].
    • This keeps closure-classification logic unchanged while executing label writes in repository context for fork-origin PR closures.
  • Behavior preserved

    • No changes to classification heuristics (closed:ci-failure, closed:reviewer-rejected, closed:duplicate, closed:unknown).
    • No changes to label creation or label application logic.
on:
  pull_request_target:
    types: [closed]

Copilot AI changed the title [WIP] Fix labeling for closed PRs with action required Reduce action_required in Label Closed PRs by using pull_request_target on close events Jul 11, 2026
Copilot AI requested a review from pelikhan July 11, 2026 07:21
@pelikhan pelikhan closed this Jul 11, 2026
@github-actions
github-actions Bot deleted the copilot/label-closed-prs branch July 19, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Label Closed PRs — 80%+ AR rate since Jul 9

2 participants