Skip to content

feat: add issue list --label flag for filtering by label #111

@q-soriarty

Description

@q-soriarty

Problem

`copia-cli issue list --label bug` returns `Error: unknown flag: --label`.

The `gh` CLI supports `--label` on `issue list` to filter issues by label.

Expected behavior

```
$ copia-cli issue list --label bug
#42 Fix sensor mapping open bug
```

Implementation

Add `--label` string slice flag. Pass to Gitea API as `?labels=` query parameter.

Discovered by

gh CLI behavior comparison test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions