Skip to main content
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:
The task runs only when branch starts with feature/.

Notes

  • The comparison is case-sensitive. Use lower on both arguments for a case-insensitive check.
  • Returns false when prefix is longer than str.