···
-
pullSource := &db.PullSource{
-
recordPullSource := &tangled.RepoPull_Source{
// Generate a patch using /compare
ksClient, err := knotclient.NewUnsignedClient(f.Knot, s.config.Core.Dev)
···
s.createPullRequest(w, r, f, user, title, body, targetBranch, patch, sourceRev, pullSource, recordPullSource, isStacked)
···
-
s.createPullRequest(w, r, f, user, title, body, targetBranch, patch, sourceRev, &db.PullSource{
-
}, &tangled.RepoPull_Source{Branch: sourceBranch, Repo: &fork.AtUri}, isStacked)
func (s *Pulls) createPullRequest(
···
// creates a series of PRs, each linking to the previous, identified by jj's change-id
-
s.createStackedPulLRequest(
···
s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pullId))
-
func (s *Pulls) createStackedPulLRequest(
f *reporesolver.ResolvedRepo,
···
if pull.IsBranchBased() {
recordPullSource = &tangled.RepoPull_Source{
Branch: pull.PullSource.Branch,
···
recordPullSource = &tangled.RepoPull_Source{
Branch: pull.PullSource.Branch,
···
// Generate a patch using /compare
ksClient, err := knotclient.NewUnsignedClient(f.Knot, s.config.Core.Dev)
···
+
pullSource := &db.PullSource{
+
recordPullSource := &tangled.RepoPull_Source{
s.createPullRequest(w, r, f, user, title, body, targetBranch, patch, sourceRev, pullSource, recordPullSource, isStacked)
···
+
pullSource := &db.PullSource{
+
recordPullSource := &tangled.RepoPull_Source{
+
s.createPullRequest(w, r, f, user, title, body, targetBranch, patch, sourceRev, pullSource, recordPullSource, isStacked)
func (s *Pulls) createPullRequest(
···
// creates a series of PRs, each linking to the previous, identified by jj's change-id
+
s.createStackedPullRequest(
···
s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pullId))
+
func (s *Pulls) createStackedPullRequest(
f *reporesolver.ResolvedRepo,
···
if pull.IsBranchBased() {
recordPullSource = &tangled.RepoPull_Source{
Branch: pull.PullSource.Branch,
···
recordPullSource = &tangled.RepoPull_Source{
Branch: pull.PullSource.Branch,