GitHub provider for OpenCtx

This is a context provider for OpenCtx that fetches pull requests and issues contents from GitHub.

Usage

Add the following to your settings in any OpenCtx client:


"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-github": {
// create an access token from here: https://github.com/settings/tokens/new?scopes=repo
"accessToken": "<your-access-token>",
}
},

Usage with other GitHub instances

By default, this provider talks to GitHub.com. Add the URL to your GitHub Enterprise Server or GitHub AE instance to the configuration to point this openctx provider at that:


"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-github": {
// create an access token from here: https://github.com/settings/tokens/new?scopes=repo
"accessToken": "<your-access-token>",
"baseURL": "https://ghe.example.com"
}
},

Then use the @-mention type Github PRs & Issues and search for issues or pull requests to include in context using the followining possible query examples:

Development