Skip to content

feat: Add additional PR field in CheckRunResponse and CheckSuite #230

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

Abhi347
Copy link
Member

@Abhi347 Abhi347 commented Apr 28, 2025

Changes:

  • Add additional pull_requests field to both CheckRunResponse and CheckSuite class
  • Create a new class called PartialPullRequestItem which is usually part of the pull_requests field in check runs as they don't have the complete PR object.
  • Create overload for methods in PullRequestClient where it asks for integer PR number. Change it to long and marked the integer versions as deprecated

Copy link

codecov bot commented Apr 28, 2025

Codecov Report

Attention: Patch coverage is 20.83333% with 19 lines in your changes missing coverage. Please review.

Project coverage is 76.73%. Comparing base (ccd8ca9) to head (3ca45e5).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...m/spotify/github/v3/clients/PullRequestClient.java 20.83% 19 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #230      +/-   ##
============================================
- Coverage     77.41%   76.73%   -0.68%     
  Complexity      433      433              
============================================
  Files            60       60              
  Lines          1368     1380      +12     
  Branches         60       60              
============================================
  Hits           1059     1059              
- Misses          265      277      +12     
  Partials         44       44              

☔ 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.

@Abhi347 Abhi347 force-pushed the feat/add-additional-pr-field-checks branch from a1b691f to 5170ff4 Compare April 28, 2025 10:16
@Abhi347 Abhi347 force-pushed the feat/add-additional-pr-field-checks branch from 5170ff4 to 3ca45e5 Compare April 28, 2025 10:24
@Abhi347 Abhi347 marked this pull request as ready for review April 28, 2025 10:28
Copy link
Contributor

@dennisgranath dennisgranath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Abhi347 Abhi347 merged commit 854d2d9 into master Apr 28, 2025
3 of 5 checks passed
@Abhi347 Abhi347 deleted the feat/add-additional-pr-field-checks branch April 28, 2025 12:24
@JsonDeserialize(as = ImmutablePartialPullRequestItem.class)
public interface PartialPullRequestItem extends CloseTracking {
/** ID. */
Long id();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduced a breaking change because they were all optional.

URI url();

/** Number. */
Long number();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes from Integer to Long, which is also a breaking change.

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.

3 participants