Skip to content

[Feature]: Support Gitea issue URLs as workspace references #49681

Description

@van2233

Problem or use case

I use Orca with a self-hosted Gitea. Orca already talks to Gitea for PRs and commit status (ORCA_GITEA_TOKEN / ORCA_GITEA_API_BASE_URL), which works well.

Problem
Gitea issues cannot be linked to a workspace:

  • orca worktree create ... --reference https://<gitea-host>/<owner>/<repo>/issues/123 fails with invalid_argument: Unsupported reference URL (Orca 1.4.277, Windows).
  • orca worktree set has --issue (GitHub), --linear-issue and --gitlab-issue, but nothing for Gitea.

So when an external script dispatches issues to agents, the workspace cannot show which Gitea issue it belongs to; we currently put the link only in the agent prompt.

Proposed solution

Accept Gitea issue URLs in --reference / orca reference add (and show them like other linked issues), resolving them through the existing Gitea settings. A --gitea-issue flag on worktree set would also work.

Alternatives or additional context

  1. Configure a self-hosted Gitea remote (PR integration works).
  2. Run orca worktree create --repo <id> --name test --reference https://<gitea-host>/<owner>/<repo>/issues/1 --json.
  3. Observe Unsupported reference URL.

Activity

  1. added
    enhancement
    on Nov 26, 2026
  2. added theissue type on Nov 26, 2026
  3. markelm1 commented on Nov 29, 2026

    @markelm1

    This is implemented in #48552 (Gitea Tasks), commit 5b90105:

    orca worktree create --repo <id> --name test --reference https://<gitea-host>/<owner>/<repo>/issues/1 --json
    orca reference add https://<gitea-host>/<owner>/<repo>/issues/123 --worktree name:<workspace>
    

    Both now record a Gitea issue instead of failing with Unsupported reference URL. A self-hosted /owner/repo/issues/N URL has the same shape as a GitHub Enterprise one, so the CLI asks the Orca host whether the URL is on a Gitea server it knows: one connected in Settings → Integrations, or the one in ORCA_GITEA_API_BASE_URL. Installs under a subpath (https://host/gitea/owner/repo/issues/1) work too. orca reference remove accepts the same URLs, and the workspace card's link editor has a "Gitea issue" kind.

    I used --reference instead of adding a --gitea-issue flag to worktree set, since orca reference add covers that case.

    If you can try the branch against your instance, feedback on the PR would help it land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions