Skip to content

Commit 3367bcc

Browse files
authored
Merge pull request #645 from josibake/josibake-add-warning-for-missing-labels
print a warning when there are no labels from github
2 parents 4d173ea + 2ab3d30 commit 3367bcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Rakefile

+3
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ end
176176
def create_post_file!(filename, response, date, host)
177177
title = parse_title(response['title'])
178178
components = parse_valid_components(response['labels'])
179+
if components.empty?
180+
puts "No label assigned to the PR yet; you will need to add one manually from #{COMPONENTS}"
181+
end
179182

180183
puts "GitHub PR title: \"#{response['title']}\""
181184
puts "Parsed PR title: #{title}"

0 commit comments

Comments
 (0)