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

Allow querying rule set information by ID with information returned from GetRulesFromBranch #3089

Merged

Conversation

tomfeigin
Copy link
Contributor

The purpose of this commit is to allow further querying of rulesets for a specific branch, at the organization or the repository level.
To achieve this, this commit adds the ruleset_id and ruleset_source_type fields to the RepositoryRule object according to the returned information from the github API.

Copy link

codecov bot commented Mar 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.87%. Comparing base (2b8c7fa) to head (b5fda6d).
Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3089      +/-   ##
==========================================
- Coverage   97.72%   92.87%   -4.86%     
==========================================
  Files         153      170      +17     
  Lines       13390    11403    -1987     
==========================================
- Hits        13085    10590    -2495     
- Misses        215      723     +508     
  Partials       90       90              

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

@tomfeigin tomfeigin force-pushed the add-ruleset-id-to-repository-rule-object branch 2 times, most recently from 14c7bd5 to 232db8b Compare March 3, 2024 10:56
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, @tomfeigin !
One tweak for repo consistency, please.
You will also need to reformat after accepting the suggestion (or just change it locally yourself).

github/repos_rules.go Outdated Show resolved Hide resolved
The purpose of this commit is to allow further querying of rulesets
for a specific branch, at the organization or the repository level.
To achieve this, this commit adds the `ruleset_id` and `ruleset_source_type`
fields to the RepositoryRule object according to the returned information
from the github API.
@tomfeigin tomfeigin force-pushed the add-ruleset-id-to-repository-rule-object branch from 232db8b to b5fda6d Compare March 3, 2024 13:47
@tomfeigin tomfeigin requested a review from gmlewis March 3, 2024 13:49
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, @tomfeigin !
LGTM.
Merging.

@gmlewis gmlewis merged commit 9bb6bf4 into google:master Mar 3, 2024
6 of 7 checks passed
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.

2 participants