MCPcopy Create free account
hub / github.com/github/gh-aw / isValidReaction

Function isValidReaction

pkg/workflow/reactions.go:26–28  ·  view source on GitHub ↗

isValidReaction checks if a reaction value is valid according to the schema

(reaction string)

Source from the content-addressed store, hash-verified

24
25// isValidReaction checks if a reaction value is valid according to the schema
26func isValidReaction(reaction string) bool {
27 return validReactions[reaction]
28}
29
30// getValidReactions returns the list of valid reaction entries
31func getValidReactions() []string {

Callers 3

TestIsValidReactionFunction · 0.85
TestGetValidReactionsFunction · 0.85
parseOnSectionMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestIsValidReactionFunction · 0.68
TestGetValidReactionsFunction · 0.68