parent
3c40a12635
commit
584cd84b95
@ -12,21 +12,12 @@ main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_report() {
|
post_report() {
|
||||||
datafile=$(mktemp /tmp/report_stats_$(date +%Y-%m-%d_%H%M)_XXXX.json)
|
curl -v -s \
|
||||||
cat <<EOF > "${datafile}"
|
|
||||||
{
|
|
||||||
"issue": {
|
|
||||||
"notes": "$(/srv/minetest.chapril.org/tools/rapport_activite/rapport_activite.sh -p| sed -z 's/\n/\\n/g')"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
curl -s \
|
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "X-Redmine-API-Key: ${REDMINE_API_KEY}" \
|
-H "X-Redmine-API-Key: ${REDMINE_API_KEY}" \
|
||||||
-X PUT --data-binary "@${datafile}" \
|
-X PUT --data-binary "@-" \
|
||||||
"${REDMINE_BASE_URL}/issues/${REDMINE_TICKET_ID}.json"
|
"${REDMINE_BASE_URL}/issues/${REDMINE_TICKET_ID}.json" \
|
||||||
rm "${datafile}"
|
< <(/srv/minetest.chapril.org/tools/rapport_activite/rapport_activite_mineclone2.sh -p | jq --raw-input --slurp '{ "issue": {"notes": .} }')
|
||||||
}
|
}
|
||||||
|
|
||||||
last_comment_date() {
|
last_comment_date() {
|
||||||
|
Loading…
Reference in New Issue
Block a user