mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
ci: skip adding PR labels if there are none to add (#25475)
This commit is contained in:
parent
9eb0d21ad5
commit
80b1c7077f
2
.github/workflows/label-pr.yml
vendored
2
.github/workflows/label-pr.yml
vendored
@ -71,9 +71,11 @@ jobs:
|
||||
}
|
||||
|
||||
// Add selected labels
|
||||
if (labelsToAdd.length > 0) {
|
||||
github.rest.issues.addLabels({
|
||||
issue_number: pullRequest.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: labelsToAdd
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user