Skip to content

Commit

Permalink
Add latest changes in release draft on top of the list. (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Nov 11, 2020
1 parent 31684d6 commit 55bdf26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/webhooks/github/actions/release_drafter.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (r *releaseDrafter) updateReleaseBody(headline string, org string, priorBod
if componentVersion.GT(oldVersion) {
// in this case we need to merge contents together and update the headline
section.Heading = heading
section.ContentLines = append(section.ContentLines, body...)
section.ContentLines = append(body, section.ContentLines...)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/webhooks/github/actions/release_drafter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func TestReleaseDrafter_updateReleaseBody(t *testing.T) {
- 42
## metal-robot v0.2.5
* Fix (metal-stack/metal-robot#123) @Gerrit91
- Adding new feature
- Fixed a bug
* Fix (metal-stack/metal-robot#123) @Gerrit91`,
- Fixed a bug`,
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 55bdf26

Please sign in to comment.