Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent error on first pipeline when authoring an orb #834

Open
yaningo opened this issue Feb 1, 2023 · 1 comment
Open

Prevent error on first pipeline when authoring an orb #834

yaningo opened this issue Feb 1, 2023 · 1 comment
Assignees

Comments

@yaningo
Copy link

yaningo commented Feb 1, 2023

What problem does this feature solve?:

When authoring an orb using the CircleCI CLI, the first pipeline doesn't actually run, and shows the message:

Use of setup workflows must be enabled in project settings (Project settings > Advanced -> Dynamic config using setup workflows)

This is expected; the feature needs to be manually enabled. (https://circleci.com/docs/create-an-orb/#8-enable-dynamic-configuration)

Maybe the https://circleci.com/api/v1.1/project/github/orgname/projectname/settings endpoint could be used to programatically enable the setting in question, as part of the orb init process:

curl --request PUT \
  --url https://circleci.com/api/v1.1/project/<vcs>/<org_name>/<project_name>/settings \
  --header "circle-token: <API_token>" \
  --header 'content-type: application/json' \
  --data-raw '{"feature_flags":{"setup-workflows":true}}'
@JulesFaucherre JulesFaucherre self-assigned this May 10, 2023
@JulesFaucherre
Copy link
Contributor

Thank you, that a good suggestion, I put a ticket in our backlog!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants