Update PULL_REQUEST_TEMPLATE.md

Use a shorter command to display the recent patches: replace `| head -2` with `-m2` grep switch; replace a `sed` with `cut` to get the line numbers.
This commit is contained in:
Phil Runninger 2020-07-14 08:49:44 -04:00 committed by GitHub
parent 42a5a2c106
commit 2af10e3589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,6 @@ Closes # <!-- Enter the issue number this PR addresses. If none, remove this
```bash
git checkout master
git pull
sed -n "$(grep -n '####' CHANGELOG.md | head -2 | sed -e 's/:.*//' | sed 'N;s/\n/,/')p" CHANGELOG.md | sed '$d'
sed -n "$(grep -n -m2 '####' CHANGELOG.md | cut -f1 -d: | sed 'N;s/\n/,/')p" CHANGELOG.md | sed '$d'
git tag -a $(read -p "Tag Name: " tag;echo $tag) -m"$(git show --quiet --pretty=%s)";git push origin --tags
```