Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit ec53c86

Browse files
committed
Add a label to the PR.
1 parent e798739 commit ec53c86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assets/lib/commands/out.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def output
6666
metadata << { 'name' => 'comment', 'value' => comment }
6767
end
6868

69+
if params.label
70+
Octokit.add_labels_to_an_issue(input.source.repo, id, [params.label])
71+
end
72+
6973
if params.merge.method
7074
commit_msg = if params.merge.commit_msg
7175
commit_path = File.join(destination, params.merge.commit_msg)

0 commit comments

Comments
 (0)