Skip to content

Comments

Forgejo/Codeberg backend with editorial workflow#7726

Open
razzeee wants to merge 2 commits intodecaporg:mainfrom
razzeee:forgejo-workflow
Open

Forgejo/Codeberg backend with editorial workflow#7726
razzeee wants to merge 2 commits intodecaporg:mainfrom
razzeee:forgejo-workflow

Conversation

@razzeee
Copy link

@razzeee razzeee commented Feb 14, 2026

Summary

We're currently working on a website with a CMS. But we don't want to use github, so we switched to codeberg.

This is an implementation of forgejo (a gitea fork) - based on the gitea backend. Then we've amended the endpoints to be correct for forgejo and added editorial workflow handling.

Test plan

I've ran all tests locally, that work on my machine (cypress still doesn't have fedora integration)
As far as we've tested, it seems to work fine.
You can use your codeberg accounts to test here https://diday.sxda.io/admin/ but we won't merge changes :)

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)
image

@razzeee razzeee requested a review from a team as a code owner February 14, 2026 15:42
@@ -0,0 +1,65 @@
backend:
name: forgejo
app_id: a582de8c-2459-4e5f-b671-80f99a0592cc
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from the gittea backend and changed in name. I'm unsure how this works/it will likely need changes.

@razzeee
Copy link
Author

razzeee commented Feb 14, 2026

You also might want to go through this commit by commit. The first one is just a copy of the gittea backend into the new folder, so changes should be obvious from the second commit.

@@ -0,0 +1 @@
# Change Log
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've emptied the changelogs, as I'm unsure when they get filled

@martinjagodic
Copy link
Member

@razzeee, thanks for the PR. If Forgejo is a fork of Gitea, could one backend support both, or did they change the API so much that it's not possible? It would be much easier to maintain one backend than 2.

@razzeee
Copy link
Author

razzeee commented Feb 16, 2026

@razzeee, thanks for the PR. If Forgejo is a fork of Gitea, could one backend support both, or did they change the API so much that it's not possible? It would be much easier to maintain one backend than 2.

The only thing, that's on top of my head is, that the api for merging upstream is different.

I orignially started with everything in the gitea backend, but it seemed weird at the point, where the api started to be so different. And it might be hard to communicate to users (that's also a problem for codeberg) - but I guess docs might work, even if the backend name ends up weird?

Then again, I don't have access to a gitea backend, so I can't confirm, the changes work fine over there.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants