You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short: "Create a new trigger for a CircleCI project.",
22
22
Long: `Create a new trigger for a CircleCI project.
23
-
All flags are optional - if not provided, you will be prompted interactively for the required values:
24
-
--pipeline-definition-id Pipeline definition ID you wish to create a trigger for (required)
25
-
--name Name of the trigger (required)
26
-
--description Description of the trigger (will not prompt if omitted)
27
-
--repo-id GitHub repository ID you wish to create a trigger for (required)
28
-
--event-preset The name of the event preset to use when filtering events for this trigger (will not prompt if omitted)
29
-
--checkout-ref Git ref (branch, or tag for example) to check out code for pipeline runs (only required if different repository, will not prompt if omitted)
30
-
--config-ref Git ref (branch, or tag for example) to fetch config for pipeline runs (only required if different repository, will not prompt if omitted)
31
-
To api/v2 documentation for creating a trigger, see: https://circleci.com/docs/api/v2/index.html#tag/Trigger/operation/createTrigger
23
+
24
+
All flags are optional - if not provided, you will be prompted interactively for
25
+
the required values:
26
+
27
+
--pipeline-definition-id Pipeline definition ID you wish to create a trigger for
28
+
(required)
29
+
--name Name of the trigger (required)
30
+
--description Description of the trigger (will not prompt if omitted)
31
+
--repo-id GitHub repository ID you wish to create a trigger for
32
+
(required)
33
+
--event-preset The name of the event preset to use when filtering events
34
+
for this trigger (will not prompt if omitted)
35
+
--checkout-ref Git ref (branch, or tag for example) to check out code
36
+
for pipeline runs (only required if different repository,
37
+
will not prompt if omitted)
38
+
--config-ref Git ref (branch, or tag for example) to fetch config for
39
+
pipeline runs (only required if different repository,
40
+
will not prompt if omitted)
41
+
42
+
To api/v2 documentation for creating a trigger, see:
Note: This is only supporting pipeline definitions created with GitHub App provider. You will need our GitHub App installed in your repository.
40
-
Note: To get the repository id you can use https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository
41
-
Note: To get the pipeline definition id you can visit the Pipelines tab in project settings: https://app.circleci.com/settings/project/circleci/<org>/<project>/configurations
42
-
Note: --config_ref and --checkout_ref flags are only required if your config source or checkout source exist in a different repo to your trigger repo
checkoutRefPrompt:="Your pipeline repo and checkout source repo are different. Enter the branch or tag to use when checking out code for pipeline runs"
0 commit comments