Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for filepath repository rules #3233

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Conversation

grahamhar
Copy link
Contributor

@grahamhar grahamhar commented Aug 11, 2024

Fixes: #3231.

This is an attempt to add support for file_path_restriction in repository rules. It will implement #3231

Copy link

codecov bot commented Aug 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.95%. Comparing base (2b8c7fa) to head (1918bd0).
Report is 96 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3233      +/-   ##
==========================================
- Coverage   97.72%   92.95%   -4.78%     
==========================================
  Files         153      171      +18     
  Lines       13390    11646    -1744     
==========================================
- Hits        13085    10825    -2260     
- Misses        215      727     +512     
- Partials       90       94       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @grahamhar!
Just a couple minor tweaks, please, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.

github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
Co-authored-by: Glenn Lewis <[email protected]>
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @grahamhar!
In the future, please don't force-push in this repo as it makes code reviews more challenging. For this PR it was no big deal, but when the PRs get bigger, it becomes an issue. We always squash-and-merge PRs anyway, so there is no need for a force-push. Thanks.

LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 12, 2024
Copy link
Contributor

@tomfeigin tomfeigin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Aug 19, 2024
@gmlewis
Copy link
Collaborator

gmlewis commented Aug 19, 2024

Thank you, @tomfeigin !
Merging.

@gmlewis gmlewis merged commit 3f44592 into google:master Aug 19, 2024
6 of 7 checks passed
@grahamhar
Copy link
Contributor Author

@gmlewis sorry to trouble you but when is the next release due?

@gmlewis
Copy link
Collaborator

gmlewis commented Aug 20, 2024

@gmlewis sorry to trouble you but when is the next release due?

No troubles. It looks like we are due for a roughly-monthly release so I will try to get this done by tonight (EDT).

@gmlewis
Copy link
Collaborator

gmlewis commented Aug 21, 2024

@gmlewis sorry to trouble you but when is the next release due?

Release completed: https://github.com/google/go-github/releases/tag/v64.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding beta feature for rulesets
3 participants