[Bug]: ensurePullRequestLabel fails when label exists beyond first 100 repo labels
Summary
ensurePullRequestLabel lists only the first page of repository labels. If the target label exists on a later page, creation is attempted, GitHub returns 422 already exists, and the label is never applied to the PR.
Steps to reproduce
- Repository with >100 labels including
gittensor not on page 1.
- Run auto-label on a PR without the label applied.
Expected behavior
Label applied via POST .../issues/{n}/labels.
Actual behavior
Function errors or skips apply after failed create.
Impact
Auto-labeling fails on large active repos.
[Bug]: ensurePullRequestLabel fails when label exists beyond first 100 repo labels
Summary
ensurePullRequestLabellists only the first page of repository labels. If the target label exists on a later page, creation is attempted, GitHub returns 422 already exists, and the label is never applied to the PR.Steps to reproduce
gittensornot on page 1.Expected behavior
Label applied via
POST .../issues/{n}/labels.Actual behavior
Function errors or skips apply after failed create.
Impact
Auto-labeling fails on large active repos.