Documentation
¶
Index ¶
Constants ¶
View Source
const PayloadType = "github.issue"
PayloadType is the event type that the On Issue trigger emits.
Variables ¶
This section is empty.
Functions ¶
func HasActiveWorkOrder ¶
HasActiveWorkOrder reports whether this factory has a task for the issue that is not closed. A closed task does not count, so a reopened issue can create a new task.
func LockWorkOrder ¶
LockWorkOrder serializes work-order creation for one issue in this factory. GitHub sends one webhook for each added label, so two runs for the same issue can arrive together. The lock is held until tx commits.
Types ¶
type Ref ¶
Ref identifies one GitHub issue by its page URL.
func RefFromEventData ¶
RefFromEventData reads the issue from a canvas root event envelope:
{ "type": "github.issue", "data": { "issue": { "html_url": "https://github.com/acme/app/issues/12" } } }
func RefFromURL ¶
RefFromURL reads the issue from a page URL with the path /{owner}/{repo}/issues/{number}.
Click to show internal directories.
Click to hide internal directories.