jx step pr labels

list of jx commands

jx step pr labels

List all labels of a given pull-request

Synopsis

Creates environment variables from the labels in a pull request.

Environment variables are prefixed per default with JX PR LABELS. You can use the ‘–prefix’ argument to set a different prefix.

jx step pr labels [flags]

Examples

  # List all labels of a given pull-request
  jx step pr labels
  
  # List all labels of a given pull-request using a custom prefix
  jx step pr --prefix PRL
  
  # List all labels of a given pull-request using a custom pull-request number
  jx step pr --pr PR-34
  jx step pr --pr 34

Options

  -h, --help            help for labels
      --pr string       Git Pull Request number
  -p, --prefix string   Environment variable prefix

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input
      --verbose      Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace

SEE ALSO

Auto generated by spf13/cobra on 2-Sep-2020