Skip to content

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

Merged
gmlewis merged 1 commit into
google: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 into
google: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

codecovBot commented Mar 3, 2024

Copy link
Copy Markdown

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
tomfeiginforce-pushed the add-ruleset-id-to-repository-rule-object branch 2 times, most recently from 14c7bd5 to 232db8bCompareMarch 3, 2024 10:56

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

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 threadgithub/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
tomfeiginforce-pushed the add-ruleset-id-to-repository-rule-object branch from 232db8b to b5fda6dCompareMarch 3, 2024 13:47
@tomfeigin
tomfeigin requested a review from gmlewisMarch 3, 2024 13:49

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

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.

Sign up for freeto 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

@tomfeigin@gmlewis