chore: publish from staged

This commit is contained in:
github-actions[bot]
2026-06-17 04:12:31 +00:00
parent a28f08e0fc
commit 14203cf09f
8 changed files with 170 additions and 274 deletions
-20
View File
@@ -42,27 +42,7 @@ jobs:
}
};
async function ensureLabel(name, { color, description }) {
try {
await github.rest.issues.createLabel({
owner: context.repo.owner,
repo: context.repo.repo,
name,
color,
description
});
} catch (error) {
if (error.status !== 422) {
throw error;
}
}
}
async function syncManagedLabels(issueNumber, desiredLabels) {
await Promise.all(
Object.entries(managedLabels).map(([name, config]) => ensureLabel(name, config))
);
const currentLabels = await github.paginate(github.rest.issues.listLabelsOnIssue, {
owner: context.repo.owner,
repo: context.repo.repo,