-
Notifications
You must be signed in to change notification settings - Fork 1.3k
campaigns: allow the target branch to be customised #15070
Comments
Another idea would be to leverage the already existing repositories:
- github.com/sourcegraph/sourcegraph
- name: github.com/sourcegraph/src-cli
branch: release That way, it would also support multi-root changeset creation (monorepo support) repositories:
- name: github.com/sourcegraph/src-cli
workDirs:
- cmd
- internal |
@eseliger Could you please add an estimate to this? Thanks! |
Tasks I think need to be done for this one:
Overall doesn't sound too complicated and the UI already supports it, so I think the estimation of 1d should be fine. |
Split into #15110. |
Just adding more info here:
We don't use it though (which is a bug): https://github.com/sourcegraph/src-cli/blob/b36136bc281c21dd23a0fcd292449e4cdad09e1c/internal/campaigns/service.go#L408-L414 That means, if we support the Originally I thought about adding a And I don't think that makes sense. What users most likely want is to say: "Do not use If they ever want to say "use |
Good find! I think we should go ahead and implement the behavior we documented already, it seems like an easy-to-understand solution that'll most likely help most customers for a while. We should just make sure in the code that this branch exists. |
Agree. And if that wasn't clear: that was my proposal and what I aim to do :) The other bit of good news is that if we handle the base branch correctly in |
A campaign always created a changeset against the repo's default branch at present, but there are scenarios where it may be desirable to allow customising the target branch, presumably through a new, optional
changesetTemplate
field.The text was updated successfully, but these errors were encountered: