Created
June 29, 2011 06:52
-
-
Save akirakw/1053287 to your computer and use it in GitHub Desktop.
curlでGitHubAPIv3(例:closeされたマイルストーンをreopen)
This file contains hidden or 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
# ステータス: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