Skip to content

feat: introduce forgejo - #240

Merged
lampajr merged 1 commit into
kiegroup:mainfrom
oliverpool:forgejo
Oct 17, 2026
Merged

lampajr merged 1 commit into
kiegroup:mainfrom
oliverpool:forgejo

Conversation

@oliverpool

Copy link
Copy Markdown
Contributor

Codeberg is running on Forgejo, however it would be better to advertise compatibility with the underlying software than with this specific deployment.

fixes https://code.ffmpeg.org/actions/git-backporting/commit/a7004ff4d9427fc59afcaf21e6d7bdf08f48f861 (cc @BtbN ;)

Description

This add Forgejo as a git platform (software run by codeberg.org and other organisations).
The auto-detection should work when run inside Forgejo Actions.

(Ideally all references to Codeberg should be removed in favor of Forgejo, but this would be a much bigger undertaking...)

How Has This Been Tested?

Running FORGEJO_SERVER_URL=http://localhost node ./dist/cli/index.js succeeds (but fails without the env var), when targeting Forgejo (apart from codeberg).

Checklist

  • Tests added if applicable.
  • Documentation updated if applicable.

Merge criteria:

  • The commits and have meaningful messages; the author will squash them after approval or will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Note: dist/cli/index.js and dist/gha/index.js are automatically generated by git hooks and gh workflows.

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report

St.❔
Category Percentage Covered / Total
🟢 Statements
87.68% (-0.29% 🔻)
655/747
🟢 Branches
81.72% (-0.6% 🔻)
313/383
🟢 Functions 85.56% 154/180
🟢 Lines
87.78% (-0.3% 🔻)
632/720
Show files with reduced coverage 🔻
St.❔
File Statements Branches Functions Lines
🟢
... / github-client.ts
83.49%
72.13% (-0.45% 🔻)
68% 84.62%
🟢 git/git-util.ts
94.55% (-5.45% 🔻)
86.21% (-9.79% 🔻)
100%
94% (-6% 🔻)

Test suite run success

230 tests passing in 19 suites.

Report generated by 🧪jest coverage report action from 4c80ff3

Codeberg is running on Forgejo, however it would be better to advertise
compatibility with the underlying software than with this specific
deployment.

@lampajr lampajr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @oliverpool , sorry for the late reply!

(Ideally all references to Codeberg should be removed in favor of Forgejo, but this would be a much bigger undertaking...)

Indeed, as long as Codeberg is feature-equivalent with the base Forgejo and there is no specific customization I agree with this - but this might be slightly trickier as I'd like to be either backward compatible or properly plan in to start a new major version removing codeberg

@lampajr
lampajr merged commit 071effd into kiegroup:main Oct 17, 2026
5 checks passed
@oliverpool

Copy link
Copy Markdown
Contributor Author

Don't worry about the delay :), yes Codeberg is Forgejo with some minor adjustments (mostly visual).

Maybe it should be deprecated (removing it might be too much effort for not much gain).

@oliverpool
oliverpool deleted the forgejo branch October 17, 2026 17:49
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