

GitHub - magit/ghub: Minuscule client for the Github API
source link: https://github.com/magit/ghub
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Ghub — Client libraries for the APIs of various Git forges
Ghub provides basic support for using the APIs of various Git forges from Emacs packages. Originally it only supported the Github REST API, but now it also supports the Github GraphQL API as well as the REST APIs of Gitlab, Gitea, Gogs and Bitbucket.
Ghub abstracts access to API resources using only a handful of basic
functions such as ghub-get
. These are convenience wrappers around
ghub-request
. Additional forge-specific wrappers like glab-put
,
gtea-put
, gogs-post
and buck-delete
are also available. Ghub
does not provide any resource-specific functions, with the exception
of FORGE-repository-id
.
When accessing Github, then Ghub handles the creation and storage of access tokens using a setup wizard to make it easier for users to get started. The tokens for other forges have to be created manually.
Ghub is intentionally limited to only provide these two essential features — basic request functions and guided setup — to avoid being too opinionated, which would hinder wide adoption. It is assumed that wide adoption would make life easier for users and maintainers alike, because then all packages that talk to forge APIs could be configured the same way.
Please consult the manual for more information.
Recommend
-
98
It's Magit! The magical Git client by Jonas Bernoulli — Kickstarter It's Magit! The...
-
135
Git Config Modes Emacs major modes for various Git configuration files. The list of contributors can be found here. The following libraries...
-
98
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 79 million projects.
-
41
Blog of Jonas Bernoulli
-
214
README.org
-
82
-
72
README.md magit-org-todos Get todo.org into your magit status. If you have a todo.org file with TODO items in the root of your repository, ma...
-
12
Art Illustration #miniature
-
9
ConversationMany people say crap. Samsung has a strict 42° peak temp standard they adhere to. Glass slabs are physically limited to 4-5W combined convection and radiation in a ~23° ambient environment. There is no...
-
15
Photography Science #macro
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK