- retries: 3 with 403 removed from exempt list so rate-limit responses
are retried with backoff (octokit/plugin-retry respects Retry-After)
- Wrap addLabels call in try/catch so rate-limit failures emit a
warning instead of hard-failing the job
actions/labeler@v6 fetches the PR via API on every run, which silently
fails with 'Could not find pull request' when the installation rate
limit is exhausted. Replace it with an inline github-script that reads
the branch name directly from the event payload (zero API calls for
branch-name rules). The .github file-change check for the 'repo' label
is the only rule that needs an API call, and it's skipped when the
branch name already matches.
Also removes .github/labeler.yml which is no longer needed.
- Restrict pull-request-target.yml to only 'opened' and 'synchronize'
events to reduce unnecessary API calls that exhaust the rate limit
- Fix 'bugpost' typo back to 'bugfix' in pr_enforce_labels.yml