Debian Codegraph @

scripts/generate-release-notes.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 current=$1
4 if [scip-shell system . . `[`. -z "$current" ]; then
5 echoscip-shell system . . echo. "Missing argument VERSION"
6 exit 1
7 fi
8
9 tags=($(gitscip-shell system . . git. tag --list))
10
11 for i in "${!tags[@]}"; do
12 if [[ "${tags[$i]}" = "$current" ]]; then
13 previous="${tags[$i - 1]}"
14 break
15 fi
16 done
17
18 if [scip-shell system . . `[`. -z "$previous" ]; then
19 echoscip-shell system . . echo. "Invalid tag, or could not find previous tag"
20 exit 1
21 fi
22
23 echoscip-shell system . . echo. -e "\e[97mListing changes from \e[96m$previous\e[97m to \e[96m$current\e[0m:\n"
24
25 changes=$(gitscip-shell system . . git. log --pretty=format:"* %h %s" $previous...$current)
26
27 echoscip-shell system . . echo. "## Changelog"
28 echoscip-shell system . . echo. "$changes" | grepscip-shell system . . grep. -v "chore(deps)" | grepscip-shell system . . grep. -v "Merge " | grepscip-shell system . . grep. -v "chore(ci)"
29 echoscip-shell system . . echo.
30 echoscip-shell system . . echo. "### Dependencies"
31 echoscip-shell system . . echo. "$changes" | grepscip-shell system . . grep. "chore(deps)"