cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
955 stars 33 forks source link

GitHub destination support #163

Closed adamcstephens closed 1 year ago

adamcstephens commented 1 year ago

I’d love to be able to use gickup copy from my local gitea/forgejo instance to github.

cooperspencer commented 1 year ago

I'm currently working on adding this feature. The challenge I'm facing is that Github doesn't have the same mirror feature as gogs, gitea, or forgejo. This makes the implementation a bit trickier. I'll let you know how it goes.

cooperspencer commented 1 year ago

Hi,

I have just added a mirroring option for Github to the main branch. Could you please test and confirm if it functions as you intended?

adamcstephens commented 1 year ago

This works as I'd expect, but does show an error when the destination is already up to date

2023-08-15T15:35:23-04:00 ERR already up-to-date stage=github url=https://codeberg.org/adamcstephens/nix-sandbox.git
cooperspencer commented 1 year ago

Thanks a lot for testing it. I'll fix that issue tomorrow. ‘go-git‘ returns an error if anything is already up to date.

adamcstephens commented 1 year ago

Do the other destinations that natively support mirroring handle all branches? I just realized this only syncs the main branch.

cooperspencer commented 1 year ago

Yes, currently it is only the main branch. I think I found a solution for that but I'll implement that tomorrow.

cooperspencer commented 1 year ago

the current main branch should push all branches and tags.

Do the other destinations that natively support mirroring handle all branches? I just realized this only syncs the main branch.

Yes, gitea/gogs/forgejo mirror all branches and tags by default.

adamcstephens commented 1 year ago

Mirroring all the branches is now working for the GitHub destination.

cooperspencer commented 1 year ago

i pushed v0.10.18 and those features are now included.