Skip to content

Commit

Permalink
fix get_release_notes
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 16, 2024
1 parent 5f96d9f commit 1efe915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AutoMerge/guidelines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ function meets_breaking_explanation_check(labels, body)
end

function get_release_notes(body::AbstractString)
pattern = r"<!-- BEGIN RELEASE NOTES -->\s*(.*?)\s*<!-- END RELEASE NOTES -->"
return findfirst(pattern, body)
pattern = r"<!-- BEGIN RELEASE NOTES -->(?s)(.*?)<!-- END RELEASE NOTES -->"
m = match(pattern, body)
return m === nothing ? nothing : m.captures[1]
end


# This check looks for similar (but not exactly matching) names. It can be
# overridden by a label.
const guideline_distance_check = Guideline(;
Expand Down

0 comments on commit 1efe915

Please sign in to comment.