-
Notifications
You must be signed in to change notification settings - Fork 724
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
allow including results from forks #1154
Comments
There's an option in
|
Ha. I thought that 'v' meant something else. Would have been good if the javsdocs itself stated what values was expected :) |
Agreed that the docs could be a lot better. Additionally, an |
so...just tried this now and it is not giving any additional results:
also tried with "only" and still no results. |
We have one test method currently: github-api/src/test/java/org/kohsuke/github/GitHubTest.java Lines 94 to 155 in d091200
It looks like |
Hey @bitwiseman, I would like to look into this issue as well. Could you assign it to me? Thank you! |
I had a closer look at the issue and I believe we are talking about 2 facets in here - i.e. Repository search and Code search.
var repos = github.searchRepositories()
.q("jbang-appstore")
.fork(GHRepositorySearchBuilder.Fork.PARENT_AND_FORKS)
.order(GHDirection.DESC)
.list();
repos.toList().forEach(ghRepository -> System.out.println(ghRepository.getFullName() + " " + ghRepository.isFork())); This will output the following:
which matches with results given by this search URL.
This is why we don't get any results if we do a code search like this. I am happy to look at any sample use cases you might have that returns valid results. However, I agree with what has been discussed here about refactoring the code to be able to use an enum for the Let me know what you think about this @bitwiseman Cheers :) |
Based on the above comment I have submitted a PR for this: #1315 |
@sahansera |
@bitwiseman Thanks a lot for reviewing, improving and merging this PR. I really like the new Are we able to close this issue as well? |
Describe the bug
searchContent() does not seem to have a flag/method to enable searching content in forks, i.e. what corresponds to choosing "Fork" in the "Filters" section when searching, i.e.:
https://github.com/search?q=topic%3Ajbang-appstore+fork%3Atrue&type=repositories
Expected behavior
Ability to have search include results in forks.
The text was updated successfully, but these errors were encountered: