Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed May 11, 2024
1 parent 873668d commit 1531813
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eng/common/scripts/sync-labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ function logLabels(message: string, labels: Label[]) {
const max = labels.reduce((max, label) => Math.max(max, label.name.length), 0);
for (const label of labels) {
console.log(
` ${pc.cyan(label.name).padEnd(max)} #${pc.blue(label.color)} ${pc.gray(label.description)}`
` ${pc.cyan(label.name.padEnd(max))} ${pc.blue(`#${label.color}`)} ${pc.gray(label.description)}`
);
}
console.log("");
}

interface UpdateGithubLabelOptions {
readonly dryRun?: boolean;
}

async function updateGithubLabels(labels: Label[], options: UpdateGithubLabelOptions = {}) {
if (!options.dryRun && !process.env.GITHUB_TOKEN) {
throw new Error(
Expand Down

0 comments on commit 1531813

Please sign in to comment.