-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(publish): Ability to merge to non-default #245
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass done, bunch of questions/comments.
For next time: consider doing all the dead code removals in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a quick pass and looks good to me.
@@ -72,6 +72,17 @@ export const builder: CommandBuilder = (yargs: Argv) => { | |||
'Source revision (git SHA or tag) to publish (if not release branch head)', | |||
type: 'string', | |||
}) | |||
.option('merge-target', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've often seen "base branch" used as terminology for this, but "merge target" is equally clear.
Fix up to #245, see getsentry/publish#353 for more details.
This fixes #239 and fixes #115. This fix requires us to switch
from a purely GitHub API driven publish flow to a purely local
Git driven publish flow as it is not possible to compute the
nearest merge base via any GitHub API. We rely on
git log
andsome parsing to be able to determine this.
The patch also effectively reverts #220 as there is now no need
for that (we are operating on the repo directly).
Test run: https://github.com/getsentry/release-tester/commits/releases/0.4.x
Also see no merges to main: https://github.com/getsentry/release-tester/commits/main
Depends on getsentry/publish#334
TODO: re-read config once we switch branches.