Recently I’ve started to move all my project to Codeberg. This is working great, but one of the things I really missed where the git-push options from GitLab where you can create a PR just by pushing a branch upstream.

Thanks to my whining about this on Mastodon I got this reply about an create-pr-action.

Well, putting this all together, I right now have this script (with little, or no error checking) that does the heavy lifting of creating a PR using Forgejo’s API. This needs an API token with read/write rights on your repo (and only that):