feat: clear unneccessary backend from kanban
runner nix smoke / nix label and flake smoke (push) Failing after 35s
runner nix smoke / nix label and flake smoke (push) Failing after 35s
This commit is contained in:
@@ -1,33 +1,25 @@
|
||||
# gitea-kanban-tui
|
||||
|
||||
Keyboard-driven Kanban board for the custom Gitea fork. Native repository
|
||||
Projects are supported alongside the legacy repository-label backend. Backend
|
||||
selection is explicit; API failures never trigger a silent fallback.
|
||||
Keyboard-driven Kanban board for native repository Projects in custom Gitea fork.
|
||||
|
||||
## Configuration
|
||||
|
||||
Create repository labels such as `kanban/01 Todo`, `kanban/02 Doing`, and
|
||||
`kanban/03 Done`. Column suffixes are sorted lexically, so numeric prefixes
|
||||
provide explicit ordering.
|
||||
|
||||
Required configuration can come from flags or environment variables:
|
||||
|
||||
| Flag | Environment | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `--url` | `GITEA_URL` | Gitea base URL |
|
||||
| `--token-file` | `GITEA_TOKEN_FILE` | File containing API token |
|
||||
| `--backend` | `GITEA_KANBAN_BACKEND` | Required: `projects` or `labels` |
|
||||
| — | `GITEA_TOKEN` | API token fallback when no token file is configured |
|
||||
| `--project` | `GITEA_PROJECT` | Exact native project name |
|
||||
| `--project-id` | `GITEA_PROJECT_ID` | Native project ID instead of name |
|
||||
| positional `OWNER` | `GITEA_OWNER` | Repository owner |
|
||||
| positional `REPO` | `GITEA_REPO` | Repository name |
|
||||
| `--label-prefix` | `GITEA_LABEL_PREFIX` | Column prefix; default `kanban/` |
|
||||
|
||||
Native mode requires an enabled repository Projects unit, project read/write
|
||||
repository permission, and a token with `read:issue`/`write:issue` scope. Issue
|
||||
creation/editing follows Gitea issue permissions; deletion requires repository
|
||||
admin permission in this fork. Label mode requires repository issue read/write
|
||||
permission. Token values are sent
|
||||
admin permission in this fork. Token values are sent
|
||||
only through Gitea's `Authorization` header and are never printed. Token-file
|
||||
input takes precedence over environment variables. Remote URLs must use HTTPS; plain HTTP is
|
||||
accepted only for loopback development.
|
||||
@@ -36,7 +28,7 @@ accepted only for loopback development.
|
||||
export GITEA_URL=https://gitea.hectic-lab.com
|
||||
export GITEA_TOKEN_FILE="$HOME/.config/gitea/token"
|
||||
cargo run --manifest-path package/gitea-kanban-tui/Cargo.toml -- \
|
||||
--backend projects --project Kanban yukkop util.nix
|
||||
--project Kanban yukkop util.nix
|
||||
```
|
||||
|
||||
Alternatively:
|
||||
@@ -44,14 +36,14 @@ Alternatively:
|
||||
```sh
|
||||
nix develop .#ratatui
|
||||
cargo run --manifest-path package/gitea-kanban-tui/Cargo.toml -- \
|
||||
--backend projects --project-id 1 owner repo
|
||||
--project-id 1 owner repo
|
||||
```
|
||||
|
||||
## Keys
|
||||
|
||||
- Arrow keys or `h`/`j`/`k`/`l`: focus column/card
|
||||
- `H`/`L`: move focused card left/right
|
||||
- `r`: refresh labels and open issues
|
||||
- `r`: refresh project columns and issues
|
||||
- `?`: toggle help
|
||||
- `q`: quit
|
||||
|
||||
@@ -65,17 +57,6 @@ focused issue title/body, and `d` deletes it after confirmation. In the editor,
|
||||
`Esc` cancels. Closed projects, archived repositories, disabled Projects units,
|
||||
unassigned issues, and cross-repository IDs are rejected by the server.
|
||||
|
||||
Explicit fallback command:
|
||||
|
||||
```sh
|
||||
cargo run --manifest-path package/gitea-kanban-tui/Cargo.toml -- \
|
||||
--backend labels --label-prefix kanban/ owner repo
|
||||
```
|
||||
|
||||
In label mode, moving a card replaces its issue labels: all labels matching the configured
|
||||
column prefix are removed, the target column label is added, and non-column
|
||||
labels are preserved. The client uses only repository label and issue REST
|
||||
endpoints under `/api/v1`.
|
||||
|
||||
## Development
|
||||
|
||||
|
||||
Reference in New Issue
Block a user