-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 searched repo type to api/repo/search #2321
Comments
I think one is enough. |
On first option I don't like the code (can be just bad because of my skills in GO and understanding this project code). I need new type |
I like first option. |
@lunny OK :) Will send PR soon, you can assign this issue to me. |
Closed by #2756 |
- Move the conditions code around, such that the existence of the head and base is first checked (so a clear error can be given, instead of a possible server error). This makes it easier to read this code. As the logic is now grouped together. - Adds integration testing that simulates the deletion of the base and head branch and ensures the pull request cannot be opened. The 'normal' testcase also 'informally' ensures that the previous incorrect condition is not there, because the branch `base-branch` doesn't exist on the head repository. - Resolves go-gitea#2321
I want to add an option to look for a specific type of repo (
fork
,mirror
,source
,collaborative
orall
). I think there are two options how to search repositories:SearchRepoOptions
will contain 1 attribute with one of possible valuesSearchRepoOptions
will contains every possible option and result will be their mix (OR), for examplemirror
ORfork
repositoriesAny opinion? I've already done the first option, but second can be done very fast too.
The text was updated successfully, but these errors were encountered: