Skip to main content

Module discussion

Module discussion 

Source
Expand description

Discussions: working notes on one task or pull request (its plan, choices, changes after review, questions), kept apart from the ledger and never reviewed.

Structs§

CloseRequest
POST /api/v1/discussion/close: close a discussion by hand.
Closed
How a discussion closed: stored once as closed.json; a closed discussion takes no posts.
Discussion
A discussion: one task or pull request in one repository, keyed by its ticket or branch.
DiscussionQuery
GET /api/v1/discussion: every filter is optional; q matches titles and posts.
OpenDiscussion
POST /api/v1/discussion: open one, or get the open one for the same repository and ticket or branch.
Opened
The discussion opened, or the open one that already covers the ticket or branch.
Post
One post: what was planned, chosen, changed or asked, and by whom.
PostRequest
POST /api/v1/discussion/post: a post to a discussion.
Posted
The new post’s id.
Summary
A discussion without its posts, as GET /api/v1/discussion lists it.
Transcript
A discussion with its posts.

Enums§

CloseReason
Why a discussion closed.
PostKind
What a post is: shown as its label.

Functions§

find_open
The open discussion for repo and this ticket or branch.
list_markdown
Discussions as a list, newest activity first.
markdown
A discussion with every post, quoted and attributed.
mention
The section why and preflight add for open discussions on the code; empty when there are none.
search
Discussions matching every filter q gives; q.q is found in titles and posts, in any case.
touching
Open discussions with a post about one of the symbols ids.