Repository navigation
Let loopway config set the GitHub bot (token, name, email) - #59
Merged
Merged
Conversation
Adds --github-token, --github-name and --github-email to `loopway config`. In a terminal it prompts for each one, starting from the saved value, with the token in a password field; an empty answer keeps the saved value. It saves all three or none. Closes #58 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
fix the conflicts |
config no longer takes a key, so the GitHub bot is set alongside the URL and written without a /me check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Merged main to fix the conflicts with #57. |
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.
loopway configcan now set the GitHub bot thatloopway threadssessions act as (added in #51). Before this you had to edit~/.loopway/config.jsonor use the env vars.What changed
loopway confighas new--github-token,--github-nameand--github-emailflags.loopway config --github-token ghp_newrotates just the token.readGithubBotis split out ofloadGithubBotsoconfigcan read the saved block without the env overrides.loadGithubBot's error now says to runloopway config.Defaults I picked
configprintsGitHub bot: <name> <email>.config, because an empty answer keeps the saved value. The issue didn't ask for one.Tests
Added a test for
configwith only some of the bot set (rejected, nothing saved), with all three set, and with one flag changed (the others are kept). Typecheck, lint and prettier pass. The CLI suite is flaky when it runs in parallel with the web suite (npm testat the root): a different timing-sensitive test failed in 2 runs. The same flake happens on unmodifiedmain(1 of 3 runs), andnpm testinpackages/clialone passes.No deploy steps.
Closes #58
🤖 Generated with Claude Code