Skip to content

Instantly share code, notes, and snippets.

@akirakw
Created June 29, 2011 06:52
Show Gist options
  • Save akirakw/1053287 to your computer and use it in GitHub Desktop.
Save akirakw/1053287 to your computer and use it in GitHub Desktop.
curlでGitHubAPIv3(例:closeされたマイルストーンをreopen)
# ステータス:closedなマイルストーンを検索してIDを調べる
curl https://api.github.com/repos/asakusafw/asakusafw/milestones?state=closed
# URLの末尾の番号を覚えておく
[
{
"open_issues": 0,
"description": "",
"url": "https://api.github.com/repos/asakusafw/asakusafw/milestones/2",
"title": "ver.0.2.0",
...
# ステータスをopenに変更
curl -u "username:password" https://api.github.com/repos/asakusafw/asakusafw/milestones/2 -d '{"title":"ver.0.2.0","state":"open"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment