File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -481,14 +481,14 @@ class ChangeLogFile {
481
481
}
482
482
483
483
private static getVersionId (jsonReleaseNotes , String restReleaseVersion ) {
484
- def fixVersions = jsonReleaseNotes. issues. get( 0 ) . fields . fixVersions
485
-
486
- for ( def fixVersion : fixVersions ) {
487
- if ( fixVersion . name . equals( restReleaseVersion ) ) {
488
- return fixVersion . id
484
+ for ( def issue : jsonReleaseNotes. issues ) {
485
+ for ( def fixVersion : issue . fields . fixVersions ) {
486
+ if ( fixVersion. name == restReleaseVersion ) {
487
+ return fixVersion . id
488
+ }
489
489
}
490
490
}
491
- throw new GradleException ( " Unable to determine the version id of the current release. " )
491
+ throw new GradleException (" No issues found for current release version ( " + restReleaseVersion + " ), aborting. " )
492
492
}
493
493
}
494
494
You can’t perform that action at this time.
0 commit comments