Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.2 KB

jx-gitops_condition.md

File metadata and controls

39 lines (25 loc) · 1.2 KB

jx-gitops condition

Runs a command if the condition is true

Usage

jx-gitops condition [flags] command arguments...

Synopsis

Runs a command if the condition is true

Examples

runs a command if the last commit messsage has a given prefix

jx-gitops condition --last-commit-msg-prefix 'Merge pull request' -- make all commit push

you can use ! in front of a filter to be the equivalent of not matching the condition. e.g.

runs a command if the last commit message does not have a given prefix

jx-gitops condition --last-commit-msg-prefix '!Merge pull request' -- make all commit push

Options

  -d, --dir string                        the directory to run the git push command from
  -h, --help                              help for condition
      --last-commit-msg-contains string   matches if last-commit-msg contains the given text
      --last-commit-msg-prefix string     matches if last-commit-msg has the given prefix
      --last-commit-msg-suffix string     matches if last-commit-msg has the given suffix

SEE ALSO

  • jx-gitops - commands for working with GitOps based git repositories
Auto generated by spf13/cobra on 5-Oct-2022