isSlashCommandWorkflow checks if a workflow's "on" section contains the slash_command synthetic trigger. slash_command is an input-level event that expands to issue_comment + workflow_dispatch at compile time. Detecting it here allows the concurrency helpers to produce correct results even when they
(on string)
| 165 | // the concurrency helpers to produce correct results even when they are called |
| 166 | // with the pre-rendered "on" YAML (before the event expansion has taken place). |
| 167 | func isSlashCommandWorkflow(on string) bool { |
| 168 | return strings.Contains(on, "slash_command") |
| 169 | } |
| 170 | |
| 171 | // entityConcurrencyKey builds a ${{ ... }} concurrency-group expression for entity-number |
| 172 | // based workflows. primaryParts are the event-number identifiers (e.g., |
no outgoing calls
no test coverage detected