Skip to content

Add workflow run query builder for specific workflow #2101

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HerrDerb
Copy link
Contributor

@HerrDerb HerrDerb commented May 8, 2025

Description

Currently the GHWorkflowRunQueryBuilder is only available in GHRepository which does not allow to use the query builder for a specific workflow.

By adding it to GHWorkflow and extend the GHWorkflowRunQueryBuilder to also be usable for a specific workflow id one can query a specific workflow, being more efficient

Copy link

codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 84.94%. Comparing base (362faaf) to head (3d3636e).

Files with missing lines Patch % Lines
.../org/kohsuke/github/GHWorkflowRunQueryBuilder.java 44.44% 4 Missing and 1 partial ⚠️
src/main/java/org/kohsuke/github/GHWorkflow.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2101      +/-   ##
============================================
- Coverage     85.01%   84.94%   -0.08%     
  Complexity     2493     2493              
============================================
  Files           237      237              
  Lines          7349     7358       +9     
  Branches        388      388              
============================================
+ Hits           6248     6250       +2     
- Misses          871      877       +6     
- Partials        230      231       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HerrDerb HerrDerb marked this pull request as draft May 8, 2025 12:58
@HerrDerb HerrDerb force-pushed the add-worflow-run-query-builder branch from 3d3636e to 06a2ea2 Compare May 8, 2025 13:08
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.

1 participant