stalecontext/forgejo-cli-plus
2
4
Fork
You've already forked forgejo-cli-plus
1

Add label create/delete/list commands #35

Open
opened 2026年03月30日 22:00:49 +02:00 by stalecontext · 0 comments

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\`.
Sign in to join this conversation.
No Branch/Tag specified
main
feature/issue-batch-2026-07
upstream-sync/2026-07-02
feat/repo-create-org
projects
v2.0.0
upstream-reviewed/2026-07-02
v1.1.0
upstream-reviewed/2026-03-31
v1.0.0
upstream-reviewed/2026-03-16
v0.4.0
v0.3.0
v0.2.0
v0.1.1
v0.1.0
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
stalecontext/forgejo-cli-plus#35
Reference in a new issue
stalecontext/forgejo-cli-plus
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?