diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2022-10-18 23:15:40 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-10-18 23:15:55 +0200 |
commit | 7083f4de55045d0a96094b6ba59a8e6f162747e1 (patch) | |
tree | aca52acd7266923533d88bb59ccbfe49fe31cb54 | |
parent | 65c1aedc0ccadcf76c5a3109950bbf468d1e2968 (diff) | |
download | pw-7083f4de55045d0a96094b6ba59a8e6f162747e1.tar.gz |
pw-request-pull: Add missing tag to blurb template
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rwxr-xr-x | pw-request-pull | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pw-request-pull b/pw-request-pull index 6f270e1..9c69787 100755 --- a/pw-request-pull +++ b/pw-request-pull @@ -45,15 +45,17 @@ delta=$((($new - $old)/(60*60*24)+1)) count=$(git rev-list --no-merges --count $since...HEAD) thanks=$(git log --no-merges $since...HEAD --format="%b" | awk '$1 ~ /Reported-by:|Acked-by:|Reviewed-by:|Tested-by:/' | cut -d ' ' -f2- | cut -d '<' -f1 | awk '{$1=$1};1' | grep -v '@' | sort | uniq | sort -n | sed ':a;N;$!ba;s/\n/, /g' | fold -s -w73) file="pr-$tree-$today.patch" +tag="" if [ ! -z "$sign" ]; then git tag -s $sign -m "$tree-$sign" git verify-tag $sign git push origin $sign + tag="tags/$sign" fi git request-pull $since ${remote[1]} $sign > $file what=$(cat $file | grep "files changed") -echo -e "Subject: pull-request: $tree $today\n\nHi David, hi Jakub, hi Paolo, hi Eric,\n\nThe following pull-request contains BPF updates for your *${remote[0]}* tree.\n\nWe've added $count non-merge commits during the last $delta day(s) which contain\na total of$what.\n\nThe main changes are:\n\n1) ..., from XYZ. Among others:\n\n - Blah blah sub item.\n\n2) ..., from ABC.\n\nPlease consider pulling these changes from:\n\n git://git.kernel.org/pub/scm/linux/kernel/git/bpf/$tree.git\n\nThanks a lot!\n\nAlso thanks to reporters, reviewers and testers of commits in this pull-request:\n\n$thanks\n\n----------------------------------------------------------------\n\n$(cat $file)" > $file +echo -e "Subject: pull-request: $tree $today\n\nHi David, hi Jakub, hi Paolo, hi Eric,\n\nThe following pull-request contains BPF updates for your *${remote[0]}* tree.\n\nWe've added $count non-merge commits during the last $delta day(s) which contain\na total of$what.\n\nThe main changes are:\n\n1) ..., from XYZ. Among others:\n\n - Blah blah sub item.\n\n2) ..., from ABC.\n\nPlease consider pulling these changes from:\n\n git://git.kernel.org/pub/scm/linux/kernel/git/bpf/$tree.git $tag\n\nThanks a lot!\n\nAlso thanks to reporters, reviewers and testers of commits in this pull-request:\n\n$thanks\n\n----------------------------------------------------------------\n\n$(cat $file)" > $file #bug=$(grep -c gitolite $file) if [ "$bug" -gt "0" ]; then echo "PR not generated: using gitolite url, not public one!" |