GetCommentEventNames returns just the event names from a list of mappings
(mappings []CommentEventMapping)
| 120 | |
| 121 | // GetCommentEventNames returns just the event names from a list of mappings |
| 122 | func GetCommentEventNames(mappings []CommentEventMapping) []string { |
| 123 | names := make([]string, len(mappings)) |
| 124 | for i, mapping := range mappings { |
| 125 | names[i] = mapping.EventName |
| 126 | } |
| 127 | return names |
| 128 | } |
| 129 | |
| 130 | // GetActualGitHubEventName returns the actual GitHub Actions event name for a given identifier |
| 131 | // This maps pull_request_comment to issue_comment since that's the actual event in GitHub Actions |
no outgoing calls