levior pr create: open a pull request from the current branch #17

Merged
nhh merged 2 commits from simlau/pr-create into main 2026-10-22 15:08:19 +00:00 AGit
Owner

The levior bot opens it through cli-api (POST /repos///pulls,
for a team's admin and edit roles), so the PR comes from a branch of the
repo and its CI gets the repo secrets. AGit pull requests run like forks,
without them, and there are no personal Forgejo tokens for tea or fj.
Title and body default to the branch's commits; the body notes who opened
it. An open PR for the same branches is returned instead of an error.

The levior bot opens it through cli-api (POST /repos/<team>/<repo>/pulls, for a team's admin and edit roles), so the PR comes from a branch of the repo and its CI gets the repo secrets. AGit pull requests run like forks, without them, and there are no personal Forgejo tokens for tea or fj. Title and body default to the branch's commits; the body notes who opened it. An open PR for the same branches is returned instead of an error.
levior pr create: open a pull request from the current branch
Some checks failed
ci / test (pull_request) Failing after 2s
ci / image-build (pull_request) Successful in 3s
ci / image (pull_request) Has been skipped
ci / release (pull_request) Has been skipped
48b7b7bec8
The levior bot opens it through cli-api (POST /repos/<team>/<repo>/pulls,
for a team's admin and edit roles), so the PR comes from a branch of the
repo and its CI gets the repo secrets. AGit pull requests run like forks,
without them, and there are no personal Forgejo tokens for tea or fj.
Title and body default to the branch's commits; the body notes who opened
it. An open PR for the same branches is returned instead of an error.
levior pr create: the flags of gh pr create
Some checks failed
ci / test (pull_request) Failing after 3s
ci / image (pull_request) Has been skipped
ci / release (pull_request) Has been skipped
ci / image-build (pull_request) Successful in 6s
c8082330b8
-R repo, -t/-b/-F body file (- for stdin), -f fill, -e editor (git's
editor: the title, a blank line, the body), -B base, -H head, -d draft
(a WIP: title, Forgejo's drafts), -w web (the filled-in compare page),
-a assignees, -r reviewers, -l labels by name (the repo's and its team's).
-r is now --reviewer as in gh; the repo moved to -R.
simlau force-pushed simlau/pr-create from c8082330b8
Some checks failed
ci / test (pull_request) Failing after 3s
ci / image (pull_request) Has been skipped
ci / release (pull_request) Has been skipped
ci / image-build (pull_request) Successful in 6s
to 96d7069a1e
All checks were successful
ci / image-build (pull_request) Successful in 3s
ci / test (pull_request) Successful in 59s
ci / image (pull_request) Has been skipped
ci / release (pull_request) Has been skipped
2026-10-22 15:04:48 +00:00
Compare
nhh approved these changes 2026-10-22 15:07:29 +00:00
nhh merged commit c5579f76f9 into main 2026-10-22 15:08:19 +00:00
Sign in to join this conversation.
No reviewers
nhh
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
levior/cli!17
No description provided.