Commit 84c6bd2
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]>1 parent c644bee commit 84c6bd2
File tree
4 files changed
+834
-18
lines changed- github
- website/docs/r
4 files changed
+834
-18
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
Lines changed: 68 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
41 | 50 | | |
42 | 51 | | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
54 | | - | |
55 | 64 | | |
56 | 65 | | |
57 | | - | |
58 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
59 | 79 | | |
60 | 80 | | |
61 | 81 | | |
| |||
98 | 118 | | |
99 | 119 | | |
100 | 120 | | |
101 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
102 | 126 | | |
103 | 127 | | |
104 | 128 | | |
| |||
110 | 134 | | |
111 | 135 | | |
112 | 136 | | |
| 137 | + | |
113 | 138 | | |
114 | 139 | | |
115 | 140 | | |
| |||
121 | 146 | | |
122 | 147 | | |
123 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
124 | 154 | | |
125 | | - | |
| 155 | + | |
126 | 156 | | |
127 | 157 | | |
128 | 158 | | |
| |||
155 | 185 | | |
156 | 186 | | |
157 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
0 commit comments