Repository navigation
Add script to mirror one internal branch to another - #41715
Conversation
| - name: AzdoRepo | ||
| value: https://[email protected]/dnceng/internal/_git/dotnet-aspnetcore | ||
| - name: TargetBranchName | ||
| value: $(Build.SourceBranch)-nonstable |
There was a problem hiding this comment.
@dotnet/dnceng will this part do what I'm wanting it to (for the current state, always merge internal/release/6.0 to internal/release/6.0-nonstable
There was a problem hiding this comment.
I think it would do that, but should there perhaps be some conditions around it (e.g. does it need to look for an "internal" prefix?
There was a problem hiding this comment.
I could just condition the whole job on the SourceBranch containing internal, or even on Build.Reason being IndividualCI
dougbu
left a comment
There was a problem hiding this comment.
It feels like this scripting could be done in a GitHub action, saving us a pipeline et cetera. Why do it this way if always starting it manually❔
This is covering the AzDO repos, and needs access to the dn-bot secrets to get push access, is that possible w/ github actions? If so we could go with that approach. And this isn't manual, it runs on each commit to internal/release/6.0 |
I suspect anything working with the internal repositories will be required to also live in the internal project. We can check with security folks, though, if needed. |
|
As this is mirroring internal branches that GitHub shouldn't know about, I don't think a GitHub action is appropriate here. |
🆗 |
Test pipeline successfully merged from my test head branch to my test target branch: https://dev.azure.com/dnceng/internal/_build/results?buildId=1775661&view=logs&j=e6b3c574-a32d-5846-a47f-1b45be3bba64&t=ef21261b-6c16-5d44-2bb5-8c3a93743eb6