https://github.com/baynezy/githublabelinitialiser
A .NET library for easily populating your repository with your bespoke labels
https://github.com/baynezy/githublabelinitialiser
Last synced: 10 months ago
JSON representation
A .NET library for easily populating your repository with your bespoke labels
- Host: GitHub
- URL: https://github.com/baynezy/githublabelinitialiser
- Owner: baynezy
- License: apache-2.0
- Created: 2016-03-14T11:53:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T17:19:24.000Z (over 9 years ago)
- Last Synced: 2025-01-21T20:33:55.837Z (12 months ago)
- Language: C#
- Size: 1.27 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GitHubLabelInitialiser
A .NET library for easily populating your GitHub repository with your bespoke labels
[](http://waffle.io/baynezy/GitHubLabelInitialiser)
## Build Status
## Documentation
Fully navigable documentation available on [GitHub Pages](http://baynezy.github.io/GitHubLabelInitialiser/)
## Installing via NuGet
[](http://badge.fury.io/nu/GitHubLabelInitialiser)
Install-Package GitHubLabelInitialiser
## Usage
### LabelManager.IntialiseLabels
This method will do the following:-
1. Delete all the existing issue labels on a repository
2. Add the collection of issue labels you pass it to the repository
#### Example
manager.IntialiseLabels(_username, _repositoryName, new List
{
new GitHubLabel{Name="bug", Color="ff0000"},
new GitHubLabel{Name="feature", Color="fbca04"}
});
### LabelManager.DeleteAllInRepository
This method will remove all the issue labels on a repository.
####Example
manager.DeleteAllInRepository(_username, _repositoryName);
### LabelManager.AddLabelsToRepository
This method will add new issue labels on the repository.
####Example
manager.AddLabelsToRepository(_username, _repositoryName, new List
{
new GitHubLabel{Name="bug", Color="ff0000"},
new GitHubLabel{Name="feature", Color="fbca04"}
});
## License
This project is licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).