Skip to content

Instantly share code, notes, and snippets.

@charlycoste
Created November 6, 2013 22:33
Show Gist options
  • Save charlycoste/7345421 to your computer and use it in GitHub Desktop.
Save charlycoste/7345421 to your computer and use it in GitHub Desktop.
Export issues of a project
<?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