@openctx/provider-github
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @openctx/provider-github

Weekly Downloads

78

Version

0.0.12

License

Apache-2.0

Unpacked Size

123 kB

Total Files

5

Last publish

Collaborators

  • sqs
  • sourcegraph-bot
  • mualam
  • keegan-src