package github

import (
	"github.com/tidbcloud/devops/api"
	gitent "github.com/tidbcloud/devops/entity/github"
)

type ListPullRequestsReq struct {
	api.PaginationReq

	RepoLocation *string  `form:"repo_location"`
	PRLocations  []string `form:"pr_locations"`
}

type ListPullRequestsResp struct {
	api.BaseResp `json:",inline"`

	Total int64                 `json:"total"`
	PRs   []*gitent.PullRequest `json:"items"`
}

type GetPullRequestResp struct {
	api.BaseResp `json:",inline"`

	PR gitent.PullRequest `json:"pull_request"`
}
