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

Add has_projects field to github repository #741

Merged
merged 9 commits into from
Apr 1, 2020

Conversation

sladyn98
Copy link
Contributor

@sladyn98 sladyn98 commented Mar 15, 2020

Description

This PR adds a has_projects field to the Github API.
Closes: #661

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 changes. If this command doesn't succeed, your change will not pass CI.

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.

Cool, now tests.

* @param v
* the v
* @throws IOException
* the io exception
Copy link
Member

Choose a reason for hiding this comment

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

This will probably fail formatting, but we need links to the api docs.

Suggested change
* the io exception
* the io exception
* @see https://developer.github.com/v3/repos/#parameters-4

@sladyn98
Copy link
Contributor Author

Cool, now tests.

Yeah will add it, I was just wondering how do I add a file to the wiremock GithubRepositoryTest because I wanted to add a json file there which would have has projects as true ?

@bitwiseman
Copy link
Member

@sladyn98
See Contributing.md. I've added you to the github-api-test-org. You can add a new repo or record a test with an existing repo and then manually change the data.

@bitwiseman
Copy link
Member

While writing test for this, found #765 . 😭

@bitwiseman bitwiseman force-pushed the add_has_projects branch 2 times, most recently from 02fd57d to 279df00 Compare April 1, 2020 00:53
Copy link
Contributor Author

@sladyn98 sladyn98 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@bitwiseman bitwiseman merged commit c5ee07a into hub4j:master Apr 1, 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.

add 'has_projects' to GHRepository
2 participants