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

Implement rulesets #2795

Merged
merged 39 commits into from Jun 17, 2023
Merged

Implement rulesets #2795

merged 39 commits into from Jun 17, 2023

Conversation

liaodaniel
Copy link
Contributor

This PR includes both the organization and repository rulesets API.

Resolves #2789

Signed-off-by: Daniel Liao 10663736+liaodaniel@users.noreply.github.com

Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
@liaodaniel liaodaniel mentioned this pull request Jun 2, 2023
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #2795 (221c3ee) into master (3efdd2c) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2795      +/-   ##
==========================================
+ Coverage   98.06%   98.10%   +0.04%     
==========================================
  Files         132      134       +2     
  Lines       11650    11947     +297     
==========================================
+ Hits        11424    11721     +297     
  Misses        154      154              
  Partials       72       72              
Impacted Files Coverage Δ
github/messages.go 100.00% <ø> (ø)
github/event.go 100.00% <100.00%> (ø)
github/orgs_rules.go 100.00% <100.00%> (ø)
github/repos_rules.go 100.00% <100.00%> (ø)

Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
@liaodaniel
Copy link
Contributor Author

Linter appears to be failing due to golangci/golangci-lint#3862. Guess I'll wait until they make a fix for it

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, @liaodaniel !
This looks fantastic! I have just a few change requests, and feel free to disagree on any of them. As I commented, it is challenging to tell if we have the right combination of omitempty, but this looks good to me if I haven't made comments otherwise.

github/orgs_rules.go Outdated Show resolved Hide resolved
github/orgs_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
github/repos_rules.go Outdated Show resolved Hide resolved
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Jun 7, 2023
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, @liaodaniel !
LGTM.

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

Copy link
Contributor

@valbeat valbeat 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
Copy link
Collaborator

gmlewis commented Jun 17, 2023

Thank you, @valbeat !
Merging.

@gmlewis gmlewis merged commit 6a57598 into google:master Jun 17, 2023
9 checks passed
@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Jun 19, 2023
@liaodaniel liaodaniel deleted the add_ruleset branch October 29, 2023 22:25
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.

Support for rulesets API
3 participants