-1
appview/knots/knots.go
-1
appview/knots/knots.go
-5
appview/pulls/pulls.go
-5
appview/pulls/pulls.go
···
597
597
FilteringBy: state,
598
598
Stacks: stacks,
599
599
})
600
-
return
601
600
}
602
601
603
602
func (s *Pulls) PullComment(w http.ResponseWriter, r *http.Request) {
···
1658
1657
}
1659
1658
1660
1659
s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pull.PullId))
1661
-
return
1662
1660
}
1663
1661
1664
1662
func (s *Pulls) resubmitStackedPullHelper(
···
1902
1900
}
1903
1901
1904
1902
s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pull.PullId))
1905
-
return
1906
1903
}
1907
1904
1908
1905
func (s *Pulls) MergePull(w http.ResponseWriter, r *http.Request) {
···
2073
2070
}
2074
2071
2075
2072
s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pull.PullId))
2076
-
return
2077
2073
}
2078
2074
2079
2075
func (s *Pulls) ReopenPull(w http.ResponseWriter, r *http.Request) {
···
2142
2138
}
2143
2139
2144
2140
s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d", f.OwnerSlashRepo(), pull.PullId))
2145
-
return
2146
2141
}
2147
2142
2148
2143
func newStack(f *reporesolver.ResolvedRepo, user *oauth.User, targetBranch, patch string, pullSource *db.PullSource, stackId string) (db.Stack, error) {
-4
appview/repo/repo.go
-4
appview/repo/repo.go
···
177
177
rp.pages.EditRepoDescriptionFragment(w, pages.RepoDescriptionParams{
178
178
RepoInfo: f.RepoInfo(user),
179
179
})
180
-
return
181
180
}
182
181
183
182
func (rp *Repo) RepoDescription(w http.ResponseWriter, r *http.Request) {
···
454
453
ArtifactMap: artifactMap,
455
454
DanglingArtifacts: danglingArtifacts,
456
455
})
457
-
return
458
456
}
459
457
460
458
func (rp *Repo) RepoBranches(w http.ResponseWriter, r *http.Request) {
···
543
541
ShowRendered: showRendered,
544
542
RenderToggle: renderToggle,
545
543
})
546
-
return
547
544
}
548
545
549
546
func (rp *Repo) RepoBlobRaw(w http.ResponseWriter, r *http.Request) {
···
587
584
588
585
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
589
586
w.Write([]byte(result.Contents))
590
-
return
591
587
}
592
588
593
589
// modify the spindle configured for this repo
+1
-5
appview/spindles/spindles.go
+1
-5
appview/spindles/spindles.go
···
114
114
}
115
115
116
116
identsToResolve := make([]string, len(members))
117
-
for i, member := range members {
118
-
identsToResolve[i] = member
119
-
}
117
+
copy(identsToResolve, members)
120
118
resolvedIds := s.IdResolver.ResolveIdents(r.Context(), identsToResolve)
121
119
didHandleMap := make(map[string]string)
122
120
for _, identity := range resolvedIds {
···
258
256
259
257
// ok
260
258
s.Pages.HxRefresh(w)
261
-
return
262
259
}
263
260
264
261
func (s *Spindles) delete(w http.ResponseWriter, r *http.Request) {
···
711
708
712
709
// ok
713
710
s.Pages.HxRefresh(w)
714
-
return
715
711
}
-3
appview/state/profile.go
-3
appview/state/profile.go
···
265
265
}
266
266
267
267
s.updateProfile(profile, w, r)
268
-
return
269
268
}
270
269
271
270
func (s *State) UpdateProfilePins(w http.ResponseWriter, r *http.Request) {
···
305
304
profile.PinnedRepos = pinnedRepos
306
305
307
306
s.updateProfile(profile, w, r)
308
-
return
309
307
}
310
308
311
309
func (s *State) updateProfile(profile *db.Profile, w http.ResponseWriter, r *http.Request) {
···
373
371
s.notifier.UpdateProfile(r.Context(), profile)
374
372
375
373
s.pages.HxRedirect(w, "/"+user.Did)
376
-
return
377
374
}
378
375
379
376
func (s *State) EditBioFragment(w http.ResponseWriter, r *http.Request) {