chore: remove Gitea compatibility #1611

Merged
mfenniak merged 1 commit from aahlenst/runner:remove-gitea-compat-layer into main 2026-07-11 00:53:33 +00:00
Member

Since the introduction of workflow validation, Forgejo Runner would refuse running workflows that reference the gitea context. This change removes the remains of the Gitea support: the gitea context and some supporting variables like GITEA_TOKEN.

See https://codeberg.org/forgejo/discussions/issues/439 and #1319.

  • other
    • PR: chore: remove Gitea compatibility
Since the introduction of [workflow validation](https://code.forgejo.org/forgejo/runner/commit/65ae238f17a8459fafd3e2cc3b011b13db5b3dae), Forgejo Runner would refuse running workflows that reference the `gitea` context. This change removes the remains of the Gitea support: the `gitea` context and some supporting variables like `GITEA_TOKEN`. See https://codeberg.org/forgejo/discussions/issues/439 and https://code.forgejo.org/forgejo/runner/issues/1319. <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1611): <!--number 1611 --><!--line 0 --><!--description Y2hvcmU6IHJlbW92ZSBHaXRlYSBjb21wYXRpYmlsaXR5-->chore: remove Gitea compatibility<!--description--> <!--end release-notes-assistant-->
chore: remove Gitea compatibility
All checks were successful
cascade / debug (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / runner exec tests (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 41s
checks / validate pre-commit-hooks file (pull_request) Successful in 53s
checks / Build Forgejo Runner (pull_request) Successful in 1m6s
checks / runner exec tests (pull_request) Successful in 41s
checks / Build unsupported platforms (pull_request) Successful in 1m55s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 16m25s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 19m59s
checks / Run integration tests with Podman (pull_request) Successful in 14m18s
test-multi-platform / arm64 (pull_request) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 15s
cascade / forgejo (pull_request_target) Successful in 2m9s
9d36c09237
mfenniak approved these changes 2026-07-11 00:53:25 +00:00
@ -258,3 +255,3 @@
taskContext := task.Context.Fields
defaultActionURL := client.BackwardCompatibleContext(task, "default_actions_url")
defaultActionURL := taskContext["forgejo_default_actions_url"].GetStringValue()
Author
Member
Should I revert that due to https://codeberg.org/forgejo/forgejo/pulls/13406, @mfenniak?
Owner

Yeah, I think so. Otherwise the v13 release will need to wait until the next patch releases of Forgejo, and then only be supported on the latest releases -- that will be inconvenient for everyone.

Good catch for finding this problem. 👍

Yeah, I think so. Otherwise the v13 release will need to wait until the next patch releases of Forgejo, and then only be supported on the latest releases -- that will be inconvenient for everyone. Good catch for finding this problem. 👍
mfenniak referenced this pull request from a commit 2026-08-24 21:22:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/runner!1611
No description provided.