Created
February 6, 2014 19:35
-
-
Save erikvanzijst/8851082 to your computer and use it in GitHub Desktop.
Automate Bitbucket issue tracker exports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # initiate export, will return 202: | |
$ curl -u evzijst:passwd -X POST -v https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
[...] | |
< HTTP/1.1 202 ACCEPTED | |
[...] | |
$ # poll for status updates: | |
$ curl -u evzijst:passwd -X GET https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
{"status": "ACCEPTED", "count": "1", "total": "4", "phase": "Issues", "pct": "25"} | |
$ # until it's ready: | |
$ curl -u evzijst:passwd -X GET https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
{"url": "/1.0/repositories/evzijst/interruptingcow/issues/export/zip", "status": "SUCCESS"} | |
$ # then download | |
$ wget https://evzijst:[email protected]/1.0/repositories/evzijst/issues/export/zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment