Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions FORK.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ nothing. When Claude cannot resolve it, every run of that pair fails: sync `coll
then `gh workflow run fork-release.yml` (`-f force=true` asks Claude again instead).

Watcher setup (once, or after the token expires), from `fork/upstream-nightly-watcher/`:
`npx wrangler deploy`, then `npx wrangler secret put GITHUB_TOKEN` with a fine-grained token
for `collissimo/t3code` (Contents: read and write, Actions: read). `npx wrangler tail` shows
each check.
`npx wrangler deploy`, then copy a fine-grained token for `collissimo/t3code` (Contents: read and
write, Actions: read) and run `Get-Clipboard | npx wrangler secret put GITHUB_TOKEN`. Pasting
into the hidden prompt instead can store a raw Ctrl+V. `npx wrangler tail` shows each check.

- Every machine must run a fork build once (installed by hand); from then on the update button,
including "update everything" for connected servers, stays on the fork. A desktop app on the
Expand Down
3 changes: 2 additions & 1 deletion fork/upstream-nightly-watcher/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ async function github(env, path, init = {}) {
...init,
headers: {
accept: "application/vnd.github+json",
authorization: `Bearer ${env.GITHUB_TOKEN}`,
// A pasted secret can keep a trailing CR, which GitHub rejects with an empty 400.
authorization: `Bearer ${env.GITHUB_TOKEN.trim()}`,
"user-agent": "t3code-upstream-nightly-watcher",
"x-github-api-version": "2022-11-28",
...init.headers,
Expand Down
Loading