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
Add support for tag-based environment deployment branch policy (#2165)
* Add Type field to DeploymentBranchPolicyRequest struct
The Type field is only necessary when creating a deployment branch
policy. When updating a deployment branch policy, the Type field is not
needed and is therefore set to nil.
Resources:
- https://docs.github.com/en/rest/deployments/branch-policies?apiVersion=2022-11-28
* Change name of branch_pattern argument to pattern for github_repository_environment_deployment_policy resource
* Add type argument to github_repository_environment_deployment_policy resource
* Add tag-based test for github_repository_environment_deployment_policy
* Revert "Add tag-based test for github_repository_environment_deployment_policy"
This reverts commit 88b1369.
* Revert "Add type argument to github_repository_environment_deployment_policy resource"
This reverts commit a534219.
* Revert "Change name of branch_pattern argument to pattern for github_repository_environment_deployment_policy resource"
This reverts commit 029960b.
* Revert "Add Type field to DeploymentBranchPolicyRequest struct"
This reverts commit af308a1.
* Add tag_pattern attribute to github_repository_environment_deployment_policy resource
* Correct typo
See #2050 (comment).
* Remove type parameter from deployment policy update
* Add pattern assertions to existing tests
* Fix pattern read to address existing tag policy test
* Fix update to read the configured pattern
* Force new resource when pattern type changes
* Fix tests by ignoring vulnerability_alerts
---------
Co-authored-by: Peter McEvoy <[email protected]>
Co-authored-by: Keegan Campbell <[email protected]>
Co-authored-by: Nick Floyd <[email protected]>
0 commit comments