This change-set adds Azure DevOps support to pipeline promotions. Based on discussions (on Slack) we decided to go with a "copy as it is" solution to use the new GitProvider used in WGE (PR^1 with 2 fixes^2).
It's a simple copy-paste what we have in WGE, but with a few addition and changes:
[addition] List Pull Requests. If we can't create a PR, we try to find an existing one with Pipelines. That logic does not exist in WGE.
[change] Do not create branch if we have no additional commits. On WGE we create a branch with the CreatePullRequest call (except in on case^4), but with pipelines we already have the branch with all required files and changes using pure git operations with clone and push. In this case we don't have additional commits, we only have to create the new branch if len(input.commits) > 0.
[addition] Name() and SupportedDomain(). These new functions were added to make it easier to verify or test given properties hidden behind the implementation of a Provder interface. We may want to port them back to WGE with extra testing.
This change-set adds Azure DevOps support to pipeline promotions. Based on discussions (on Slack) we decided to go with a "copy as it is" solution to use the new GitProvider used in WGE (PR^1 with 2 fixes^2).
It's a simple copy-paste what we have in WGE, but with a few addition and changes:
len(input.commits) > 0
.Name()
andSupportedDomain()
. These new functions were added to make it easier to verify or test given properties hidden behind the implementation of a Provder interface. We may want to port them back to WGE with extra testing.Closes #170