Cake Addin for work with work items boards.
OS | Build & Test |
---|---|
Windows x64 | |
Linux x64 |
Package | NuGet | NuGet Pre-Release |
---|---|---|
Cake.Board.Abstractions | ||
Cake.Board | ||
Cake.Board.AzureBoards | ||
Cake.Board.Asana |
In order to usage this addin, add to your Cake script.
#addin "nuget:?package=Cake.Board.AzureBoards&loaddependencies=true"
#addin "nuget:?package=Polly"
Task("GetWorkItemById")
.Does(async () =>
{
IWorkItem workItem = await GetWorkItemByIdAsync(
new AzureBoards(
EnvironmentVariable("PERSONAL_ACCESS_TOKEN"),
EnvironmentVariable("AZURE_DEVOPS_ORGANIZATION")),
id);
});
or
Task("GetWorkItemsByQueryIdAsync")
.Does(async () =>
{
var board = new AzureBoards(
EnvironmentVariable("PERSONAL_ACCESS_TOKEN"),
EnvironmentVariable("AZURE_DEVOPS_ORGANIZATION"))
{
Project = EnvironmentVariable("AZURE_DEVOPS_PROJECT"),
Team = EnvironmentVariable("AZURE_DEVOPS_TEAM")
};
IEnumerable<IWorkItem> workItems = await GetWorkItemsByQueryIdAsync(
board,
queryId);
});
You’re thinking about contributing to Cake.Board? Great! It’s really appreciated. Please make small changes focused on the purpose of the branch in order to make the changes easily integrable.
For major changes, please open an issue first to discuss what you would like to change.
All you have to do to get started is this!
git clone https://github.com/cake-contrib/Cake.Board.git
git checkout -b <YOUR_BRANCH_NAME>
- Don't forget the unit tests.
- Please make sure to update tests as appropriate.
- Send a pull request.