File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -481,14 +481,14 @@ class ChangeLogFile {
481481 }
482482
483483 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+ }
489489 }
490490 }
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. " )
492492 }
493493}
494494
You can’t perform that action at this time.
0 commit comments