+1
-1
appview/config/config.go
+1
-1
appview/config/config.go
+98
-82
appview/oauth/handler/handler.go
+98
-82
appview/oauth/handler/handler.go
···············sessionReq, err := http.NewRequestWithContext(context.Background(), "POST", sessionURL, bytes.NewBuffer(sessionBytes))req, err := http.NewRequestWithContext(context.Background(), "POST", url, bytes.NewBuffer(payloadBytes))
-157
appview/repo/index.go
-157
appview/repo/index.go
······-// - newHiddenRefResp, err := signedClient.NewHiddenRef(user.Did, repoInfo.Name, currentRef, currentRef)-// + newHiddenRefResp, err := signedClient.NewHiddenRef(user.Did, repoInfo.Name, f.Ref, f.Ref)-// forkSyncableResp, err := signedClient.RepoForkAheadBehind(user.Did, string(f.RepoAt()), repoInfo.Name, currentRef, hiddenRef)
+21
-90
appview/repo/repo.go
+21
-90
appview/repo/repo.go
·········-// } else if resp, err := tangled.RepoListSecrets(r.Context(), spindleClient, f.RepoAt().String()); err != nil {
-299
knotclient/signer.go
-299
knotclient/signer.go
···-func (s *SignedClient) newRequest(method, endpoint string, body []byte) (*http.Request, error) {-func (s *SignedClient) RepoForkAheadBehind(ownerDid, source, name, branch, hiddenRef string) (*http.Response, error) {-func (s *SignedClient) SyncRepoFork(ownerDid, source, name, branch string) (*http.Response, error) {-func (s *SignedClient) SetDefaultBranch(ownerDid, repoName, branch string) (*http.Response, error) {-func (s *SignedClient) AddCollaborator(ownerDid, repoName, memberDid string) (*http.Response, error) {-func (s *SignedClient) MergeCheck(patch []byte, ownerDid, targetRepo, branch string) (*http.Response, error) {-func (s *SignedClient) NewHiddenRef(ownerDid, targetRepo, forkBranch, remoteBranch string) (*http.Response, error) {-endpoint := fmt.Sprintf("/%s/%s/hidden-ref/%s/%s", ownerDid, targetRepo, url.PathEscape(forkBranch), url.PathEscape(remoteBranch))
-10
knotserver/http_util.go
-10
knotserver/http_util.go
···
+7
-3
knotserver/ingester.go
+7
-3
knotserver/ingester.go
···-if ok, err := h.e.IsCollaboratorInviteAllowed(did, rbac.ThisServer, didSlashRepo); !ok || err != nil {+return fmt.Errorf("insufficient permissions: %s, %s, %s", did, "IsCollaboratorInviteAllowed", didSlashRepo)···
-2
knotserver/internal.go
-2
knotserver/internal.go
-7
nix/modules/knot.nix
-7
nix/modules/knot.nix
······