Skip to content

Implement rulesets#2795

Merged
gmlewis merged 39 commits intogoogle:masterfrom
liaodaniel:add_ruleset
Jun 17, 2023
Merged

Implement rulesets#2795
gmlewis merged 39 commits intogoogle:masterfrom
liaodaniel:add_ruleset

Conversation

@liaodaniel
Copy link
Copy Markdown
Contributor

This PR includes both the organization and repository rulesets API.

Resolves #2789

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

liaodaniel added 30 commits May 31, 2023 17:58
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

gmlewis commented Jun 17, 2023

Thank you, @valbeat !
Merging.

@gmlewis gmlewis merged commit 6a57598 into google:master Jun 17, 2023
@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