SupportsAttachments reports whether an artifact of type artifactType can take --attach files. Attachments go in Markdown, which only generic and plan artifacts hold, so a type gh learns later supports them only once it's added here.
(artifactType string)
| 292 | // artifacts hold, so a type gh learns later supports them only once it's |
| 293 | // added here. |
| 294 | func SupportsAttachments(artifactType string) bool { |
| 295 | switch artifactType { |
| 296 | case client.TypeGeneric, client.TypePlan: |
| 297 | return true |
| 298 | } |
| 299 | return false |
| 300 | } |
| 301 | |
| 302 | // HTTPURL returns value with surrounding whitespace trimmed, and whether it is |
| 303 | // an http(s) URL: an absolute http or https URL with a host, in printable |
no outgoing calls