Skip to content

Conversation

@sladyn98
Copy link
Contributor

@sladyn98 sladyn98 commented Mar 15, 2020

Description

This PR is used to retrieve the html_url from a Pull Request Review Comment instead of returning null
Closes : #736

Before submitting a PR:

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

  • Push your changes to a branch other than master. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. This may reformat your code, commit those chxanges. If this command doesn't succeed, your change will not pass CI.

assertEquals("Sample review comment", comment.getBody());

// Assert htmlUrl is not null
assertNotNull(comment.getHtmlUrl());
Copy link
Member

Choose a reason for hiding this comment

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

Needs to be more than non-null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to check for more than just non-null. What value should it be?

It's actually a dynamically determined URL something along of the lines of this : https://github.com/apache/flink/pull/5862#discussion_r184057665

Copy link
Member

@bitwiseman bitwiseman Mar 19, 2020

Choose a reason for hiding this comment

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

@sladyn98
But it is recorded so it won't change after that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, another test upcoming :)

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.

We need to check for more than just non-null. What value should it be?

@bitwiseman bitwiseman merged commit fd621a4 into hub4j:master Mar 20, 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.

GHPullRequestReviewComment.getHtmlUrl() always returns null

2 participants