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
14
.github/workflows/label-pr.yml
vendored
14
.github/workflows/label-pr.yml
vendored
@ -71,9 +71,11 @@ jobs:
|
||||
}
|
||||
|
||||
// Add selected labels
|
||||
github.rest.issues.addLabels({
|
||||
issue_number: pullRequest.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: labelsToAdd
|
||||
})
|
||||
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