Skip to content

Instantly share code, notes, and snippets.

@smunilla
Last active February 8, 2017 15:28
Show Gist options
  • Save smunilla/dd9d74ff52d35618750a1ff21ce173bb to your computer and use it in GitHub Desktop.
Save smunilla/dd9d74ff52d35618750a1ff21ce173bb to your computer and use it in GitHub Desktop.
#!/bin/sh
IFS=$'||'
PRODUCT="OpenShift Container Platform"
OUTPUT_FORMAT='{"bug_id": "%{bug_id}", "status": "%{status}, "versions": "%{versions}", target_release": "%{target_release}", "components": "%{components}"}||'
modified_bugs=$(bugzilla query --product="${PRODUCT}" --bug_status=MODIFIED --outputformat="${OUTPUT_FORMAT}")
for bug in $modified_bugs; do
echo -n ${bug}
done
unset IFS
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment