Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native forgejo support #3684

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Native forgejo support #3684

wants to merge 22 commits into from

Conversation

qwerty287
Copy link
Contributor

I found a third-party fork of the gitea SDK: https://codeberg.org/mvdkleijn/forgejo-sdk

Closes #3637

@qwerty287 qwerty287 added feature add new functionality forge/forgejo forgejo forge related labels May 6, 2024
@qwerty287 qwerty287 marked this pull request as ready for review May 11, 2024 10:13
@qwerty287
Copy link
Contributor Author

Tested, seems working

@qwerty287 qwerty287 added this to the 2.6.0 milestone May 11, 2024
@qwerty287 qwerty287 requested a review from a team May 13, 2024 18:29
cmd/server/flags.go Outdated Show resolved Hide resolved
docs/docs/30-administration/11-forges/35-forgejo.md Outdated Show resolved Hide resolved
@xoxys
Copy link
Member

xoxys commented May 13, 2024

Nice work. Im a bit unsure about the sdk. Is it stable enough to rely on it? Does it anything different from the gitea sdk? As long as forgejo is api compatible we could still use the gitea sdk.

@woodpecker-bot
Copy link
Collaborator

woodpecker-bot commented May 13, 2024

Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-3684.surge.sh

@6543
Copy link
Member

6543 commented May 13, 2024

forgejo as to be added to cSpell list

Copy link
Member

@jolheiser jolheiser left a comment

Choose a reason for hiding this comment

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

just a few nits

server/services/setup.go Outdated Show resolved Hide resolved
server/forge/setup/setup.go Outdated Show resolved Hide resolved
server/forge/setup/setup.go Outdated Show resolved Hide resolved
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
@qwerty287
Copy link
Contributor Author

Nice work. Im a bit unsure about the sdk. Is it stable enough to rely on it? Does it anything different from the gitea sdk? As long as forgejo is api compatible we could still use the gitea sdk.

It's a fork of the gitea SDK and thus I'd say it's stable. It's not doing that much differently currently except renaming gitea to forgejo.

qwerty287 and others added 7 commits May 14, 2024 07:23
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
@pat-s
Copy link
Contributor

pat-s commented May 14, 2024

So man changes 👀

Maybe worth letting the maintainer know that his fork is now being used by WP?

@qwerty287
Copy link
Contributor Author

He does already: https://codeberg.org/mvdkleijn/forgejo-sdk/issues/2

@mvdkleijn
Copy link
Contributor

Hiya, maintainer of the forgejo sdk here..

Just wanted to let you know that the SDK is indeed a fork of the Gitea SDK. I made the fork after reading about Forgejo's hardfork since I thought that would make sense.

Right now, the fork is the same as the original. I even pulled in the latest updates not too long ago.

I plan to add convenience functions next to functions referencing the Forgejo api 1-on-1.

In general during the course of 1.x you can expect bug fixes, additions and cleanups. The SDK will use semver so if I make backwards incompatible changes, you can expect a major version bump.

I'll probably also add a vanity url for the SDK that people can optionally use so I can move the repo to a different forge if I ever need / want to.

My first order of business though is to make a woodpecker pipeline. I already setup WP locally to test the pipeline since I am new to WP.

Feel free to leave any feedback over at the repo. (sorry for temporarily hijacking this PR with my comment :-p )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature add new functionality forge/forgejo forgejo forge related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ForgeJo icon for "Go to forge page" button
7 participants