9

Hi folks! I'm currently trying to learn a good workflow to fork a (say) github project and work on it on my forgejo. I have made forks and PRs in the past but I fail to see how to do it in this case, at least efficiently.

I could of course fork on github and mirror the repo on my forge. That would include me putting my work on github instead of only making a PR on github. I would prefer forking directly to my forge and sending only the PR on github. On the other hand, if I delete my fork afterward, it was pretty irrelevant to begin with.

How would you approach this?

top 4 comments
sorted by: hot top controversial new old
[-] QuizzaciousOtter@lemm.ee 5 points 4 months ago

Well, Pull Request is not a git feature, it's a GitHub feature. So you can only make PRs from forks on GitHub. Whether you store your work on your own Forgejo as well is up to you but you can't go around GitHub if you want to make PRs.

[-] CameronDev@programming.dev 1 points 4 months ago

Request-pull, on the other hand is a native git feature. Just no one uses it AFAIK, and you'll probably confuse anyone if you try.

https://git-scm.com/docs/git-request-pull

[-] hosaka@programming.dev 2 points 4 months ago

You can push mirror your fork back to GitHub when you deem necessary (e.g when it's in a good shape) and create a PR to the parent repo automatically using forgejo runner script, you'd just need to make an API token. If the goal is to automate PRs. If the goal is to not use GitHub for your forks but still continue to make PRs, you can't work around that I think. Unless there's a way to PR a bunch of patch files perhaps?

[-] haui_lemmy@lemmy.giftedmc.com 2 points 4 months ago

Fair enough! Thank you for the heads up. I will try and continue in that direction.

The runners are very exciting but I still need to understand how use them.

this post was submitted on 26 Jun 2024
9 points (100.0% liked)

Forgejo

137 readers
1 users here now

This is a community dedicated to Forgejo.

Useful links:

Rules:

founded 1 year ago
MODERATORS