IssueBoard
MMO\git\helpers · 1 symbol · generated 5 Oct 2026
IssueBoard
IssueBoard.php:44A repository's GitHub issues seen as the data of a kanban board (mmo.client's <mmo-kanban>), and the changes made on the board written back to the issues.
- Namespace
MMO\git\helpers- Extends
- aBoard
Index
| META | the name of the comment holding what GitHub has no field for | |
| STATUSES | the statuses a board starts with: mmo-kanban's own | |
| api | ||
| closedLimit | ||
| defaultStatus | ||
| repository | ||
| statuses | ||
| statusPrefix | ||
| diff($old, $new) | ||
| discussion($ticketId) | ||
| getRepository() | ||
| getTitle() | ||
| getUrl() | ||
| keepsColor($kind) | a label's colour and a status's (its label's) are GitHub's | |
| load() | Read the repository's issues as a board's data. | |
| save($before, $after) | Write to GitHub what changed on the board. | |
| saveColors($before, $after) | Give the labels, and the labels the statuses are, the colours the board gave them; a status whose label does not exist yet gets one. | |
| splitBody($body) | ||
| statusOf($label) | ||
| toFields($ticket, $statuses) | ||
| toTicket($issue, $statuses) | ||
| __construct($api, $repository) |
Constants2
META
the name of the comment holding what GitHub has no field for
STATUSES
the statuses a board starts with: mmo-kanban's own
Properties6
api
- Type
- GitHubAPI
closedLimit
- Type
- int
defaultStatus
- Type
- string
repository
statuses
- Type
- array
statusPrefix
- Type
- string
Methods14
diff($old, $new)
IssueBoard.php:339discussion($ticketId)
IssueBoard.php:210| $ticketId | string | |
| returns | null | IssueDiscussion | the issue's comments; null for an id that is not an issue's number |
getRepository()
IssueBoard.php:77| returns | string | owner/name |
getTitle()
IssueBoard.php:82| returns | string | owner/name issues |
getUrl()
IssueBoard.php:86| returns | string |
keepsColor($kind)
IssueBoard.php:273a label's colour and a status's (its label's) are GitHub's
load()
IssueBoard.php:97Read the repository's issues as a board's data.
| returns | array | array, labels: array, categories: array, tickets: array} |
| throws | when GitHub refuses (no access, rate limit...) |
save($before, $after)
IssueBoard.php:223Write to GitHub what changed on the board.
saveColors($before, $after)
IssueBoard.php:284Give the labels, and the labels the statuses are, the colours the board gave them; a status whose label does not exist yet gets one.
splitBody($body)
IssueBoard.php:198statusOf($label)
IssueBoard.php:190toFields($ticket, $statuses)
IssueBoard.php:309toTicket($issue, $statuses)
IssueBoard.php:145__construct($api, $repository)
IssueBoard.php:73Inherited members (8)
| Constants | Declared by | Description | |
|---|---|---|---|
COLORS | aBoard | the colours mmo-kanban names, as GitHub's label colours: a colour read from GitHub is named when it is one |