Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <git@mcevoypeter.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com> Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
- Loading branch information