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 ability to search repos by fork and visibility #1188

Merged

Conversation

t0m4uk1991
Copy link
Contributor

@t0m4uk1991 t0m4uk1991 commented Jun 24, 2021

Description

Updated GHRepositorySearchBuilder.java, add ability to search repos by fork:(true|only) and visibility:(public|private|internal)

This one issue #1174 should be closed after merge.

Fixes #1174

@codecov
Copy link

codecov bot commented Jun 24, 2021

Codecov Report

Merging #1188 (1994f47) into main (f7c170c) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1188      +/-   ##
============================================
+ Coverage     74.16%   74.25%   +0.09%     
- Complexity     1874     1880       +6     
============================================
  Files           188      188              
  Lines          6182     6200      +18     
  Branches        368      368              
============================================
+ Hits           4585     4604      +19     
+ Misses         1375     1374       -1     
  Partials        222      222              
Impacted Files Coverage Δ
src/main/java/org/kohsuke/github/GHRepository.java 67.39% <100.00%> (+0.15%) ⬆️
.../org/kohsuke/github/GHRepositorySearchBuilder.java 79.48% <100.00%> (+16.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7c170c...1994f47. Read the comment docs.

@t0m4uk1991 t0m4uk1991 force-pushed the repo_search_by_fork_and_visibility branch from c2ae62e to 622017a Compare June 24, 2021 17:38
@t0m4uk1991 t0m4uk1991 force-pushed the repo_search_by_fork_and_visibility branch from 622017a to 2c323d2 Compare June 24, 2021 17:47
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.

Thanks! Minor tweaks and questions. I'm open to discussion if you disagree with my suggestions.

@t0m4uk1991
Copy link
Contributor Author

Hi @bitwiseman
Could you please take a look at the changes again?
Thanks

@bitwiseman
Copy link
Member

bitwiseman commented Jul 6, 2021

@t0m4uk1991
In the spirit of collaboration, I pushed 1994f47 making some additional changes. What do you think?

If you disagree with the changes, please feel free to modify or revert them and we can discuss further.

@bitwiseman bitwiseman force-pushed the repo_search_by_fork_and_visibility branch from d7a19aa to 74b1977 Compare July 6, 2021 22:04
Added javadoc for each value of Fork search mode enum.
Made passing UNKNOWN to visibility() throw a GHException. UNKNOWN a placeholder and should never be
passed into any method in the API.
@bitwiseman bitwiseman force-pushed the repo_search_by_fork_and_visibility branch from 74b1977 to 1994f47 Compare July 6, 2021 22:06
@t0m4uk1991
Copy link
Contributor Author

@bitwiseman
LGFM. The more documents/explanations we have, the better.

@bitwiseman bitwiseman merged commit 48df39c into hub4j:main Jul 9, 2021
@t0m4uk1991 t0m4uk1991 deleted the repo_search_by_fork_and_visibility branch July 23, 2021 18:06
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.

Improvement: Include Forked repositories in GHRepositorySearchBuilder
2 participants