https://github.com/scrum/git-get-repos-labels
A iny helper to get a list of labels from the github repository
https://github.com/scrum/git-get-repos-labels
Last synced: 5 months ago
JSON representation
A iny helper to get a list of labels from the github repository
- Host: GitHub
- URL: https://github.com/scrum/git-get-repos-labels
- Owner: Scrum
- Created: 2019-07-30T10:28:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T18:04:54.000Z (over 3 years ago)
- Last Synced: 2025-10-13T08:45:56.485Z (9 months ago)
- Language: JavaScript
- Size: 1000 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# git-get-repos-labels
> A tiny helper to get a list of labels from the github repository
[](https://travis-ci.org/Scrum/git-get-repos-labels)[](https://coveralls.io/r/Scrum/git-get-repos-labels)
## Install
```bash
npm install git-get-repos-labels
```
## Usage
```js
import gitGetReposLabels from 'git-get-repos-labels';
gitGetReposLabels({owner: 'scrum', repo: 'slims', token: '59bd8d5eb1980b7f926f2d106f4f2f0312fdf97f'});
//=> [{id: "MDU6TGFiZWwzODg4NTI4Mzc=", "name": "bug", "color": "d73a4a", "description": "Something isn't working"}, ...]
```
## API
#### `owner`
Type: `String` **`Required`**
Default: `undefined`
Description: *Github owner or organization name.*
#### `repo`
Type: `String` **`Required`**
Default: `undefined`
Description: *Repository name.*
#### `token`
Type: `String` **`Required`**
Default: `undefined`
Description: *You Github Personal Token. Grab it from your [Developer settings](https://github.com/settings/developers)*