-
Notifications
You must be signed in to change notification settings - Fork 948
[FEAT]: github_repository_ruleset to support push target #2714
Copy link
Copy link
Closed
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: FeatureNew feature or requestNew feature or request
Description
Describe the need
github_repository_ruleset to gain support for target = "push" so that push controls can be added.
This would also imply rule support for file_path_restriction, max_file_path_length, file_extension_restriction and max_file_size. The push rules don't support the normal branch and tag rules, and vice-versa.
One can use https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28#get-a-repository-ruleset on a web created push based target ruleset for an easier view of the data structure.
SDK Version
No response
API Version
2022-11-28
Relevant log output
│ Error: expected target to be one of ["branch" "tag"], got push
│
│ with github_repository_ruleset.controls,
│ on repository.tf line 81, in resource "github_repository_ruleset" "controls":
│ 81: target = "push"Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: FeatureNew feature or requestNew feature or request
Type
Projects
Status
✅ Done
Status
Done