We would like to announce that Gentoo now has a presence on Codeberg
and contributions can be submitted for the mirror at
https://codeberg.org/gentoo/gentoo, as an alternative to GitHub.

If you wish to submit pull requests on Codeberg, it is recommended to
use the AGit approach [1] as it's more space efficient and doesn't
require you to maintain a fork of gentoo.git on your own Codeberg
profile. To set it up, clone the upstream URL and check out a branch
locally:

    git clone [email protected]:repo/gentoo.git
    cd gentoo
    git remote add codeberg ssh://[email protected]/gentoo/gentoo
    git checkout -b my-new-fixes

Once you're ready to create your PR:

    git push codeberg HEAD:refs/for/master -o topic="$title"

and the PR should be created automatically. To push additional
commits, repeat the above command - be sure that the same topic is
used. If you wish to force-push updates (because you're amending
commits), add "-o force-push=true" to the above command. See [2].

Beyond AGit, Codeberg PRs can also be marked as "manually-merged" - for
this to work, developers merging PRs should use "Merges: " as the Git
commit trailer instead of "Closes: ", then a Git post-recv hook will
take care of marking the PR correctly (manually) merged. This is a
feature not offered by GitHub at all. Developers can use
app-portage/pram to merge Codeberg PRs and it'll automatically opt for
the "Merges: " trailer when the PR being applied is pulled from
Codeberg.

Thanks to everyone who has helped make this move possible!

[1] https://forgejo.org/docs/latest/user/agit-support/
[2] https://wiki.gentoo.org/wiki/Project:Codeberg/Pull_requests

Reply via email to