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

WIP: Gitea/Forgejo bridge #1077

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Conversation

mattcen
Copy link

@mattcen mattcen commented Jul 29, 2023

This PR deprecates #1017 (and #890 and #645 before it). I've rebased off current master, updated the feature matrix to the best of my ability, and built the code to confirm I can pull bugs from a Gitea repo.

I've not done anything else so far. I'm very new to Go, so am starting small, but wanted to at least give this a shot because having a Gitea bridge would be valuable to me.

Tian Yuanhao and others added 6 commits July 28, 2023 20:12
Copy link
Owner

@MichaelMure MichaelMure left a comment

Choose a reason for hiding this comment

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

Well, as a maintainer, I see the value of having such a bridge, but it's also a bit scary to merge (and have to maintain) a bridge with zero tests, and incomplete like this.

There is a few tiny fixes to do, but the biggest issue is not having the capability to import comments. It seems like it greatly reduce the usefulness of such importer.

Do you think you could implement that part? It seems like there is already the corresponding iterator, it should be "just" a matter of replicating that data into git-bug.

return
}

// Loop over all comments
Copy link
Owner

Choose a reason for hiding this comment

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

looks like this is a quite important missing feature, no?

// TODO: validate username
login, err = input.Prompt("Gitea login", "login", input.Required)
} else {
// TODO: validate username
Copy link
Owner

Choose a reason for hiding this comment

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

todo: at least make sure it's not empty, return an error if so

)

// giteaExporter implement the Exporter interface
type giteaExporter struct {
Copy link
Owner

Choose a reason for hiding this comment

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

this whole exporter could be removed (as it's not used), instead of returning those weird errors

)

const (
target = "gitea-preview"
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
target = "gitea-preview"
target = "gitea"

@MichaelMure MichaelMure mentioned this pull request Aug 10, 2023
@mattcen
Copy link
Author

mattcen commented Aug 12, 2023

Oh for sure; there's significant work to be done before it's remotely merge-able, hence the "WIP" and "Draft" status. I'm not sure when I'll be in a position to do more than I have already, but wanted to at least share the progress of bringing the previous PRs up to a state where they at least compile and run on the current code-base.

Thanks for the direction in your comments, though; that will certainly make it easier to make a start on this. :)

@will-ca
Copy link

will-ca commented Sep 2, 2023

Any thoughts on Forgejo vs Gitea? Looks like they should be basically compatible, and have a good amount of momentum behind them.

@mattcen
Copy link
Author

mattcen commented Sep 2, 2023

Software-wise they're currently identical since Forgejo is a soft fork.

@Amolith
Copy link

Amolith commented Sep 3, 2023

They're very much compatible at the moment; Gitea clients will work perfectly with Forgejo servers.

I do know some of the people behind Forgejo are also some of the people behind ForgeFed and they're putting a lot of effort into implementing it. If I remember correctly, the primary Gitea maintainers were pretty ambivalent to federated forges, so I can definitely see them diverging in that area further down the line.

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.

None yet

5 participants