mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +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
|
// Add selected labels
|
||||||
|
if (labelsToAdd.length > 0) {
|
||||||
github.rest.issues.addLabels({
|
github.rest.issues.addLabels({
|
||||||
issue_number: pullRequest.number,
|
issue_number: pullRequest.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
labels: labelsToAdd
|
labels: labelsToAdd
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user