defaultIntStr returns a pointer to the string representation of n. Used to set default values for templatable integer fields when the field is nil.
(n int)
| 325 | // defaultIntStr returns a pointer to the string representation of n. |
| 326 | // Used to set default values for templatable integer fields when the field is nil. |
| 327 | func defaultIntStr(n int) *string { |
| 328 | s := strconv.Itoa(n) |
| 329 | return &s |
| 330 | } |
| 331 | |
| 332 | // templatableIntValue parses a *string templatable integer value to int. |
| 333 | // Returns 0 if value is nil or is a GitHub Actions expression (not evaluable at compile time). |
no outgoing calls