Skip to content

Commit

Permalink
Fix stripping of prefix in square brackets
Browse files Browse the repository at this point in the history
Signed-off-by: Derek McGowan <[email protected]>
  • Loading branch information
dmcgowan committed Mar 6, 2024
1 parent 409bd68 commit b4cf2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (p *githubChangeProcessor) prChange(c *change, info pullRequestInfo, pr int
if len(c.Title) > 0 && c.Title[0] == '[' {
idx := strings.IndexByte(c.Title, ']')
if idx > 0 {
c.Title = strings.TrimSpace(c.Title[idx:])
c.Title = strings.TrimSpace(c.Title[idx+1:])
}
}

Expand Down

0 comments on commit b4cf2a6

Please sign in to comment.