Repository navigation
Conversation
Keep the run checkout and branch settings frozen. After an SSH push, allow the current Forgejo binding to open a PR only if it still belongs to the same project and uses the same SSH remote.
Adapt Forgejo PR submission to native Git workspaces and scoped SOP MCP calls. Preserve upstream write approvals and verify PRs against the pushed head. Move Forgejo SQL scripts past upstream migrations.
Bind SOP PR capabilities to the responsible user and reject them after reassignment. Refresh the saved delivery actor when an existing conversation PR is updated.
Preserve Forgejo delivery alongside host-scoped HTTPS credentials and external MR URL handling. Renumber the additive Forgejo migrations after upstream scripts.
Complete the English credential panel and updated Git address hints. Use the shared credential dialog dispatch without a redundant check.
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.
What changed
Related to #128. Git SSH can already clone and push Forgejo repositories, but it does not create pull requests or track delivery. This adds an explicit Forgejo binding and API v1 adapter so conversations and SOPs can deliver their pushed work through a PR and refresh its state.
AGENTFLOW_FORGE_INSTANCES. Personal access tokens are stored per user and instance.workbench_forgejo_pr_submitverifies the checkout and pushed commit, follows the current MCP write approval mode, and creates or updates a same-repository PR. Completed SOP workspaces can use the current Forgejo binding when their original SSH remote still matches.Scope
Compatibility
Preserves upstream host-scoped Git HTTPS credentials and GitHub Enterprise/GitLab delivery URL handling. Forgejo Git transport continues to use SSH, and its PR token stays on the platform.
Forgejo API v1, exercised with Forgejo 17.0.1. Git transport uses the existing personal SSH key and pinned host-key configuration. SOP capabilities travel through the existing HTTP MCP asset format. The new node capability requires the same
AGENTFLOW_SESSION_SECRETon API instances and workers.The two additive SQL scripts are
039_forge_credentials.sqland040_forge_delivery_actor.sql, after upstream migration 038. They createuser_forge_tokensand addmr_delivery_states.forge_user_id; deployments using the existing incremental schema setup receive these additions through GORM. Manual SQL deployments can apply the scripts themselves.This PR covers Forgejo repository and PR delivery. Forgejo Issue import, Gitea API support and automatic promotion tracking from the integration branch to the default branch remain follow-up work.
Validation
NODE_OPTIONS=--no-experimental-webstorage bash scripts/build-chatbot.sh— production build and 401 frontend tests.go test -p=2 ./... -count=1 -timeout=600s— full Go suite, matching the updated upstream CI timeout. The HTTP package takes about 240 seconds on this host.NODE_OPTIONS=--no-experimental-webstorage npm --prefix webtest test— 213 console tests, including English credential labels and host-scoped HTTPS credentials.go vet -p=2 ./...python3 scripts/check-public.pybash scripts/scan-secrets.shSafety
Classic/Portable bundles and third-party assets are outside this change.