implemented the GitHub calls for the repository
This commit is contained in:
@@ -183,7 +183,7 @@ paths:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
email:
|
||||
email:
|
||||
type: string
|
||||
date:
|
||||
type: string
|
||||
@@ -195,8 +195,8 @@ paths:
|
||||
properties:
|
||||
sha:
|
||||
type: string
|
||||
url:
|
||||
type: string
|
||||
url:
|
||||
type: string
|
||||
url:
|
||||
type: string
|
||||
comment_count:
|
||||
@@ -298,5 +298,56 @@ paths:
|
||||
type: string
|
||||
'404':
|
||||
description: Repository not found
|
||||
|
||||
/repos/{owner}/{repo}/branches:
|
||||
get:
|
||||
operationId: listBranches
|
||||
summary: List branches in a repository
|
||||
description: Retrieve a list of branches in a repository.
|
||||
parameters:
|
||||
- name: owner
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: The owner of the repository.
|
||||
- name: repo
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: The name of the repository.
|
||||
- name: protected
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
description: Set to true to only return protected branches.
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: The name of the branch.
|
||||
commit:
|
||||
type: object
|
||||
properties:
|
||||
sha:
|
||||
type: string
|
||||
description: SHA of the commit.
|
||||
url:
|
||||
type: string
|
||||
description: URL of the commit.
|
||||
protected:
|
||||
type: boolean
|
||||
description: Indicates if the branch is protected.
|
||||
'404':
|
||||
description: Repository not found
|
||||
components:
|
||||
schemas: {}
|
||||
Reference in New Issue
Block a user