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

Feature: Repository Search by Substring #8417

Merged
merged 20 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 49 additions & 41 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ components:
description: delimiter used to group common prefixes by
schema:
type: string

SearchString:
in: query
name: search
nadavsteindler marked this conversation as resolved.
Show resolved Hide resolved
description: string for searching relevant entries
schema:
type: string

IfNoneMatch:
in: header
Expand Down Expand Up @@ -695,7 +702,7 @@ components:
default: false
hidden:
type: boolean
description: When set, branch will not show up when listing branches by default. *EXPERIMENTAL*
description: When set, branch will not show up when listing branches by default. *EXPERIMENTAL*
nadavsteindler marked this conversation as resolved.
Show resolved Hide resolved
default: false

TagCreation:
Expand Down Expand Up @@ -742,7 +749,7 @@ components:
error:
type: string
refs:
$ref: "#/components/schemas/RefsDump"
$ref: "#/components/schemas/RefsDump"

RepositoryRestoreStatus:
type: object
Expand Down Expand Up @@ -1472,7 +1479,7 @@ components:
properties:
type:
type: string
enum: [ common_prefix, object ]
enum: [common_prefix, object]
description: Path type, can either be 'common_prefix' or 'object'
path:
type: string
Expand Down Expand Up @@ -1705,7 +1712,7 @@ components:
- installation_id
- reports

ExternalPrincipalList:
ExternalPrincipalList:
type: object
required:
- pagination
Expand Down Expand Up @@ -1752,44 +1759,44 @@ components:
properties:
status:
type: string
enum: [ open, closed, merged ]
enum: [open, closed, merged]
title:
type: string
description:
type: string

PullRequest:
allOf:
- $ref: '#/components/schemas/PullRequestBasic'
- required:
- $ref: '#/components/schemas/PullRequestBasic'
- required:
- status
- title
- description
- type: object
required:
- id
- creation_date
- author
- source_branch
- destination_branch
properties:
id:
type: string
creation_date:
type: string
format: date-time
author:
type: string
source_branch:
type: string
destination_branch:
type: string
merged_commit_id:
type: string
description: the commit id of merged PRs
closed_date:
type: string
format: date-time
- type: object
required:
- id
- creation_date
- author
- source_branch
- destination_branch
properties:
id:
type: string
creation_date:
type: string
format: date-time
author:
type: string
source_branch:
type: string
destination_branch:
type: string
merged_commit_id:
type: string
description: the commit id of merged PRs
closed_date:
type: string
format: date-time

PullRequestsList:
type: object
Expand Down Expand Up @@ -2668,11 +2675,11 @@ paths:
- experimental
operationId: createUserExternalPrincipal
summary: attach external principal to user
requestBody:
requestBody:
required: false
content:
application/json:
schema:
content:
application/json:
schema:
$ref: "#/components/schemas/ExternalPrincipalCreation"
responses:
201:
Expand Down Expand Up @@ -2753,7 +2760,7 @@ paths:
- external
- experimental
operationId: getExternalPrincipal
summary: describe external principal by id
summary: describe external principal by id
responses:
200:
description: external principal
Expand Down Expand Up @@ -2899,7 +2906,7 @@ paths:
description: too many requests
default:
$ref: "#/components/responses/ServerError"

/repositories:
get:
tags:
Expand All @@ -2908,6 +2915,7 @@ paths:
- $ref: "#/components/parameters/PaginationPrefix"
- $ref: "#/components/parameters/PaginationAfter"
- $ref: "#/components/parameters/PaginationAmount"
- $ref: "#/components/parameters/SearchString"
operationId: listRepositories
summary: list repositories
responses:
Expand Down Expand Up @@ -4564,10 +4572,10 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/StagingMetadata"

parameters:
- $ref: "#/components/parameters/IfNoneMatch"

responses:
200:
# This actually violates HTTP, which requires returning 201 if a new object was
Expand Down Expand Up @@ -5755,7 +5763,7 @@ paths:
name: status
schema:
type: string
enum: [ open, closed, all ]
enum: [open, closed, all]
default: all
description: filter pull requests by status
responses:
Expand Down
17 changes: 17 additions & 0 deletions clients/java/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion clients/java/docs/RepositoriesApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading