跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. See the latest release.

Get the merge queue entry of a pull request

GET
/repos/{owner}/{repo}/pulls/{index}/merge-queue
curl --request GET \
--url https://gitea.com/api/v1/repos/example/example/pulls/1/merge-queue \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

index
required
integer format: int64

Index of the pull request

MergeQueueEntry

Media typeapplication/json
MergeQueueEntry

Is a pull request waiting in a merge queue

object
base_branch

Branch the pull request merges into

string
enqueued_at
string format: date-time
enqueuer
User

Represents a user

object
active

Is user active

boolean
avatar_url

URL to the user’s avatar

string format: uri
created
string format: date-time
description

The user’s description

string
email
string format: email
followers_count

User counts

integer format: int64
following_count
integer format: int64
full_name

The user’s full name

string
html_url

URL to the user’s gitea page

string format: uri
id

The user’s id

integer format: int64
is_admin

Is the user an administrator

boolean
language

User locale

string
last_login
string format: date-time
location

The user’s location

string
login

Login of the user, same as username

string
login_name

Identifier of the user, provided by the external authenticator (if configured)

string
prohibit_login

Is user login prohibited

boolean
restricted

Is user restricted

boolean
source_id

The ID of the user’s Authentication Source

integer format: int64
starred_repos_count
integer format: int64
type

The user type

string
Allowed values: User Organization Bot
visibility

User visibility level option: public, limited, private

string
Allowed values: public limited private
website

The user’s website

string
head_sha

Head commit of the pull request when it was added

string
jump

Whether the pull request jumped to the front of the queue

boolean
merge_group_head_ref

Ref of the queue commit, empty until it is built

string
merge_group_head_sha

Queue commit testing the pull request, empty until it is built

string
position

Position in the queue, starting at 1

integer format: int64
pull_request_index

Index of the pull request

integer format: int64
state

Queued, awaiting_checks, mergeable or unmergeable

string
Allowed values: queued awaiting_checks mergeable unmergeable

Example

{
"enqueuer": {
"type": "User",
"visibility": "public"
},
"state": "queued"
}

APIError is error format response

Media typeapplication/json
APIError

Is an api error with a message

object
message

Message contains the error description

string
url

URL contains the documentation URL for this error

string format: uri

Example generated

{
"message": "example",
"url": "https://example.com"
}