Skip to content

ci: harden pull request label workflow - #1029

Merged
leoafarias merged 1 commit into
mainfrom
fix/label-workflow-api
Aug 17, 2026
Merged

ci: harden pull request label workflow#1029
leoafarias merged 1 commit into
mainfrom
fix/label-workflow-api

Conversation

@leoafarias

@leoafarias leoafarias commented Aug 17, 2026

Copy link
Copy Markdown
Member

Related issue

Not tied to a product issue.

Description

Make the pull-request label workflow independent of a local checkout and avoid
the issue-label lookup that failed with a transient stale-node HTTP 422 after
the repository move.

Changes

  • Read changed PR files through the paginated Pull Requests API.
  • Reuse labels already present in the pull_request_target event payload.
  • Remove the unnecessary checkout of the untrusted PR head and the unused bot
    token environment variable.
  • Upgrade actions/github-script to the Node 24-based v9 release and retry
    transient API failures.

Review Checklist

  • Testing: YAML parsing, the changed-files REST request, and a fresh
    pull_request_target run on feat(mix_generator): emit styler field metadata #1028 were verified.
  • Breaking Changes: No. Label selection and removal behavior is unchanged.
  • Documentation Updates: Not required for an internal workflow repair.
  • Website Updates: Not required.

Additional Information (optional)

The failure occurred before label calculation completed because
listLabelsOnIssue returned HTTP 422 for PR #1027. The event payload already
contains the same label snapshot, so that request was redundant.

The workflow intentionally preserves its existing ownership of the complete PR
label set: labels not derived from changed package paths (or repo) are
removed.

@leoafarias
leoafarias merged commit 7c4bcb6 into main Aug 17, 2026
4 of 5 checks passed
@leoafarias
leoafarias deleted the fix/label-workflow-api branch August 17, 2026 15:12
@github-actions github-actions Bot added the repo label Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant