this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add gosky command to trigger a rebase (#220)

authored by

Whyrusleeping and committed by
GitHub
d7bf04ac e16378f4

+23
+22
cmd/gosky/main.go
··· 100 100 createInviteCmd, 101 101 adminCmd, 102 102 createFeedGeneratorCmd, 103 + rebaseRepoCmd, 103 104 } 104 105 105 106 app.RunAndExitOnError() ··· 1469 1470 return nil 1470 1471 }, 1471 1472 } 1473 + 1474 + var rebaseRepoCmd = &cli.Command{ 1475 + Name: "rebase", 1476 + Flags: []cli.Flag{}, 1477 + Action: func(cctx *cli.Context) error { 1478 + xrpcc, err := cliutil.GetXrpcClient(cctx, true) 1479 + if err != nil { 1480 + return err 1481 + } 1482 + 1483 + did := xrpcc.Auth.Did 1484 + 1485 + if err := atproto.RepoRebaseRepo(context.Background(), xrpcc, &atproto.RepoRebaseRepo_Input{ 1486 + Repo: did, 1487 + }); err != nil { 1488 + return err 1489 + } 1490 + 1491 + return nil 1492 + }, 1493 + }
+1
repomgr/repomgr.go
··· 1049 1049 "root", carr.Header.Roots[0], 1050 1050 "commits", len(commits), 1051 1051 "head", head, 1052 + "user", user, 1052 1053 ) 1053 1054 } 1054 1055