Skip to content

Consolidate PR-open automation into a single Pull Request Labeler job #4605

@Yicong-Huang

Description

@Yicong-Huang

Background

We currently have two separate workflows that react to pull_request_target on PR open:

  • Pull Request Labeler / labeler — applies labels via actions/labeler.
  • Auto-assign / assign-pr-author — assigns the PR author to the PR.

Having two workflows produce two separate check entries on every PR adds noise without functional value, since both run the same trigger and have the same audience.

There is also a third job, Auto-assign / credit-issue-on-pr-merge, which is unrelated to PR open — it runs on PR close and credits authors on the linked issue.

Proposal

  • Move the assign-pr-author logic into the existing Pull Request Labeler / labeler job as an additional step (gated on action == 'opened').
  • Reduce Auto-assign to just credit-issue-on-pr-merge, triggered only by pull_request_target: closed and gated on pull_request.merged == true.

This keeps all PR-open automation under one check, and keeps the merge-time credit logic isolated and clearly scoped to merged PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions