Documentation
¶
Overview ¶
Package ghsourcetest holds the GitHub plugin's synthetic rows: one per situation kind, viewer's or others' pull request, in or out of scope, muted or not, each derived by prrow's real deriver.
Index ¶
- Constants
- Variables
- func Derive(s Situation) api.Row
- func DeriveReport(s Situation) (api.Row, prrow.Report)
- func Event(n int, kind, actor string, at time.Time, data string) dinv.Event
- func Open(n int, author string) dinv.PR
- func Ref(n int) pr.Ref
- func ReportOf(row api.Row) (prrow.Report, bool)
- func Rows() []api.Row
- type Case
- type Situation
Constants ¶
const ( Viewer = "octocat" Other = "alice" Reviewer = "bob" Team = "acme/core" )
Variables ¶
var Now = time.Date(2026, 10, 22, 15, 0, 0, 0, time.UTC)
Now is the instant every row is derived at.
var ReviewWorkspace = dinv.Workspace{ID: "ws-r", DisplayName: "review", Status: "in-review", IsReview: true}
ReviewWorkspace is a review workspace of the loop.
Functions ¶
func DeriveReport ¶ added in v0.3.0
DeriveReport is s's row and the plugin's report it derives from.