@ -62,7 +62,7 @@ type WebhookService struct {
// pull_request_review_comment : When a line comment is made on a pull request.
// labels : When any issue or pull request is labeled/unlabeled. Unique to Go-NEB.
// milestones : When any issue or pull request is milestoned/demilestoned. Unique to Go-NEB.
// assign : When any issue or pull request is assigned/unassigned. Unique to Go-NEB.
// assignments : When any issue or pull request is assigned/unassigned. Unique to Go-NEB.
// Most of these events are directly from: https://developer.github.com/webhooks/#events
Events []string
}
@ -135,7 +135,7 @@ func refineEventType(eventType string, action *string) string {
a := *action
if a == "assigned" || a == "unassigned" {
return "assign"
return "assignments"
} else if a == "milestoned" || a == "demilestoned" {
return "milestones"
} else if a == "labeled" || a == "unlabeled" {
@ -1033,7 +1033,7 @@ var ghtests = []struct {
}`,
"[<u>matrix-org/matrix-react-sdk</u>] richvdh assigned <b>pull request #303</b>: Factor out common parts of room creation [open] to dbkr - https://github.com/matrix-org/matrix-react-sdk/pull/303",
"matrix-org/matrix-react-sdk", "assign",
"matrix-org/matrix-react-sdk", "assignments",
},
// ==================================================================
{