There is a RESTFul API for GitHub.
For example, this page documents how to manage labels using the GitHub Restful API:
- https://docs.github.com/en/rest/issues/labels#create-a-label
Using the GitHub CLI to access the RESTFul API
One easy way to access the GitHub API is through the GitHub CLI
- See here for some basic documentation: https://docs.github.com/en/rest/quickstart
A simple example:
- Use
gh auth login
to login - Use
gh api repos/ucsb-cs156-f22/f22-5pm-courses
to list information about the repo https://github.com/ucsb-cs156-f22/f22-5pm-courses
Java Packages for the GitHub API
jcabi.com
Resource | Link |
---|---|
Home Page | https://github.jcabi.com/ |
Javadoc | https://github.jcabi.com/apidocs-0.41/index.html |
kohsuke.org
Resource | Link |
---|---|
Home Page | http://github-api.kohsuke.org/ |
Javadoc | http://github-api.kohsuke.org/apidocs/index.html |