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

Function isSlashCommandWorkflow

pkg/workflow/concurrency.go:167–169  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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).
167func 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.,

Callers 2

hasSpecialTriggersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected