-
Story
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
False
-
-
False
-
-
Description
Description of problem:
Gitea/Forgejo provider returns “not supported” for GetTaskURI, so remote
taskRef URLs that resolve on GitHub do not work for Gitea/ Forgejo. This is
a parity gap.
Prerequisites (if any, like setup, operators/versions):
- Pipelines-as-Code with Gitea/Forgejo provider enabled
- Repository CR configured with type: gitea and git_provider.url
Steps to Reproduce
Configure a Repository CR using Gitea/Forgejo
Create a PipelineRun or TaskRun with a remote taskRef URL hosted on the same Gitea/Forgejo instance
Trigger a run (PR or push)
Observe that task resolution fails due to provider returning unsupported
Expected results:
Gitea/Forgejo provider resolves remote taskRef URLs similarly to GitHub, returning task contents when the URL host matches the repo.
Reproducibility (Always/Intermittent/Only Once):
Always
Acceptance criteria:
- GetTaskURI in Gitea/Forgejo provider resolves remote task URLs for same-host repositories.
- Behavior matches GitHub’s URL resolution rules for supported URL formats.
- Unit tests cover successful and failing URL cases.
- Documentation impact identified (follow-up doc ticket if needed).
Additional info (Such as Logs, Screenshots, etc):
References:
- Gitea provider stub: pkg/provider/gitea/gitea.go:116-118
- GitHub implementation: pkg/provider/github/github.go:138-170