Repository navigation
Let loopway threads sessions act as a GitHub bot user - #51
Merged
Merged
Conversation
With `github: { token, name, email }` in ~/.loopway/config.json (or
LOOPWAY_GITHUB_TOKEN/NAME/EMAIL), the dispatcher runs each session with
GH_TOKEN, a github.com credential helper that answers with the bot's
token (SSH remotes rewritten to HTTPS), and the bot as commit author and
committer. Without it, sessions keep acting as the user. `loopway config`
and `login` now keep other keys in config.json.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mcwhittemore
commented
Oct 8, 2026
mcwhittemore
commented
Oct 8, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
tests are failing, figure out what is wrong and resolve them. Don't push till tests are passing and when you push, confirm they pass here. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
The tests themselves were passing. CI failed at its last step, Cause: CI runs against this branch merged into the latest Fix:
Before pushing, I ran every CI step locally and all of them passed:
Confirmed here: the CI run on 30e2918 passed (run), and so did Vercel. |
This was referenced Oct 8, 2026
This was referenced Oct 8, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets
loopway threadssessions comment, open PRs, push and commit as a GitHub bot user instead of as whoever runs the dispatcher. This is the config-only first step agreed in #31.What changed
~/.loopway/config.jsontakes an optionalgithub: { token, name, email }.LOOPWAY_GITHUB_TOKEN/LOOPWAY_GITHUB_NAME/LOOPWAY_GITHUB_EMAILoverride it. Set all three or none; a partial setup fails at startup with a clear error.packages/cli/src/threads/github.ts). When a bot is configured, every session gets:GH_TOKENandGITHUB_TOKEN, soghcomments and opens PRs as the bot, and other tools that readGITHUB_TOKENdon't get a token the user exported.GIT_CONFIG_KEY_n/VALUE_n, so nothing is written to the user's git config:https://github.com(keychain,gh auth git-credential) are reset;git@github.com:andssh://git@github.com/remotes are rewritten to HTTPS, so pushes use the bot too.GIT_AUTHOR_*/GIT_COMMITTER_*set to the bot.loopway config/loopway loginnow keep the other keys inconfig.jsonwhen they rewrite it. Before, they would have dropped thegithubblock.Not in this PR, as discussed: skipping events the bot itself caused, and getting the token to the machine (it's copied by hand for now).
Tests
loadGithubBot: env over file, all-or-none, kept acrossloopway config.botEnvagainst realgit: author and committer identity, the user's helper replaced by the bot token for github.com, the SSH→HTTPS rewrite.Setup
No server changes, env vars or migrations. To use it:
reposcope: needed for repos where the bot is only a collaborator;githubblock to~/.loopway/config.json. Use the bot's noreply email (<id>+<login>@users.noreply.github.com) so commits link to it.Closes #31
🤖 Generated with Claude Code