Feature Request
Add top-level commands for managing repository labels.
Current state
Labels can only be added/removed from issues via `fj issue edit labels --add/--rm`, but there's no way to create, delete, or list labels themselves. If a label doesn't exist yet, you have to use the API or web UI to create it first.
Proposed commands
```
fj label list # list all labels on the repo
fj label create --color # create a new label
fj label delete # delete a label
fj label edit # edit name/color/description
```
API endpoints
These are all available in the Forgejo REST API:
- `GET /repos/{owner}/{repo}/labels` - list labels
- `POST /repos/{owner}/{repo}/labels` - create label (name, color, description)
- `DELETE /repos/{owner}/{repo}/labels/{id}` - delete label
- `PATCH /repos/{owner}/{repo}/labels/{id}` - edit label
Org-level label equivalents also exist under `/orgs/{org}/labels`.
## Feature Request
Add top-level commands for managing repository labels.
### Current state
Labels can only be added/removed from issues via \`fj issue edit <id> labels --add/--rm\`, but there's no way to create, delete, or list labels themselves. If a label doesn't exist yet, you have to use the API or web UI to create it first.
### Proposed commands
\`\`\`
fj label list # list all labels on the repo
fj label create <name> --color <hex> # create a new label
fj label delete <name> # delete a label
fj label edit <name> # edit name/color/description
\`\`\`
### API endpoints
These are all available in the Forgejo REST API:
- \`GET /repos/{owner}/{repo}/labels\` - list labels
- \`POST /repos/{owner}/{repo}/labels\` - create label (name, color, description)
- \`DELETE /repos/{owner}/{repo}/labels/{id}\` - delete label
- \`PATCH /repos/{owner}/{repo}/labels/{id}\` - edit label
Org-level label equivalents also exist under \`/orgs/{org}/labels\`.