Feat/forgejo UI env protocol#1
Merged
neubig merged 11 commits intojohba37:forgejo-integration-rebasedfrom Dec 27, 2025
Merged
Conversation
…- Frontend: add Forgejo token + host inputs with i18n; integrate into Git Settings\n- Types: include 'forgejo' in ProviderOptions\n- Backend: auto-read FORGEJO_TOKEN and FORGEJO_BASE_URL; host extraction\n- Provider: normalize domain to avoid double protocol/path; treat Forgejo like GitHub auth URLs\n- Resolver: recognize FORGEJO_TOKEN for CLI paths\n\nNote: Frontend lint/build skipped here due to missing Node; please run npm lint/build in CI\n\nCo-authored-by: openhands <openhands@all-hands.dev>
…es forgejo)\n\n- Use Provider from types/settings for conversation subscription APIs\n- Cast providers in use-create-conversation-and-subscribe-multiple to Provider[]\n\nCo-authored-by: openhands <openhands@all-hands.dev>
…: add selected_provider to /api/user/repository/branches and thread through ProviderHandler.get_branches\n- Frontend: pass selected_provider for branch pagination and search; plumb provider to hooks\n- Frontend utils: add Forgejo base URL and URL builders (PR, branch, microagent) + provider name\n- Normalize protocol/host via existing backend logic to avoid double-protocol in git URLs\n\nCo-authored-by: openhands <openhands@all-hands.dev>
…ost is unset\n\nEnsures public clone works with FORGEJO_BASE_URL env or service base without forcing host to be saved in secrets.\n\nCo-authored-by: openhands <openhands@all-hands.dev>
… token host is unset\n\nEnsures public clone works with FORGEJO_BASE_URL env or service base without forcing host to be saved in secrets.\n\nCo-authored-by: openhands <openhands@all-hands.dev>" This reverts commit 468dc3d.
…provided\n\nThis ensures custom Forgejo hosts are correctly recognized without requiring the domain to contain 'forgejo' or 'codeberg'.\n\nCo-authored-by: openhands <openhands@all-hands.dev>
…inks fix(forgejo): prevent GitHub fallback, add selected_provider to branches API, and correct Forgejo link utils
…nd host on save\n\nAvoids subtle validation failures due to accidental spaces in inputs.\n\nCo-authored-by: openhands <openhands@all-hands.dev>
…ab, bitbucket, azure devops, forgejo) on save\n\nPrevents validation issues from pasted tokens with leading/trailing spaces.\n\nCo-authored-by: openhands <openhands@all-hands.dev>
Fix/forgejo trim token whitespace
…o feat/forgejo-ui-env-protocol
2 tasks
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.
Summarize what the PR does, explaining any non-trivial design decisions.
I also implemented the triming for the other providers because the same problem can probably also occur there.