Skip to content

Commit

Permalink
fix: Fix empty apply label list
Browse files Browse the repository at this point in the history
Signed-off-by: Qian Qian "Cubik"‎ <[email protected]>
  • Loading branch information
Cubik65536 committed Jan 17, 2024
1 parent b80fca1 commit b04a541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/pull-request-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class PullRequestUtils {
}

async applyLabels(labels: string[]) {
if (labels.length === 0) return;
if (labels === null) return;
// Try to apply existing labels to PR. If labels didn't exist, this call will fail.
const labelParams = this.context.issue({ labels: labels });
await this.context.octokit.issues.addLabels(labelParams);
Expand Down

0 comments on commit b04a541

Please sign in to comment.