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

[draft] update commit report to check flag filters #490

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions graphql_api/types/commit/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def resolve_path_contents(commit: Commit, info, path: str = None, filters=None):

if flags_filter and not commit_report.flags:
return UnknownFlags(f"No coverage with chosen flags: {flags_filter}")
elif flags_filter:
commit_report = commit_report.filter(flags=flags_filter)

report_paths = ReportPaths(
report=commit_report,
Expand Down
Loading