Skip to content

Add warning when targeting release/* branches #38006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dougbu
Copy link
Contributor

@dougbu dougbu commented Nov 2, 2021

  • internal PRs should never or almost never target release/* branches

- internal PRs should never or almost never target release/* branches
@dougbu dougbu added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 2, 2021
@dougbu dougbu requested review from mkArtakMSFT and a team November 2, 2021 00:19
@dougbu
Copy link
Contributor Author

dougbu commented Nov 2, 2021

This is another follow-up to 9ca2be8

@@ -1,5 +1,11 @@
# {PR title}

<!--
In almost all cases, targeting this branch is incorrect. Did you mean to target an internal/release/* branch?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wtgodbe @mmitche, I can't think of a reason to put up an AzDO PR targeting a release/* branch but wrote this to cover that case (just in case).

If there's a reason, please let me know here or offline. If you're not sure, please expand the reviewers 😃

If we find there's no reason for such a PR, I'll narrow the template down to just a comment telling people to retarget their PR.

Copy link
Member

Choose a reason for hiding this comment

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

I think it's always wrong - any PR merged to azdo's release/x branch will never make its way back to the public release/x branch (there's no mechanism for mirroring in that direction)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed this when I merged, sorry.

I don't agree w/ the premise @wtgodbe: We merge from release/* into internal/release/* and, eventually, from there back to GitHub release/* branches.

Copy link
Member

@mmitche mmitche Nov 8, 2021

Choose a reason for hiding this comment

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

@dougbu Targeting release/* on AzDO is basically always incorrect. We do not merge AzDO's release/* into internal/release/* (only the github copy). The release/* branch is always a direct ff-only mirror from the github version. This means that changes checked into AzDO's release/* will not make it back into public, and will block any public ff merge into the release/* branch.

@dougbu dougbu merged commit 64de6d3 into dotnet:main Nov 2, 2021
@ghost ghost added this to the 7.0-preview1 milestone Nov 2, 2021
@dougbu dougbu deleted the dougbu/targeting.release.in.internal.is.just.wrong branch November 2, 2021 18:05
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.

3 participants