Skip to content

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

Merged
gmlewis merged 1 commit intogoogle:masterfrom
tomfeigin:add-ruleset-id-to-repository-rule-object
Mar 3, 2024
Merged

Allow querying rule set information by ID with information returned from GetRulesFromBranch#3089
gmlewis merged 1 commit intogoogle:masterfrom
tomfeigin:add-ruleset-id-to-repository-rule-object

Conversation

@tomfeigin
Copy link
Copy Markdown
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.

@codecov
Copy link
Copy Markdown

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
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, @tomfeigin !
One tweak for repo consistency, please.
You will also need to reformat after accepting the suggestion (or just change it locally yourself).

Comment thread github/repos_rules.go Outdated
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
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, @tomfeigin !
LGTM.
Merging.

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