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
GitHub launched push rules for rulesets to GA recently where you can allow only a certain team or group to push particular paths or files. The API appears to support push rule targets for both Repository and Organisation.
It would be great to be able to support creating and managing these with terraform. This is depends on google/go-github#3274 adding support in the SDK.
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by Omar Butt, Brodie, Robert Slotte, pcassaretto-cmc, Steve Hipwell, TheArtheist, Kieran Lowe, Jim Sheldon, bchen-nydig, Joshua Welsh and 21 more
@akmalharith I was wrong in my original assessment, support for push existed in the SDK but not for 3/4 of the rule types for push rules. I have opened a PR to add them to the SDK then will pick this up once merged and upgraded.
@jimsheldon@stevehipwell I have added the max_file_size restriction to #2415. As I do not have admin access to an organisation with paid features I am uncomfortable adding features I can't test.
Any update on when push restrictions will be added? Specifically looking for the file type restriction, and as of v6.4.0 seems there is still no push support, at least according to the docs.
@adrian-85 I have added this to the PR related #2415 for you, I don't need this feature myself which is why I didn't add it originally. Please upvote the PR to help get it reviewed.
Activity
akmalharith commentedon Sep 27, 2024
Was this ever released #2351?
srgustafson8 commentedon Sep 27, 2024
@akmalharith I was wrong in my original assessment, support for push existed in the SDK but not for 3/4 of the rule types for push rules. I have opened a PR to add them to the SDK then will pick this up once merged and upgraded.
kfcampbell commentedon Sep 27, 2024
@akmalharith FWIW #2351 was released as part of v6.3.0.
TheArtheist commentedon Oct 10, 2024
google/go-github#3274 is part of the version v66.0.0 which is now released. I have created #2419.
kieran-lowe commentedon Oct 21, 2024
Would be awesome to get this merged in!
jimsheldon commentedon Nov 25, 2024
While go-github is now updated to v66.0.0, changes are still required in github/resource_github_organization_ruleset.go and github/resource_github_repository_ruleset.go (at least).
Rules such as
max_file_sizeandfile_path_restrictionneed to be added.There seems to be other work in progress, such as #2415 for
file_path_restriction, but that is for repository rulesets.stevehipwell commentedon Nov 25, 2024
@jimsheldon have you requested this be covered as part of #2415?
grahamhar commentedon Dec 2, 2024
@jimsheldon @stevehipwell I have added the max_file_size restriction to #2415. As I do not have admin access to an organisation with paid features I am uncomfortable adding features I can't test.
adrian-85 commentedon Dec 19, 2024
Any update on when push restrictions will be added? Specifically looking for the file type restriction, and as of v6.4.0 seems there is still no push support, at least according to the docs.
grahamhar commentedon Dec 22, 2024
@adrian-85 I have added this to the PR related #2415 for you, I don't need this feature myself which is why I didn't add it originally. Please upvote the PR to help get it reviewed.
adrian-85 commentedon Jan 6, 2025
I added a thumbs up to your last comment in the PR conversation, is that what you meant by
upvote?arun-i-gilead commentedon Mar 19, 2025
Hi Team any update on this
EricDales commentedon Apr 1, 2025
This is a most wanted feature on our side
Adarsh1999 commentedon May 14, 2025
Hi Team, any update on this feature? It's been a long-awaited feature.
Coalery commentedon Jun 27, 2025
Any updates?