2020-09-17 18:25:09 +02:00
# Sip
2020-02-17 06:28:11 +01:00
CLI for interacting with Gitea
2020-02-18 16:51:10 +01:00
[![Build Status ](https://drone.gitea.com/api/badges/jolheiser/sip/status.svg )](https://drone.gitea.com/jolheiser/sip)
2020-09-17 18:25:09 +02:00
[Docs ](docs.md )
2020-02-17 06:28:11 +01:00
### Features
Understands the concepts of an origin vs remote repository.
2020-09-17 18:25:09 +02:00
By default, uses remotes `origin` and `upstream` .
2020-02-17 06:28:11 +01:00
If no `upstream` repository is found, `upstream` becomes synonymous with `origin` for the sake of defaults.
2020-02-17 21:50:02 +01:00
* Configuration `sip config`
* Change the default `origin` remote name `sip config origin`
* Change the default `upstream` remote name `sip config upstrea`
2020-02-18 03:57:51 +01:00
* Tokens `sip tokens`
* List current available access tokens
* Generate a new token from CLI `sip token create <token>`
* If `<token>` is present, add new access token, otherwise...
2020-02-17 06:28:11 +01:00
* Authenticate with username/password to get a new token without leaving the terminal
2020-02-18 03:57:51 +01:00
* Remove access tokens `sip tokens remove`
2020-02-17 21:50:02 +01:00
* Repository status `sip repo`
2020-02-17 06:28:11 +01:00
* Get basic information about the `upstream` repository
2020-02-17 21:50:02 +01:00
* Issue search `sip issues`
2020-02-17 06:28:11 +01:00
* Search issues based on keyword(s)
2020-02-17 21:50:02 +01:00
* Create a new issue `sip issues create`
* Pull request search `sip pulls`
2020-02-17 06:28:11 +01:00
* Search pull requests based on keyword(s)
2020-02-17 21:50:02 +01:00
* Create a new pull request `sip pulls create`
* Check pull request status (default based on current branch) `sip pulls status`
2020-02-27 05:58:02 +01:00
* Checkout a pull request to test locally `sip pulls checkout`
2020-09-17 18:25:09 +02:00
* Release search `sip release`
* Create a new release `sip release create`
* Attach files to an existing release `sip release attach`
* Open item in a web browser
* Repository `sip open` or `sip open owner/repo`
* Issue or PR `sip open 1234` or `sip open owner/repo/1234`
2020-02-27 05:58:02 +01:00
### Search filters
Sip supports certain search filters for issues/PRs.
Anything in the query that doesn't match one of the below filters will be sent as a keyword
* State `is:open is:closed is:merged` - only the last state in the query will be applied
* Author `author:jolheiser` - only the last author in the query will be applied
* Labels `label:bug label:feature` - all labels must apply to return results
* Milestone `mileston:v1.0.0` - only the last milestone in the query will be applied
2020-09-17 18:25:09 +02:00
e.g. `test is:open query author:jolheiser milestone:0.2.0` will search for issues/PRs with keywords `test query` that are `open` , authored by `jolheiser` , and in the `0.2.0` milestone.
## License
[MIT ](LICENSE )