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

GHCheckRun.getPullRequests public #909

Merged
merged 9 commits into from
Jul 31, 2020
Merged

Conversation

JKalash
Copy link
Contributor

@JKalash JKalash commented Jul 30, 2020

Description

Closes #908 (GHCheckRun's getPullRequests should be public)

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

When creating a PR:

  • Fill in the "Description" above.
  • Enable "Allow edits from maintainers".

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

  • also expose GHCheckSuite.getPullRequests().
  • add tests
  • some additional fixes needed for mvn site.

Thanks!

@JKalash
Copy link
Contributor Author

JKalash commented Jul 31, 2020

@bitwiseman is this fine to merge now?

@bitwiseman
Copy link
Member

bitwiseman commented Jul 31, 2020

@JKalash
You didn't have any tests so I thought I'd try to make some. It took a bit more work than I thought - it uncovered some bugs.

I fixed those issues and added more tests.

Comment on lines +131 to +132
* Note this field is only populated for events. When getting a {@link GHCheckRun} outside of an event, this is
* always empty.
Copy link
Member

Choose a reason for hiding this comment

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

@JKalash
Keep this in mind. This is took me a while to figure out. I'm not sure if it is expected behavior from GitHub but it is consistent.

Turns out there were quite a few bugs in this area (it was exposed publicly before. Some
tweaking was needed and updates to the tests to show this working as expected.
@bitwiseman bitwiseman merged commit dfb0a52 into hub4j:master Jul 31, 2020
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.

GHCheckRun's getPullRequests should be public
2 participants