{{ define "repo/pulls/fragments/runCiButton" }} {{ end }} {{ define "repo/pulls/fragments/triggerCi" }} {{ if .WorkflowsChanged }}
{{ i "triangle-alert" "w-4 h-4 flex-shrink-0" }} Workflow files changed in this round
Expand
{{ $confirm := printf "Workflow files changed in this round (%s). Review before running. Run anyway?" (join .ChangedWorkflowFiles ", ") }} {{ template "repo/pulls/fragments/runCiButton" (dict "RepoInfo" .RepoInfo "Pull" .Pull "Confirm" $confirm) }}
{{ else }}
{{ i "circle-play" "w-4 h-4 flex-shrink-0" }} CI hasn't run on the latest commit {{ template "repo/pulls/fragments/runCiButton" (dict "RepoInfo" .RepoInfo "Pull" .Pull "Confirm" "") }}
{{ end }}
{{ end }}