github.com/redhat-appstudio/e2e-tests@v0.0.0-20230619105049-9a422b2094d7/magefiles/types.go (about) 1 package main 2 3 import "github.com/magefile/mage/mg" 4 5 type Local mg.Namespace 6 type CI mg.Namespace 7 8 type OpenshiftJobSpec struct { 9 Refs Refs `json:"refs"` 10 } 11 type Refs struct { 12 RepoLink string `json:"repo_link"` 13 Repo string `json:"repo"` 14 Organization string `json:"org"` 15 Pulls []Pull `json:"pulls"` 16 } 17 18 type Pull struct { 19 Number int `json:"number"` 20 Author string `json:"author"` 21 SHA string `json:"sha"` 22 PRLink string `json:"link"` 23 AuthorLink string `json:"author_link"` 24 } 25 26 type GithubPRInfo struct { 27 Head Head `json:"head"` 28 } 29 30 type Head struct { 31 Label string `json:"label"` 32 } 33 34 type GithubBranch struct { 35 Name string `json:"name"` 36 } 37 38 type PullRequestMetadata struct { 39 Author string 40 Organization string 41 RepoName string 42 BranchName string 43 CommitSHA string 44 Number int 45 RemoteName string 46 } 47 48 type TemplateData struct { 49 SuiteName string 50 TestSpecName string 51 }