Unverified Commit 422751ac authored by s3krit's avatar s3krit Committed by GitHub
Browse files

Update lib.sh (#1203)

Changes behaviour of `sanitised_git_logs` to collate all changes when operating on separate branches.
parent e4270f50
Pipeline #95829 passed with stages
in 24 minutes and 57 seconds
......@@ -5,7 +5,7 @@ api_base="https://api.github.com/repos"
# Function to take 2 git tags/commits and get any lines from commit messages
# that contain something that looks like a PR reference: e.g., (#1234)
sanitised_git_logs(){
git --no-pager log --pretty=format:"%s" "$1..$2" |
git --no-pager log --pretty=format:"%s" "$1...$2" |
# Only find messages referencing a PR
grep -E '\(#[0-9]+\)' |
# Strip any asterisks
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment