nctl create pull-request
nctl create pull-request
Create policyexceptionrequests made in Nirmata Control Hub (NCH)
Synopsis
Create policyexceptionrequests made in Nirmata Control Hub (NCH).
The PER repository URL configured in NCH is parsed into owner, repository and folder:
GitHub / Bitbucket / GitLab: https://<host>/<owner>/<repo>[.git][/<folder>...]
Azure DevOps: https://dev.azure.com/<org>/<project>/_git/<repo>[/<folder>...]
https://<org>.visualstudio.com/<project>/_git/<repo>[/<folder>...]
For GitLab projects under subgroups (–provider gitlab), use one of the unambiguous forms:
https://<host>/<group>/<subgroup>/.../<project>.git[/<folder>...]
https://<host>/<group>/<subgroup>/.../<project>/-/tree/<branch>/<folder>...
A plain https://<host>/<group>/<a>/<b> URL is read as project <group>/<a> with folder <b>.
In the /-/tree/ form the branch must match the PER base branch (it may contain “/”).
Note: When Create PRs/MRs automatically is turned on in NCH (Settings > Policy Exceptions > Deployment), NCH opens the pull or merge request itself. From nctl v4.10.33, this command then prints the message returned by NCH and exits with status 0 without creating a PR. See Git Integration (Automatic PRs/MRs).
nctl create pull-request [flags]
Examples
# Basic pull-request command
nctl create pull-request
# Specify PER name
nctl create pull-request --per-name your-per-name
# Specify VCS provider
nctl create pull-request --provider github
# Specify both PER name and VCS provider
nctl create pull-request --per-name your-per-name --provider github
Options
-h, --help help for pull-request
--insecure allow connection to a Nirmata server with a insecure certificate (not recommended)
--per-name string Name of PER to be considered
-p, --provider string Name of VCS provider to create PER (default "github")
--token string the Nirmata API Login Key (env NIRMATA_TOKEN)
--url string the Nirmata server base URL (env NIRMATA_URL)
Options inherited from parent commands
-v, --v Level number for the log level verbosity
SEE ALSO
- nctl create - Create policyexceptionrequests
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.