Skip to main content

Module github

Module github 

Source
Expand description

GitHub’s REST API, read only, with your fine-grained token from the keyring (docs/github.md): the open issues and pull requests that are yours, found by search across GitHub (assigned to you, your review asked, opened by you, mentioning you), and one issue by its number. Answers are asked with their ETag: an unchanged one costs nothing and comes from the cache.

Structs§

Cache 🔒
Answers kept with their ETag, by address.
Client 🔒
Wanted
What to bring, from the settings.

Constants§

API 🔒
KEYRING 🔒
TOKEN_REFUSED
What a refused token says (SyncError::Login).
VERSION 🔒
Supported until March 2028.

Functions§

api 🔒
cache_path 🔒
issue
One issue by its number, as it is now; None when GitHub no longer shows it to you.
issue_of 🔒
An issue from GitHub’s JSON; reason, why it is yours.
open_issues
The open issues and pull requests that are yours, each once, with its strongest reason (an assignment before a review asked, before a mention).
save_token
Keeps the token in the keyring; an empty one is forgotten.
token
The token kept in the keyring.