@@ -27,38 +27,21 @@ a new browser. |
27 | 27 |
|
28 | 28 | Prefer a container? See [Dev container](../internals/devcontainer.md) for VS Code and Codespaces setup. |
29 | 29 |
|
30 | | -## GitCafe mirror (optional) |
| 30 | +## Forge mirror (optional) |
31 | 31 |
|
32 | | -GitHub is the source of truth. [git.cafe/pingdotgg/t3code](https://git.cafe/pingdotgg/t3code) is a |
33 | | -two-way synced mirror with much higher API rate limits, which helps when many agents work at once. |
34 | | -You never need it to contribute. |
35 | | - |
36 | | -Pushes, PRs, comments, reviews, labels, and issue edits made on GitCafe sync to GitHub within |
37 | | -about a minute, and PR and issue numbers match. CI runs on GitHub, and its checks show up on |
38 | | -GitCafe. |
| 32 | +GitHub is the source of truth. [source.tanstack.com/@pingdotgg/t3code](https://source.tanstack.com/@pingdotgg/t3code) |
| 33 | +is a two-way synced mirror built for many agents working at once. You never need it to contribute. |
39 | 34 |
|
40 | 35 | ```sh |
41 | | -git remote set-url origin https://git.cafe/pingdotgg/t3code.git |
| 36 | +git remote set-url origin https://source.tanstack.com/@pingdotgg/t3code.git |
42 | 37 | git remote add github https://github.com/pingdotgg/t3code.git |
43 | | -gh repo set-default pingdotgg/t3code # `gh` is still used for merging |
44 | | -bun install -g @gitcafe/cli@latest # `cafe` needs Bun 1.2 or newer |
45 | | -cafe auth login && cafe auth http setup |
46 | | -cafe skills install --global # optional: cafe-* skills for coding agents |
| 38 | +src auth login --web && src auth setup-git |
47 | 39 | ``` |
48 | 40 |
|
49 | | -With `origin` on git.cafe, work through GitCafe and leave GitHub's API alone: |
50 | | - |
51 | | -- Push to `origin`, open PRs with `cafe pr create` (`--head owner/repo:branch` from a fork) or |
52 | | - `cafe stack submit`, and use `cafe` for everything after that. Link the git.cafe PR URL, not the |
53 | | - github.com one, wherever a tool tracks the PR, so polling stays on GitCafe. |
54 | | -- Read checks with `cafe pr status <n>`, and GitHub Actions logs with `cafe ci logs <run>` (run ids |
55 | | - from `cafe ci list --pr <n>`). `cafe ci rerun <run>` reruns one. These need `cafe` 0.11 or newer. |
56 | | -- Write closing references as `Fixes pingdotgg/t3code#<n>`. GitCafe turns a bare `#<n>` in text it |
57 | | - syncs to GitHub into a git.cafe link, and GitHub does not close issues from those. |
58 | | -- Merge with `gh pr merge <n> --match-head-commit <sha>`, because `cafe pr merge` cannot pin the |
59 | | - commit you reviewed. |
60 | | -- `cafe` commands differ from `gh`: `cafe issue comments <n>` not `--comments`, `cafe pr status` |
61 | | - not `pr checks`. |
| 41 | +With `origin` on the mirror, use `src` (it takes `gh`'s commands and flags) and its `source` agent |
| 42 | +skill for PRs, issues, reviews, and CI, and leave GitHub's API alone. Pull requests into `main` |
| 43 | +merge on GitHub, so GitHub's required checks and reviews still apply. Numbers can differ between |
| 44 | +the two forges; in text that reaches GitHub, use the GitHub number. |
62 | 45 |
|
63 | 46 | ## Choosing a dev process |
64 | 47 |
|
|