diff --git a/github-actions/labels-sync/main.js b/github-actions/labels-sync/main.js index ec3a06088..a2f763e71 100644 --- a/github-actions/labels-sync/main.js +++ b/github-actions/labels-sync/main.js @@ -23508,7 +23508,7 @@ async function syncLabelsInRepo(github, repoName, managedLabels2) { core.startGroup(`Repository: ${repoName}`); const repo = { repo: repoName, owner: import_github2.context.repo.owner }; core.debug(`Requesting labels`); - const repoLabels = await github.paginate(github.issues.listLabelsForRepo, import_github2.context.repo); + const repoLabels = await github.paginate(github.issues.listLabelsForRepo, repo); core.debug(`Retrieved ${repoLabels.length} from Github`); for (const { description, name, color } of managedLabels2) { const matchedLabel = repoLabels.find((label) => label.name === name); diff --git a/github-actions/labels-sync/src/main.ts b/github-actions/labels-sync/src/main.ts index d915cd91f..61cbccdd2 100644 --- a/github-actions/labels-sync/src/main.ts +++ b/github-actions/labels-sync/src/main.ts @@ -16,7 +16,7 @@ async function syncLabelsInRepo(github: Octokit, repoName: string, managedLabels core.debug(`Requesting labels`); /** The list of current labels from Github for the repository. */ - const repoLabels = await github.paginate(github.issues.listLabelsForRepo, context.repo); + const repoLabels = await github.paginate(github.issues.listLabelsForRepo, repo); core.debug(`Retrieved ${repoLabels.length} from Github`); // For each label in the list of managed labels, ensure that it exists and is in sync.