-
Notifications
You must be signed in to change notification settings - Fork 6
API Keys
Aru Sahni edited this page Jul 7, 2019
·
1 revision
git-req requires an API key in order to query aspects of a project. Keys are associated with domains, so once you only need to define it once per domain.
The API key required for GitHub is a Personal Access Token with access to the repo scope. Unfortunately, GitHub doesn't provide more granularity, so full repo access is required.
- Visit https://github.com/settings/tokens/new
- Provide a name for the Note. e.g,
git-req token - Check the top-level scope checkbox for
repo - Click
Generate Token - Paste the generated token into the
git-reqprompt
The API key required for GitLab is an Access Token with access to the api scope. Unfortunately, GitLab doesn't provide more granularity, so full API read/write access is required.
- Visit your User Settings view (e.g., https://gitlab.com/profile )
- Click the link for "Access Token" in the sidebar (e.g., https://gitlab.com/profile/personal_access_tokens )
- Provide a name for the token. e.g.,
git-req token - Do not provide an expiration date
- Check the scope checkbox for
API - Click the
Create personal access tokenbutton - Paste the generated token into the
git-reqprompt