···25 NewSha string `json:"newSha" cborgen:"newSha"`
26 // oldSha: old SHA of this ref
27 OldSha string `json:"oldSha" cborgen:"oldSha"`
0028 // ref: Ref being updated
29 Ref string `json:"ref" cborgen:"ref"`
30- // repoDid: did of the owner of the repo
31- RepoDid string `json:"repoDid" cborgen:"repoDid"`
32 // repoName: name of the repo
33 RepoName string `json:"repoName" cborgen:"repoName"`
34}
···25 NewSha string `json:"newSha" cborgen:"newSha"`
26 // oldSha: old SHA of this ref
27 OldSha string `json:"oldSha" cborgen:"oldSha"`
28+ // ownerDid: did of the owner of the repo
29+ OwnerDid *string `json:"ownerDid,omitempty" cborgen:"ownerDid,omitempty"`
30 // ref: Ref being updated
31 Ref string `json:"ref" cborgen:"ref"`
32+ // repoDid: DID of the repo itself
33+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
34 // repoName: name of the repo
35 RepoName string `json:"repoName" cborgen:"repoName"`
36}
+2-1
api/tangled/repoartifact.go
···25 // name: name of the artifact
26 Name string `json:"name" cborgen:"name"`
27 // repo: repo that this artifact is being uploaded to
28- Repo string `json:"repo" cborgen:"repo"`
029 // tag: hash of the tag object that this artifact is attached to (only annotated tags are supported)
30 Tag util.LexBytes `json:"tag,omitempty" cborgen:"tag,omitempty"`
31}
···25 // name: name of the artifact
26 Name string `json:"name" cborgen:"name"`
27 // repo: repo that this artifact is being uploaded to
28+ Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
29+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
30 // tag: hash of the tag object that this artifact is attached to (only annotated tags are supported)
31 Tag util.LexBytes `json:"tag,omitempty" cborgen:"tag,omitempty"`
32}
+3-2
api/tangled/repocollaborator.go
···20 LexiconTypeID string `json:"$type,const=sh.tangled.repo.collaborator" cborgen:"$type,const=sh.tangled.repo.collaborator"`
21 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
22 // repo: repo to add this user to
23- Repo string `json:"repo" cborgen:"repo"`
24- Subject string `json:"subject" cborgen:"subject"`
025}
···20 LexiconTypeID string `json:"$type,const=sh.tangled.repo.collaborator" cborgen:"$type,const=sh.tangled.repo.collaborator"`
21 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
22 // repo: repo to add this user to
23+ Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
24+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
25+ Subject string `json:"subject" cborgen:"subject"`
26}
+14-4
api/tangled/repocreate.go
···18type RepoCreate_Input struct {
19 // defaultBranch: Default branch to push to
20 DefaultBranch *string `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"`
000021 // rkey: Rkey of the repository record
22 Rkey string `json:"rkey" cborgen:"rkey"`
23 // source: A source URL to clone from, populate this when forking or importing a repository.
24 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
0000025}
2627// RepoCreate calls the XRPC method "sh.tangled.repo.create".
28-func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) error {
29- if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.create", nil, input, nil); err != nil {
30- return err
031 }
3233- return nil
34}
···18type RepoCreate_Input struct {
19 // defaultBranch: Default branch to push to
20 DefaultBranch *string `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"`
21+ // name: Name of the repository
22+ Name string `json:"name" cborgen:"name"`
23+ // repoDid: Optional user-provided did:web to use as the repo identity instead of minting a did:plc.
24+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
25 // rkey: Rkey of the repository record
26 Rkey string `json:"rkey" cborgen:"rkey"`
27 // source: A source URL to clone from, populate this when forking or importing a repository.
28 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
29+}
30+31+// RepoCreate_Output is the output of a sh.tangled.repo.create call.
32+type RepoCreate_Output struct {
33+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
34}
3536// RepoCreate calls the XRPC method "sh.tangled.repo.create".
37+func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) (*RepoCreate_Output, error) {
38+ var out RepoCreate_Output
39+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.create", nil, input, &out); err != nil {
40+ return nil, err
41 }
4243+ return &out, nil
44}
···3334// RepoPull_Source is a "source" in the sh.tangled.repo.pull schema.
35type RepoPull_Source struct {
36- Branch string `json:"branch" cborgen:"branch"`
37- Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
38- Sha string `json:"sha" cborgen:"sha"`
039}
4041// RepoPull_Target is a "target" in the sh.tangled.repo.pull schema.
42type RepoPull_Target struct {
43- Branch string `json:"branch" cborgen:"branch"`
44- Repo string `json:"repo" cborgen:"repo"`
045}
···3334// RepoPull_Source is a "source" in the sh.tangled.repo.pull schema.
35type RepoPull_Source struct {
36+ Branch string `json:"branch" cborgen:"branch"`
37+ Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
38+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
39+ Sha string `json:"sha" cborgen:"sha"`
40}
4142// RepoPull_Target is a "target" in the sh.tangled.repo.pull schema.
43type RepoPull_Target struct {
44+ Branch string `json:"branch" cborgen:"branch"`
45+ Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
46+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
47}
+6-4
api/tangled/tangledpipeline.go
···6667// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
68type Pipeline_TriggerRepo struct {
69- DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
70- Did string `json:"did" cborgen:"did"`
71- Knot string `json:"knot" cborgen:"knot"`
72- Repo string `json:"repo" cborgen:"repo"`
0073}
7475// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
···6667// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
68type Pipeline_TriggerRepo struct {
69+ DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
70+ Did string `json:"did" cborgen:"did"`
71+ Knot string `json:"knot" cborgen:"knot"`
72+ Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
73+ // repoDid: DID of the repo itself
74+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
75}
7677// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
+2
api/tangled/tangledrepo.go
···26 Labels []string `json:"labels,omitempty" cborgen:"labels,omitempty"`
27 // name: name of the repo
28 Name string `json:"name" cborgen:"name"`
0029 // source: source of the repo
30 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
31 // spindle: CI runner to send jobs to and receive results from
···26 Labels []string `json:"labels,omitempty" cborgen:"labels,omitempty"`
27 // name: name of the repo
28 Name string `json:"name" cborgen:"name"`
29+ // repoDid: DID of the repo itself, if assigned
30+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
31 // source: source of the repo
32 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
33 // spindle: CI runner to send jobs to and receive results from
+9
lexicons/actor/profile.json
···60 "maxGraphemes": 40,
61 "maxLength": 400
62 },
00000000063 "pinnedRepositories": {
64 "type": "array",
65 "description": "Any ATURI, it is up to appviews to validate these fields.",
···60 "maxGraphemes": 40,
61 "maxLength": 400
62 },
63+ "pinnedRepositoryDids": {
64+ "type": "array",
65+ "minLength": 0,
66+ "maxLength": 6,
67+ "items": {
68+ "type": "string",
69+ "format": "did"
70+ }
71+ },
72 "pinnedRepositories": {
73 "type": "array",
74 "description": "Any ATURI, it is up to appviews to validate these fields.",