kelvintaywl / terraform-provider-circleci

(Unofficial) Terraform Provider for CircleCI
https://registry.terraform.io/providers/kelvintaywl/circleci/latest
Mozilla Public License 2.0
12 stars 3 forks source link

Support expression restriction for contexts #62

Open kelvintaywl opened 6 months ago

kelvintaywl commented 6 months ago

CircleCI just released expression-based restrictions on org contexts. https://circleci.com/docs/contexts/#set-an-expression-restriction

The documented API suggests this can be CRUD-able and thus suitable for Terraform support.

it would be good to support this, perhaps as a new resource, say context_restriction

AxelRobles commented 5 months ago

What about context project restrictions? Is possible to implement them? https://circleci.com/docs/api/v2/index.html#operation/createContextRestriction

kelvintaywl commented 4 months ago

hey @AxelRobles yes sure! i think we can also support project restrictions; I would like to support both if I work on this :)

AxelRobles commented 3 months ago

@kelvintaywl can I work on the project restrictions? and maybe later I can work on the expression restriction.

kelvintaywl commented 2 months ago

@AxelRobles sorry for the late reply. Were you able to start on this? Were there blockers? let me know, and I'm happy to help :)