1.2 KiB
1.2 KiB
agit
A helper script for the AGit workflow with a gitea instance.
usage: agit [-h] {create,c,list,l} ...
AGit utility for creating and pulling PRs
positional arguments:
{create,c,list,l} Commands
create (c) Create an AGit PR
list (l) List open AGit pull requests
options:
-h, --help show this help message and exit
The defaults that are assumed are:
TARGET_REMOTE_REPOSITORY = origin
DEFAULT_TARGET_BRANCH = main
Examples:
$ agit create
Opens editor to compose PR title and description (first line is title, rest is body)
$ agit create --auto
Creates PR using latest commit message automatically
$ agit create --topic "my-feature"
Set a custom topic.
$ agit create --force
Force push to a certain topic
$ agit list
Lists all open pull requests for the current repository
References:
How to fetch AGit PR's
For a hypothetical PR with the number #4077:
git fetch origin pull/4077/head:your-favorite-name
Replace your-favorite-name with your preferred branch name.
You can push back to the PR with with:
agit create --topic="The topic of the open PR"