Add Forgejo support alongside GitHub for PR checks #1
Loading…
Reference in a new issue
No description provided.
Delete branch "forgejo-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
prch can now read PRs and CI checks from Forgejo as well as GitHub. It picks the forge from the
originremote's host.main.go
repoFromGitwithforgeFromGitandparseRemote. These read the origin URL withgit remote get-urland support ssh, scp-style, and https remotes on any host.forgestruct that holds the API base, web base, token, owner, and repo.github.comuses the GitHub API. Every other host useshttps://<host>/api/v1.forgejoToken. It checksFORGEJO_TOKEN, thenGITEA_TOKEN, then the token thatfj auth loginsaved inforgejo-cli/keys.json.ghGetwithforge.getand the sharedrepoPathhelper. All fetch functions now take aforgeinstead of token/owner/repo./statusendpoint, which already returns only the newest status per context, sodedupeStatusesis removed.statusfield.REQUEST_CHANGESas a changes-requested review.limitquery param to list endpoints to set Forgejo's page size.README.md
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.