The GitHub Actions job "Backport Auto Label" on 
texera.git/ci/backport-auto-label-no-require has failed.
Run started by GitHub user Yicong-Huang (triggered by Yicong-Huang).

Head commit for run:
722f24183dc75b064ab34935527d7b998f93ba3f / Yicong Huang 
<[email protected]>
ci: fix backport auto-label crash; skip fix(ci) from backport

The Backport Auto Label workflow built a second Octokit with
`require("@actions/github").getOctokit(BOT_TOKEN)`, but github-script's
patched `require` resolves modules from the checked-out workspace, which
has no such package — so every run aborted with
`Cannot find module '@actions/github'`.

Split the single github-script step into two, each with its own natural
`github-token`, so no second Octokit is constructed in-script:
  - Label (PAT): all reads and label writes, so a `labeled` event still
    retriggers the backport pre-merge check; hands its decisions to the
    next step via a JSON step output.
  - Report (GITHUB_TOKEN): requests reviewers and upserts the report
    comment as github-actions[bot], so neither retriggers a
    comment-/review-driven workflow.

Also skip `fix(ci):` PRs: CI-only fixes never land on a release branch,
so they are treated like non-fix titles and left unlabeled.

Closes #6969

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/30335937607

With regards,
GitHub Actions via GitBox

Reply via email to