10000 methods for listing PRs where the commit is head & listing branches which contain the commit by tginiotis-at-work · Pull Request #922 · hub4j/github-api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

methods for listing PRs where the commit is head & listing branches which contain the commit #922

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
Sep 22, 2020

Conversation

tginiotis-at-work
Copy link
Contributor
@tginiotis-at-work tginiotis-at-work commented Aug 11, 2020

Description

Methods for listing PRs where the commit is head & listing branches which contain the commit.

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 clean compile locally. This may reformat your code, commit those changes.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.

When creating a PR:

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

@tginiotis-at-work tginiotis-at-work force-pushed the commit_updates branch 5 times, most recently from a4efc71 to 1559fc9 Compare August 11, 2020 23:34
@bitwiseman
Copy link
Member

@tginiotis-at-work
This looks good so far.

@tginiotis-at-work tginiotis-at-work marked this pull request as ready for review August 13, 2020 08:38
@tginiotis-at-work
Copy link
Contributor Author

@bitwiseman is the PR alright now?

@tginiotis-at-work tginiotis-at-work force-pushed the commit_updates branch 2 times, most recently from 555fa69 to 70343c5 Compare August 13, 2020 12:33
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.

This a good start for testing.

Please create a test scenarios where

  • a commit is part of multiple PRs (at least 2).
  • a commit is part of no PRs.
  • a commit is the head of multiple branches
  • a commit is the head of no branches.

I've invited you to hub4j-test-org. You can create a custom repository in that org that is configured exactly how you need it to create the tests you need.

Or you can write code that sets up a temp repository and creates the structure you need using automation. See other parts of this file or some the methods in GHPullRequestTest. But this may be more difficult, it is up to you which you'd rather do.

@tginiotis-at-work
Copy link
Contributor Author

I have added the 4 additional test cases & implemented the suggestions. Is there anything more than needs attention?

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.

Excellent!

@bitwiseman bitwiseman merged commit bf67069 into hub4j:master Sep 22, 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.

2 participants
0