startswith(str, prefix) returns true if str starts with prefix, and false otherwise.
Signature
Example
Run the full staging pipeline only when the branch is a feature branch:branch starts with feature/.
Notes
- The comparison is case-sensitive. Use
loweron both arguments for a case-insensitive check. - Returns
falsewhenprefixis longer thanstr.