Skip to content

fix(github-actions): labels sync action not actually checking target repos #895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion github-actions/labels-sync/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion github-actions/labels-sync/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down