5 STATUS_ID=${STATUS_ID:-1}
6 PROJECT_ID=${PROJECT_ID:-8}
7 TRACKER_ID=${TRACKER_ID:-4}
8 PRIORITY_ID=${PRIORITY_ID:-4}
9 REDMINE_URL=${REDMINE_URL:-"http://dev.xonotic.org"}
15 echo "Usage: $0 <user> <pass> <subject> <description>"
22 DESCRIPTION=$(echo "$4" | sed -e 's/</\</g;s/>/\>/g')
27 <status_id>${STATUS_ID}</status_id>
28 <tracker_id>${TRACKER_ID}</tracker_id>
29 <project_id>${PROJECT_ID}</project_id>
30 <priority_id>${PRIORITY_ID}</priority_id>
31 <subject>${SUBJECT}</subject>
32 <description>${DESCRIPTION}</description>
37 curl -X POST -H "Content-Type:application/xml" --data "@CONTENTS" -u "${USER}:${PASS}" "${REDMINE_URL}/issues.xml" > /dev/null