forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
fork
Configure Feed
Select the types of activity you want to include in your feed.
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.log
6
7import (
8 "bytes"
9 "context"
10
11 "github.com/bluesky-social/indigo/lex/util"
12)
13
14const (
15 RepoLogNSID = "sh.tangled.repo.log"
16)
17
18// RepoLog calls the XRPC method "sh.tangled.repo.log".
19//
20// cursor: Pagination cursor (commit SHA)
21// limit: Maximum number of commits to return
22// path: Path to filter commits by
23// ref: Git reference (branch, tag, or commit SHA)
24// repo: Repository identifier in format 'did:plc:.../repoName'
25func RepoLog(ctx context.Context, c util.LexClient, cursor string, limit int64, path string, ref string, repo string) ([]byte, error) {
26 buf := new(bytes.Buffer)
27
28 params := map[string]interface{}{}
29 if cursor != "" {
30 params["cursor"] = cursor
31 }
32 if limit != 0 {
33 params["limit"] = limit
34 }
35 if path != "" {
36 params["path"] = path
37 }
38 params["ref"] = ref
39 params["repo"] = repo
40 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.log", params, nil, buf); err != nil {
41 return nil, err
42 }
43
44 return buf.Bytes(), nil
45}