Skip to content

seshuen/git-open-issues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-open-issues

Get open issues stats of any github repository with this application. Designed using basic curl commands and github api v3.

Code Example

git-open-issue is designed using php & helps in maintaing api of the same.

  $result_total = $openissue->getOpenIssue($url);
  $total = $openissue->getJson($result_total);

Motivation

Thanks to Shippables for the challenge and also thanks to http://stackoverflow.com/questions/1975461/how-to-get-file-get-contents-work-with-https to help me when i was stuck whenever & wherever.

Installation

Simply import getOpenIssues.php and initiate class like below

$classname = new OpenIssue;

Its simple to use and simple construct.

Tests

  $url = "https://github.com/Shippable/support";
  $result_total = $openissue->getOpenIssue($url);
  $total = $openissue->getJson($result_total);
  if ($total['success'] == 0) {
    $error_msg = $total['data'];
  }else {
    $total_open_issues = $total['data']['open_issues_count'];
    echo $total_open_issues;
  }

Contributors

I have made it on own so i certainly don't think this would be appropriate right now. But all contributors are thanked in advance.

Future Scope

In future the same api can be transformed into a full fledged github api with added functionality that shall help in managing this api for advanced user with more than 10 github repository handled. Also the same api can be built into an application which will serve as dashboard for devlopers who can manage their code at one interface and also deploy from same api.But all this is possible if given the time and liked minded contributors coming together else the above said shall be just words.

License

This source file is subject to version 3.01 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_01.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

About

Get open issues stats of any github repository with this application. Designed using basic curl commands and github api v3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published