Update release notes script to add the "breaking java" label

This commit is contained in:
Clinton Gormley 2016-07-29 13:53:57 +02:00
parent 6b68d1e09b
commit e1a347bed5
1 changed files with 18 additions and 15 deletions

View File

@ -27,12 +27,14 @@ my $Base_URL = "https://${Github_Key}api.github.com/repos/";
my $User_Repo = 'elastic/elasticsearch/';
my $Issue_URL = "http://github.com/${User_Repo}issues/";
my @Groups = qw(
breaking deprecation feature
enhancement bug regression upgrade non-issue build docs test
my @Groups = (
"breaking", "breaking java", "deprecation", "feature",
"enhancement", "bug", "regression", "upgrade", "non-issue", "build",
"docs", "test"
);
my %Group_Labels = (
breaking => 'Breaking changes',
'breaking java' => 'Breaking Java changes',
build => 'Build',
deprecation => 'Deprecations',
docs => 'Docs',
@ -158,6 +160,7 @@ sub fetch_issues {
ISSUE:
for my $issue (@issues) {
next if $seen{ $issue->{number} } && !$issue->{pull_request};
# uncomment for including/excluding PRs already issued in other versions
# next if grep {$_->{name}=~/^v2/} @{$issue->{labels}};
my %labels = map { $_->{name} => 1 } @{ $issue->{labels} };