-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.go
More file actions
42 lines (34 loc) · 1.18 KB
/
types.go
File metadata and controls
42 lines (34 loc) · 1.18 KB
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
38
39
40
41
42
package plugin
import "github.com/google/go-github/github"
// PluginSpec represents the `plugin` block of an Argo Workflows template.
type PluginSpec struct {
GitHub *ActionSpec `json:"github,omitempty"`
}
type ActionSpec struct {
Issue *IssueActionSpec `json:"issue,omitempty"`
Check *CheckActionSpec `json:"check,omitempty"`
Timeout string `json:"timeout,omitempty"`
}
type IssueActionSpec struct {
Comment *IssueCommentAction `json:"comment,omitempty"`
Create *IssueCreateAction `json:"create,omitempty"`
}
type IssueCommentAction struct {
Body string `json:"body,omitempty"`
Owner string `json:"owner,omitempty"`
Repo string `json:"repo,omitempty"`
Number string `json:"number,omitempty"`
}
type IssueCreateAction struct {
Owner string `json:"owner,omitempty"`
Repo string `json:"repo,omitempty"`
Request *github.IssueRequest `json:"-"`
}
type CheckCreateAction struct {
Owner string `json:"owner,omitempty"`
Repo string `json:"repo,omitempty"`
Request github.CreateCheckRunOptions `json:"-"`
}
type CheckActionSpec struct {
Create CheckCreateAction `json:"create,omitempty"`
}