jx gitops condition

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 equivalant 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

Auto generated by spf13/cobra on 9-Apr-2021


Last modified April 9, 2021: chore: regenerated plugin docs (70b8c8b237)