- Visual Studio 2019
- SonarLint VS (optional)
- Docker (only if you wan't to test the docker image)
- Checkout the repo
- Open it with Visual Studio
- Build it
- Optional: Build the Dockerfile with
docker build
Sample files for testing:
launchSettings.json
- located under
PullDetachedRemote/Properties
{
"profiles": {
"PDR - GenConf": {
"commandName": "Project",
"commandLineArgs": "--genconf config.yml"
},
"PDR - Conf": {
"commandName": "Project",
"commandLineArgs": "--config config.yml --GITHUB_PAT=xxx"
},
"PDR - CMD": {
"commandName": "Project",
"commandLineArgs": "[email protected] --identityuser=\"Test Test\" --prlabels \"upstream\" --clonemode=CLONE_ALWAYS --originrepo=https://github.com/<owner>/forked --originbranch=an-update --upstreamrepo=https://github.com/<owner>/fork-base --upstreambranch=master --GITHUB_PAT=xxx"
}
}
}
config.yml
IdentityEmail: [email protected]
IdentityUsername: Test Test
PRMetaInfo:
Assignees: []
Reviewers: []
Labels: ['upstream']
PathToWorkingRepo: test
CloneMode: CLONE_ALWAYS
OriginRepo: https://github.com/<owner>/forked
OriginBranch: an-update
UpstreamRepo: https://github.com/<owner>/fork-base
UpstreamBranch: master
OriginUpdateBranch:
UpstreamCredMode: AUTO