jx gitops pr label
Add label to the pull request
Usage
jx gitops pr label
Synopsis
Adds a label to the current pull request
Examples
# add label
jx-gitops pr label -n mylabel
# add label if there exists a matching label with the regex
jx-gitops pr label -n mylabel --matches "env/.*"
Options
-b, --batch-mode Runs in batch mode without prompting for user input
--branch string specifies the branch if not inside a git clone
--dir string the directory to search for the .git to discover the git source URL (default ".")
--git-kind string the kind of git server to connect to
--git-server string the git server URL to create the git provider client. If not specified its defaulted from the current source URL
--git-token string the git token used to operate on the git repository
-h, --help help for label
--ignore-no-pr if an error is returned finding the Pull Request (maybe due to missing environment variables to find the PULL_NUMBER) just push to the current branch instead
--log-level string Sets the logging level. If not specified defaults to $JX_LOG_LEVEL
-m, --matches string only label the Pull Request if there is already a label which matches the regular expression
-n, --name string name of the label to add
--pr int the Pull Request number. If not specified we detect it via $PULL_NUMBER or $BRANCH_NAME environment variables
-r, --repo string the full git repository name of the form 'owner/name'
--source-url string the git source URL of the repository
--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
Source
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified April 20, 2021: chore: regenerated plugin docs (412f8f1671)