Configuration¶
landschaft.config.json holds the repositories to watch and every dashboard. The Settings page edits it through the API;
the file is plain JSON you can also edit by hand (it is validated on load and on save):
{
"version": 2,
"repos": ["owner/repo", "owner/other-repo"],
"users": ["@me", "dependabot[bot]", "renovate[bot]"],
"refreshMinutes": 5,
"dashboards": [
{
"type": "inbox",
"id": "in-progress",
"name": "In progress",
"filter": "-label:wait",
"sort": { "by": "updated", "dir": "asc" },
"closedDays": 14,
"groups": [
{ "id": "closed", "name": "Closed", "filter": "is:closed is:pr", "collapsed": true },
{
"id": "ready",
"name": "Ready",
"filter": "(-user:@me OR label:reviewed) is:pr -is:ci:failed -is:conflicting -is:ci:running -is:unanswered -is:draft"
},
{ "id": "heal", "name": "Heal", "filter": "is:pr user:@me" },
{ "id": "failing-job", "name": "Failing job", "filter": "-has:pr is:ci-job" },
{
"id": "identify",
"name": "Identify",
"filter": "user:@me is:issue -is:closed -label:epic -label:L -label:M -label:S -label:feature -label:chore -label:edit -label:bug -is:blocked"
},
{ "id": "broken", "name": "Broken", "filter": "-user:@me OR has:pr", "collapsed": true }
]
},
{
"type": "board",
"id": "planning",
"name": "Planning",
"filter": "user:@me is:issue -label:wait",
"sort": { "by": "updated", "dir": "asc" },
"closedDays": 14,
"swimlanes": [
{ "id": "closed", "name": "Closed", "filter": "is:closed", "collapsed": true },
{ "id": "with-pr", "name": "With PR", "filter": "has:pr -is:closed", "hideBlocked": true },
{
"id": "epics",
"name": "Epics",
"filter": "label:epic -has:pr -is:closed",
"hideBlocked": true,
"fluid": true
},
{
"id": "l",
"name": "L",
"filter": "label:L -has:pr -is:closed",
"hideBlocked": true,
"fluid": true
},
{
"id": "m",
"name": "M",
"filter": "label:M -has:pr -is:closed",
"hideBlocked": true,
"fluid": true
},
{
"id": "s",
"name": "S",
"filter": "label:S -has:pr -is:closed",
"hideBlocked": true,
"fluid": true
}
],
"columns": [
{ "id": "bugs", "name": "Bugs", "filter": "label:bug" },
{ "id": "features", "name": "Features", "filter": "label:feature" },
{ "id": "edits", "name": "Edits", "filter": "label:edit" },
{ "id": "chores", "name": "Chores", "filter": "label:chore" }
]
},
{
"type": "board",
"id": "waiting",
"name": "Waiting",
"filter": "label:wait",
"sort": { "by": "updated", "dir": "asc" },
"closedDays": 14,
"swimlanes": [
{ "id": "closed", "name": "Closed", "filter": "is:closed", "collapsed": true },
{ "id": "everything", "name": "Everything", "filter": "" }
],
"columns": [
{ "id": "pr", "name": "PR", "filter": "is:pr" },
{ "id": "job", "name": "Job", "filter": "is:ci-job" },
{ "id": "issue", "name": "Issue", "filter": "is:issue" }
]
}
]
}
Global¶
The open items in repos that users created or are assigned to form the base set every
dashboard filters.
| Field | Type | Default | Meaning |
|---|---|---|---|
version |
integer | 0 |
Config format; landschaft upgrades older ones on load |
repos |
owner/repo[] |
[] |
Repositories to sync |
users |
(login \| "@me")[] |
[] |
Only items these users created or are assigned to; [] = everyone's |
refreshMinutes |
1–1440 | 5 |
Background sync interval for every repository |
dashboards |
Dashboard[] |
[] |
Boards and inboxes, in tab order |
@me stands for the account behind the token.
Dashboard¶
| Field | Type | Default | Meaning |
|---|---|---|---|
type |
board\|inbox |
board |
The view; see Inbox |
id |
[a-z0-9_-]{1,32} |
required | In the URL (/d/:id); immutable once saved |
name |
string | required | Shown in the header |
filter |
string | "" |
Narrows the base set, e.g. repo:acme/app\|acme/lib user:@me; "" = all of it |
sort |
{ by: created\|updated, dir: asc\|desc } |
{ "by": "updated", "dir": "desc" } |
Default card order; the URL can override it |
closedDays |
0–365 | 0 |
Keeps items closed within this many days; see Closed items |
swimlanes |
Swimlane[], at least one |
required (board) | Rows |
columns |
Column[], at least one |
required (board) | Columns |
groups |
Group[] |
[] (inbox) |
Inbox groups, in order |
swimlanes and columns belong to boards, groups to inboxes; the other fields
to both. Switching the type in Settings keeps the shared fields and starts the rest afresh.
Swimlane and column¶
| Field | Type | Default | Meaning |
|---|---|---|---|
id |
[a-z0-9_-]{1,32} |
required | Unique within its axis; keys the board's cells |
name |
string | required | Header text |
filter |
string | other |
Items this entry takes, in GitHub search syntax; "" = everything, other = what no lane above / column to the right took; omitted = other minus a -(…) for each entry other does not look at |
hideBlocked |
boolean (swimlanes) | false |
Drop issues with an open blocker or parent issue, and show how many it dropped |
collapsed |
boolean (swimlanes) | false |
Start folded to one count per column; the header toggles it on the board until the next page load; a fluid lane has no header and ignores it |
unranked |
boolean (columns) | false |
Stay out of the lowest count a folded lane marks |
fluid |
boolean (swimlanes) | false |
Share a row with the fluid lanes next to it: one list per column, in lane order, each item once at the first lane that shows it; a false lane is solid and keeps its own row |
Inbox group¶
| Field | Type | Default | Meaning |
|---|---|---|---|
id |
[a-z0-9_-]{1,32} |
required | Unique within the inbox |
name |
string | required | Header text |
filter |
string | "" |
Items this group takes, unless an earlier group took them |
collapsed |
boolean | false |
Start folded; the header still shows the count |
A filter combines terms such as label:prio:high, is:pr, is:ci:failed or user:@me; see
Reference for the syntax and every term.
Rules the validator enforces: ids are unique per axis, per inbox and across dashboards, each filter
parses, and a dashboard filter does not use other.
Configs from before filters keep loading: labels, match and kind turn into a filter
(any → label:a|b, all → label:a label:b, kind → is:pr …, no labels → other minus the entries it does not look at), and the next save
writes it.
A dashboard without type, from before inboxes, loads as a board.
Configs from before global repos keep loading too. The global repos and users become the
unions of the dashboards' (users stay empty if any dashboard showed everyone's), the refresh
interval the shortest any dashboard had, and a dashboard narrower than that gets a matching
repo:/user: filter.
Each format change bumps version, and loading upgrades an older config step by step; the
next save writes the result. Version 1 brought failed CI jobs: every dashboard gets a top
Failed CI swimlane with the filter is:ci-job, so the jobs land somewhere. Version 2
renamed is:has-pr to has:pr and rewrites the filters that use it. A config with a
version newer than the running landschaft fails validation.
Files and environment¶
| What | Where |
|---|---|
| Dashboards | ./landschaft.config.json (LANDSCHAFT_CONFIG overrides) |
| Issue cache | ./landschaft.db (LANDSCHAFT_DB overrides), git-ignored |
| Token | GITHUB_TOKEN, else gh auth token |
Paths are relative to the directory the command runs in. Saves go through a temp file and a rename, so a crash never leaves a half-written config.