Documentation
¶
Index ¶
- Constants
- func AddStatusNode(b bool, desc string, details treeprint.Tree) bool
- func GetPRNumFromActionsCtx(actionCtx *githubactions.GitHubContext) (int, error)
- func IndexMap(m map[string]any, keys ...string) any
- func TestLastNodeStatus(t *testing.T, success bool, details treeprint.Tree) bool
- func TestNodeStatus(t *testing.T, success bool, details treeprint.Tree) bool
- type PRList
- type ReviewState
- type Status
Constants ¶
View Source
const ( // GitHub Actions Event Names. EventIssueComment = "issue_comment" EventPullRequest = "pull_request" EventPullRequestReview = "pull_request_review" EventPullRequestTarget = "pull_request_target" EventWorkflowDispatch = "workflow_dispatch" // Pull Request States. PRStateOpen = "open" PRStateClosed = "closed" )
GitHub API const.
Variables ¶
This section is empty.
Functions ¶
func GetPRNumFromActionsCtx ¶
Retrieve PR number from GitHub Actions context.
func TestLastNodeStatus ¶
Types ¶
type PRList ¶
type PRList []int
Type used to (un)marshal input/output for check and matrix subcommands.
func (PRList) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*PRList) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type ReviewState ¶
type ReviewState string
ReviewState is the state of a PR review. See: https://docs.github.com/en/graphql/reference/enums#pullrequestreviewstate
const ( ReviewStateApproved ReviewState = "APPROVED" ReviewStateChangesRequested ReviewState = "CHANGES_REQUESTED" ReviewStateCommented ReviewState = "COMMENTED" )
Possible values of ReviewState.
func (ReviewState) Valid ¶
func (r ReviewState) Valid() bool
Valid determines whether the ReviewState is one of the known ReviewStates.
Click to show internal directories.
Click to hide internal directories.