Skip to content

Add script to mirror one internal branch to another - #41715

Merged
wtgodbe merged 9 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/AzdoMirror
May 18, 2022
Merged

wtgodbe merged 9 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/AzdoMirror

Conversation

@wtgodbe

@wtgodbe wtgodbe commented May 17, 2022 •

Copy link
Copy Markdown
Member

@wtgodbe
wtgodbe requested review from a team and adityamandaleeka May 17, 2022 16:40
@wtgodbe
wtgodbe requested review from a team and dougbu as code owners May 17, 2022 16:40
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label May 17, 2022
- name: AzdoRepo
value: https://[email protected]/dnceng/internal/_git/dotnet-aspnetcore
- name: TargetBranchName
value: $(Build.SourceBranch)-nonstable

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could just condition the whole job on the SourceBranch containing internal, or even on Build.Reason being IndividualCI

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dougbu dougbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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❔

@wtgodbe

wtgodbe commented May 17, 2022

Copy link
Copy Markdown
Member Author

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

@wtgodbe

wtgodbe commented May 17, 2022 •

Copy link
Copy Markdown
Member Author

@garath

garath commented May 17, 2022

Copy link
Copy Markdown
Member

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

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.

@ghost

ghost commented May 17, 2022

Copy link
Copy Markdown

As this is mirroring internal branches that GitHub shouldn't know about, I don't think a GitHub action is appropriate here.

@dougbu

dougbu commented May 17, 2022

Copy link
Copy Markdown
Contributor

As this is mirroring internal branches that GitHub shouldn't know about, I don't think a GitHub action is appropriate here.

🆗

@wtgodbe
wtgodbe enabled auto-merge (squash) May 18, 2022 01:10
@wtgodbe
wtgodbe merged commit 9ba59f9 into dotnet:main May 18, 2022
@ghost ghost added this to the 7.0-preview5 milestone May 18, 2022
@wtgodbe
wtgodbe deleted the wtgodbe/AzdoMirror branch May 18, 2022 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants