mirror of https://github.com/ByConity/ByConity
10 lines
368 B
Bash
10 lines
368 B
Bash
#!/bin/bash
|
|
|
|
function process_header {
|
|
GIT_LOG=$1;
|
|
RAW_TITLE=$(echo -e "$GIT_LOG" | grep -v "^ *Merge .* into " | sed '/^[[:space:]]*$/d' | grep -v "^ *See merge request" | grep -v "#");
|
|
TITLE=$(echo $RAW_TITLE| sed -E -e 's/^(feat|fix|build|ci|docs|perf|refactor|style|test)(\((clickhousech|optimizer|byconity)+@m-[1-9][0-9]+\))*:+(.+)$/\1:\4/');
|
|
echo $TITLE;
|
|
}
|
|
|