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