Skip to content

Commit

Permalink
fix(github-actions): labels sync action not actually checking target …
Browse files Browse the repository at this point in the history
…repos (#895)

PR Close #895
  • Loading branch information
devversion authored and josephperrott committed Nov 14, 2022
1 parent df2f203 commit f60c5f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit f60c5f4

Please sign in to comment.