We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8738f1b commit d003fddCopy full SHA for d003fdd
.github/workflows/label-pull-requests.yml renamed to .github/workflows/label-pull-request.yml
@@ -1,10 +1,11 @@
1
-name: Copy labels from linked issues to PRs
+name: Copy labels from linked issues to PR
2
on:
3
pull_request:
4
types: [opened, reopened, edited]
5
permissions: {}
6
jobs:
7
- label_issues:
+ copy_labels:
8
+ name: Copy labels
9
runs-on: ubuntu-latest
10
permissions:
11
pull-requests: write
@@ -40,7 +41,7 @@ jobs:
40
41
.flatMap((node) => node.labels.nodes.map((label) => label.name))))
42
.filter((label) => !label.startsWith("status:"));
43
- if (labels) {
44
+ if (labels.length > 0) {
45
console.log(`Adding labels to PR: ${labels}`);
46
await github.rest.issues.addLabels({
47
issue_number: context.issue.number,
0 commit comments