github_lib.txt 1.1 KB

123456789101112131415161718192021222324252627282930
  1. wrapper for the GitHub API
  2. Return an object for the given user, or returns false if the user does not exist
  3. $this->GithubLib->userInfo('bobbyjoe');
  4. Return a list of commits for a project by a user.
  5. $this->GithubLib->userTimeline('philsturgeon', 'codeigniter-github');
  6. $this->GithubLib->userTimeline('philsturgeon', 'codeigniter-github', 'branchname');
  7. Return a list of repositories matching a search term. Optional 2rd parameter specifies programming language
  8. $this->GithubLib->search('codeigniter');
  9. $this->GithubLib->search('codeigniter', 'php');
  10. Return a list of the repository info
  11. $this->GithubLib->repoInfo('philsturgeon', 'codeigniter-github');
  12. Return a list of the repository's references
  13. $this->GithubLib->repoRefs('philsturgeon', 'codeigniter-github', 'tags');
  14. $this->GithubLib->repoRefs('philsturgeon', 'codeigniter-github', 'branches');
  15. Return a list of issues for a project
  16. $this->GithubLib->projectIssues('philsturgeon', 'codeigniter-github', 'open');
  17. $this->GithubLib->projectIssues('philsturgeon', 'codeigniter-github', 'closed');