Skip to content

Commit 49bc84d

Browse files
committed
Refactor backport workflow to simplify label assignment syntax
1 parent c0a1248 commit 49bc84d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/backport.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
const label = `Backport-${version}.x-Consider`;
3030
console.log(label);
3131
32-
github.issues.addLabels({
33-
owner: context.repo.owner,
34-
repo: context.repo.repo,
32+
// Add the label to the issue
33+
await github.issues.addLabels({
34+
...context.repo,
3535
issue_number: context.issue.number,
36-
labels: [label]
36+
labels: [label],
3737
});
3838
} else {
3939
throw new Error("No version found in comment");

0 commit comments

Comments
 (0)