Skip to content

Commit

Permalink
Fix adding pr description after every update. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Jun 22, 2021
1 parent 3749f0d commit eaa6a15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/webhooks/github/actions/release_drafter.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,13 @@ func (r *releaseDrafter) appendPullRequest(headline string, org string, priorBod
l := fmt.Sprintf("* %s (%s/%s#%d) @%s", title, org, repo, number, author)

body := []string{l}
if r.prDescription != nil {
body = append([]string{*r.prDescription}, body...)
}

section := m.FindSectionByHeading(1, headline)
if section == nil {
if r.prDescription != nil {
body = append([]string{*r.prDescription}, body...)
}

m.AppendSection(&utils.MarkdownSection{
Level: 1,
Heading: headline,
Expand Down

0 comments on commit eaa6a15

Please sign in to comment.