Created
November 6, 2013 22:33
-
-
Save charlycoste/7345421 to your computer and use it in GitHub Desktop.
Export issues of a project
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
<?php | |
$api = "https://api.github.com"; | |
$owner = ""; | |
$repo = ""; | |
$issues = json_decode(file_get_contents( "{$api}/repos/{$owner}/{$repo}/issues" )); | |
foreach ($issues as $issue) | |
{ | |
echo "#".$issue->number."\n"; | |
echo $issue->title."\n"; | |
echo $issue->body."\n"; | |
echo "==========\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment