https://github.com/andtechstudios/ticket
GitLab issues CLI
https://github.com/andtechstudios/ticket
Last synced: about 1 year ago
JSON representation
GitLab issues CLI
- Host: GitHub
- URL: https://github.com/andtechstudios/ticket
- Owner: andtechstudios
- Created: 2023-04-06T06:03:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-06T00:53:02.000Z (over 2 years ago)
- Last Synced: 2025-02-06T16:58:54.565Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup
## Per-host Setup
1. Create `~/.config/ticket.yml` with the following contents:
```
hosts:
- hostname: gitlab.com
access_token: glpat-xxxxxx
- hostname: gitlab.example.com
access_token: yyyyyy
- hostname: gitlab.example.org
access_token: zzzzzz
```
> Create a personal access token [here](https://gitlab.com/-/profile/personal_access_tokens?scopes=api). Ticket requires at least the `api` scope.
## Per-repository Setup
1. Run `ticket init`. Run the git commands generated by `init`.
# Usage
```shell
# Initialize repository for Ticket
$ ticket init
# Create new issues
$ ticket create
> call saul
# Create issue with description
> call saul: get phone number from jesse
# Create issue with assignee
> call saul @jpinkman
# Create issue with labels
> call saul #feature #backlog
# Assign issue to yourself
$ ticket assign 456 me
# Assign issue to yourself (shorthand)
$ ticket assign 456
# Assign issue to user
$ ticket assign 456 swhite
# Remove assignees from issue
$ ticket unassign 456
# Close issue
$ ticket close 456
# List issues assigned to you
$ ticket list 456
# List issues
$ ticket list 456 -a
```