2018-12-21 21:17:14 +03:00
# Creating Feature Branches
This document describes the process for setting up CI on a feature branch of roslyn.
## Push the branch
The first step is to create the branch seeded with the initial change on roslyn. This branch should have the name `features/<feature name>` . For example: `features/mono` for working on mono work.
2021-03-04 05:46:06 +03:00
Assuming the branch should start with the contents of `main` the branch can be created by doing the following:
2018-12-21 21:17:14 +03:00
Note: these steps assume the remote `origin` points to the official [roslyn repository ](https://github.com/dotnet/roslyn ).
``` cmd
> git fetch origin
2021-03-04 05:46:06 +03:00
> git checkout -B init origin/main
2018-12-21 21:17:14 +03:00
> git push origin init:features/mono
```
## Adding branch to Azure Pipelines
2018-12-21 21:58:32 +03:00
The following files need to be edited in order for GitHub to trigger Azure Pipelines Test runs on PRs:
2018-12-21 21:17:14 +03:00
2021-03-04 05:46:06 +03:00
- [azure-pipelines.yml ](https://github.com/dotnet/roslyn/blob/main/azure-pipelines.yml )
- [azure-pipelines-integration.yml ](https://github.com/dotnet/roslyn/blob/main/azure-pipelines-integration.yml )
2018-12-21 21:17:14 +03:00
Under the `pr` section in the file add your branch name.
``` yaml
pr:
2021-03-04 05:46:06 +03:00
- main
- main-vs-deps
2018-12-21 21:17:14 +03:00
- ...
- features/mono
```