github-api icon indicating copy to clipboard operation
github-api copied to clipboard

Add workflow run query builder for specific workflow

Open HerrDerb opened this issue 7 months ago • 2 comments

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

HerrDerb avatar May 08 '25 12:05 HerrDerb

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 :warning:
src/main/java/org/kohsuke/github/GHWorkflow.java 0.00% 1 Missing :warning:
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     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar May 08 '25 12:05 codecov[bot]

@bitwiseman I need to fix/add the tests in a quite minute :)

HerrDerb avatar Jun 12 '25 06:06 HerrDerb

I am going to close this as not needed anymore

HerrDerb avatar Jun 26 '25 12:06 HerrDerb