Skip to content

Create Pull Request API parameters insufficient documentation #35413

@hramrach

Description

@hramrach

Description

https://docs.gitea.com/api/1.24/#tag/repository/operation/repoListPullRequests (should be https://docs.gitea.com/api/1.24/#tag/repository/operation/repoCreatePullRequest but the anchors are off-by one) shows:

Request Body schema: application/json
assignee | string
-- | --
assignees | Array of strings
base | string
body | string
due_date | string <date-time>
head | string
labels | Array of integers <int64> [ items <int64 > ]
milestone | integer <int64>
reviewers | Array of strings
team_reviewers | Array of strings
title | string

Presumably base and head some how specify the source and target (or target and source?) of the PR. The meaning and format is not documented. Is this only for local PRs inside a single repository, or can a different repository be somehow specified? Which is the source and which the target?

Gitea Version

1.24

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/docsThis PR mainly updates/creates documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions