github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/scripts/release-notes/test4.sh (about) 1 #!/bin/sh 2 set -eux 3 4 . common.sh 5 6 t=test4 7 relnotescript=${1:?} 8 rewrite=${2:-} 9 10 test_init 11 12 ( 13 cd $t 14 init_repo 15 git checkout -b feature 16 17 make_change "feature A 18 19 Release note (bug fix): feature A release note 1 20 21 some text for note 1 22 23 Release note (bug fix): feature A release note 2 24 25 some text for note 2 26 " 27 28 make_change "feature B 29 30 Release note (bug fix, core change): feature B release note 1 31 " 32 33 make_change "feature C 34 35 Release note (bug fix): feature C 36 37 Fixes #123124. (this should not be included in result) 38 close #12313. (this neither) 39 " 40 41 # See other authors. 42 make_change "feature D 43 44 Release note (bug fix): feature D 45 " 46 git commit --amend --date="$date" --author='foo <foo@example.com>' --no-edit --allow-empty 47 48 make_change "feature E 49 50 Release note (bug fix): feature E 51 52 Co-authored-by: bar <bar@example.com> 53 54 trailing garbage (should be ignored) 55 " 56 57 tag_pr 1 58 git checkout master 59 60 merge_pr feature 1 "PR title" 61 ) 62 63 test_end