豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit f60c5f4

Browse files
devversionjosephperrott
authored andcommitted
fix(github-actions): labels sync action not actually checking target repos (#895)
PR Close #895
1 parent df2f203 commit f60c5f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github-actions/labels-sync/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23508,7 +23508,7 @@ async function syncLabelsInRepo(github, repoName, managedLabels2) {
2350823508
core.startGroup(`Repository: ${repoName}`);
2350923509
const repo = { repo: repoName, owner: import_github2.context.repo.owner };
2351023510
core.debug(`Requesting labels`);
23511-
const repoLabels = await github.paginate(github.issues.listLabelsForRepo, import_github2.context.repo);
23511+
const repoLabels = await github.paginate(github.issues.listLabelsForRepo, repo);
2351223512
core.debug(`Retrieved ${repoLabels.length} from Github`);
2351323513
for (const { description, name, color } of managedLabels2) {
2351423514
const matchedLabel = repoLabels.find((label) => label.name === name);

github-actions/labels-sync/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function syncLabelsInRepo(github: Octokit, repoName: string, managedLabels
1616

1717
core.debug(`Requesting labels`);
1818
/** The list of current labels from Github for the repository. */
19-
const repoLabels = await github.paginate(github.issues.listLabelsForRepo, context.repo);
19+
const repoLabels = await github.paginate(github.issues.listLabelsForRepo, repo);
2020
core.debug(`Retrieved ${repoLabels.length} from Github`);
2121

2222
// For each label in the list of managed labels, ensure that it exists and is in sync.

0 commit comments

Comments
 (0)