This initializes a very simple AGit helper script. Usage: ``` agit create ``` or ``` agit c ``` To create a new AGit Pr. Integrate Pulling from an AGit remote. Gitea doesn't expose an AGit endpoint in the api, or the `tea` cli. This makes pulling not feasible, since there is no robust way to query the AGit topic, which is the ref that need to be pulled. One possible solution currently could be scraping the gitea instructions for forking a pull request on an AGit PR.
38 lines
756 B
Markdown
38 lines
756 B
Markdown
# agit
|
|
|
|
A helper script for the AGit workflow with a gitea instance.
|
|
|
|
<!-- `$ agit --help` -->
|
|
|
|
```
|
|
usage: agit [-h] {create,c} ...
|
|
|
|
AGit utility for creating and pulling PRs
|
|
|
|
positional arguments:
|
|
{create,c} Commands
|
|
create (c) Create an AGit PR
|
|
|
|
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
|
|
Will create an AGit Pr with the latest commit message title as it's topic.
|
|
|
|
$ agit create --topic "my-feature"
|
|
Set a custom topic.
|
|
|
|
$ agit create --force
|
|
Force push to a certain topic
|
|
|
|
```
|
|
|
|
References:
|
|
- https://docs.gitea.com/usage/agit
|
|
- https://git-repo.info/en/2020/03/agit-flow-and-git-repo/
|