mirror of
https://github.com/json-c/json-c.git
synced 2026-11-09 23:40:14 +08:00
Start pulling instructions out of RELEASE_CHECKLIST into scripts in reltools/ to semi-automate some of the release process.
This commit is contained in:
1 parent
7788035f45
commit
39c9638924
7 files changed
+424
-52
No files matched your search
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
RUNDIR=$(dirname "$0")
|
||||
. "${RUNDIR}/reltools.subr"
|
||||
|
||||
NEXT_VER=$(get_next_relver)
|
||||
|
||||
MOST_RECENT=$(ls ${RUNDIR}/../issues_closed*md | sort -V | tail -1)
|
||||
PREV=$(grep 'NOW=' "${MOST_RECENT}" | sed -e's/.*=//')
|
||||
NOW=$(date +%Y-%m-%d)
|
||||
set -x -v
|
||||
curl -v "https://api.github.com/search/issues?q=repo%3Ajson-c%2Fjson-c+closed%3A>${PREV}+created%3A<${NOW}&sort=created&order=asc&per_page=100&page=1" > issues1.out
|
||||
|
||||
set -o noclobber
|
||||
NEW_FILE=issues_closed_for_${NEXT_VER}.md
|
||||
cat <<EOF > "${NEW_FILE}"
|
||||
This list was created with:
|
||||
\`\`\`
|
||||
# PREV=${PREV}
|
||||
# NOW=${NOW}
|
||||
./reltools/gen_issues_closed.sh
|
||||
\`\`\`
|
||||
|
||||
EOF
|
||||
|
||||
jq -r '.items[] | "[" + .title + "](" + .url + ")" | tostring' issues1.out >> "${NEW_FILE}"
|
||||
sed -e's,^\[ *\(.*\)\](https://api.github.com/.*/\([0-9].*\)),* [Issue #\2](https://github.com/json-c/json-c/issues/\2) - \1,' -i "${NEW_FILE}"
|
||||
echo "${NEW_FILE}"
|
||||
|
||||
Reference in new issue
Block a user