issue

Create a milestone

Changed on
post/repos/{owner}/{repo}/milestones

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Request body

descriptionstring

Description provides details about the milestone

due_onstring date-time

Deadline is the due date for the milestone

state'open' | 'closed'

State indicates the initial state of the milestone

titlestring

Title is the title of the new milestone

Response

Milestone

closed_atstring date-time
closed_issuesinteger

ClosedIssues is the number of closed issues in this milestone

created_atstring date-time
descriptionstring

Description provides details about the milestone

due_onstring date-time
idinteger

ID is the unique identifier for the milestone

open_issuesinteger

OpenIssues is the number of open issues in this milestone

state'open' | 'closed'

State indicates if the milestone is open or closed

titlestring

Title is the title of the milestone

updated_atstring date-time

Changes