-
Notifications
You must be signed in to change notification settings - Fork 83
/
actions.go
37 lines (32 loc) · 1.09 KB
/
actions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2018 The WPT Dashboard Project. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package summaries
import "github.com/google/go-github/v47/github"
// RecomputeAction is an action that can be taken to
// trigger a recompute of the diff, against the latest
// master run's results.
func RecomputeAction() *github.CheckRunAction {
return &github.CheckRunAction{
Identifier: "recompute",
Label: "Recompute",
Description: "Recompute with the latest available runs",
}
}
// IgnoreAction is an action that can be taken to ignore a fail
// outcome, marking it as passing.
func IgnoreAction() *github.CheckRunAction {
return &github.CheckRunAction{
Identifier: "ignore",
Label: "Ignore",
Description: "Mark results as expected (passing)",
}
}
// CancelAction is an action that can be taken to cancel a pending check run.
func CancelAction() *github.CheckRunAction {
return &github.CheckRunAction{
Identifier: "cancel",
Label: "Cancel",
Description: "Cancel this pending check run",
}
}