149bec6
use utoipa::OpenApi;
use export::rest::{AppResponseData, NoData};
#[derive(OpenApi)]
#[openapi(
info(title = "gitdata pulls api", version = "1.0"),
paths(
crate::handlers::pulls::list_pulls::list_pulls,
crate::handlers::pulls::create_pull::create_pull,
crate::handlers::pulls::ai_fill_pull::ai_fill_pull,
crate::handlers::pulls::get_pull::get_pull,
crate::handlers::pulls::update_pull::update_pull,
crate::handlers::pulls::delete_pull::delete_pull,
crate::handlers::pulls::close_pull::close_pull,
crate::handlers::pulls::reopen_pull::reopen_pull,
crate::handlers::pulls::merge_pull::merge_pull,
crate::handlers::pulls::list_pull_commits::list_pull_commits,
crate::handlers::pulls::get_pull_files::get_pull_files,
crate::handlers::pulls::get_pull_patch::get_pull_patch,
crate::handlers::pulls::refresh_pull_summary::refresh_pull_summary,
crate::handlers::pulls::list_pull_events::list_pull_events,
crate::handlers::ai::trigger_ai_review::trigger_ai_review,
crate::handlers::ai::list_ai_reviews::list_ai_reviews,
crate::handlers::ai::get_ai_review::get_ai_review,
crate::handlers::pulls::lock_pull::lock_pull,
crate::handlers::pulls::lock_pull::unlock_pull,
crate::handlers::pulls::update_branch_pull::update_branch_pull,
crate::handlers::reviews::submit_review::submit_review,
crate::handlers::reviews::list_reviews::list_reviews,
crate::handlers::reviews::get_review::get_review,
crate::handlers::reviews::publish_review::publish_review,
crate::handlers::reviews::dismiss_review::dismiss_review,
crate::handlers::comments::create_pull_comment::create_pull_comment,
crate::handlers::comments::list_pull_comments::list_pull_comments,
crate::handlers::comments::list_pull_comment_tree::list_pull_comment_tree,
crate::handlers::comments::update_pull_comment::update_pull_comment,
crate::handlers::comments::delete_pull_comment::delete_pull_comment,
crate::handlers::comments::resolve_pull_comment::resolve_pull_comment,
crate::handlers::comments::resolve_pull_comment::unresolve_pull_comment,
crate::handlers::reviewers::list_requested_reviewers::list_requested_reviewers,
crate::handlers::reviewers::request_reviewers::request_reviewers,
crate::handlers::reviewers::delete_requested_reviewer::delete_requested_reviewer,
crate::handlers::labels::list_label_options::list_label_options,
crate::handlers::labels::list_pull_labels::list_pull_labels,
crate::handlers::labels::attach_pull_label::attach_pull_label,
crate::handlers::labels::detach_pull_label::detach_pull_label,
crate::handlers::assignees::list_pull_assignees::list_pull_assignees,
crate::handlers::assignees::add_pull_assignee::add_pull_assignee,
crate::handlers::assignees::remove_pull_assignee::remove_pull_assignee,
crate::handlers::checks::get_pull_checks::get_pull_checks,
crate::handlers::checks::get_pull_gate::get_pull_gate,
crate::handlers::inbox::list_my_pulls,
crate::handlers::relations::list_issue_pulls::list_issue_pulls,
crate::handlers::relations::link_issue_pull::link_issue_pull,
crate::handlers::relations::unlink_issue_pull::unlink_issue_pull,
),
components(schemas(
AppResponseData<NoData>,
AppResponseData<crate::services::pulls::PullDto>,
AppResponseData<crate::services::ai_fill::AiFillPullResult>,
crate::services::ai_fill::AiFillPullCmd,
AppResponseData<crate::services::pulls::PullPage>,
AppResponseData<crate::services::comments::CommentPage>,
AppResponseData<crate::services::events::EventPage>,
AppResponseData<Vec<git::service::merge::MergeCommitDto>>,
AppResponseData<Vec<git::service::diffs::ChangedPathDiffDto>>,
AppResponseData<crate::services::changes::PullSummaryDto>,
AppResponseData<crate::services::merge::MergePullDto>,
AppResponseData<crate::handlers::pulls::update_branch_pull::UpdateBranchDto>,
AppResponseData<Vec<crate::services::reviews::PullReviewDto>>,
AppResponseData<crate::services::reviews::PullReviewDto>,
AppResponseData<crate::services::comments::PullCommentDto>,
AppResponseData<Vec<crate::services::comments::PullCommentThreadDto>>,
AppResponseData<Vec<crate::services::reviewers::PullReviewerDto>>,
AppResponseData<Vec<issues::services::labels::LabelDto>>,
AppResponseData<Vec<crate::services::assignees::PullAssigneeDto>>,
AppResponseData<Vec<crate::services::relations::IssuePullLinkDto>>,
AppResponseData<crate::services::checks::PullChecksDto>,
AppResponseData<crate::services::checks::PullGateDto>,
AppResponseData<crate::services::inbox::InboxPage>,
NoData,
space::services::spaces::UserDto,
issues::services::labels::LabelDto,
crate::services::pulls::PullDto,
crate::services::pulls::PullRefDto,
crate::services::pulls::PullState,
crate::services::pulls::CreatePullCmd,
crate::services::pulls::UpdatePullCmd,
crate::services::pulls::LinkIssueCmd,
crate::services::merge::MergePullCmd,
crate::services::merge::MergePullDto,
crate::services::changes::PullSummaryDto,
crate::services::events::PullEventDto,
crate::services::reviews::PullReviewDto,
crate::services::ai::AiReviewDto,
crate::services::ai::AiReviewJobDto,
crate::services::ai::AiFindingDto,
models::ai::ai_review_result::AiReviewVerdict,
crate::services::reviews::ReviewIntent,
crate::services::reviews::SubmitReviewCmd,
crate::services::reviews::InlineDraft,
crate::services::comments::PullCommentDto,
crate::services::comments::PullCommentThreadDto,
crate::services::comments::CreatePullCommentCmd,
crate::services::comments::UpdatePullCommentCmd,
crate::services::reviewers::PullReviewerDto,
crate::services::reviewers::RequestReviewersCmd,
crate::services::labels::AttachLabelCmd,
crate::services::assignees::PullAssigneeDto,
crate::services::assignees::AssignCmd,
crate::services::checks::PullChecksDto,
crate::services::checks::PullGateDto,
crate::services::approvals::MergeGateDto,
crate::handlers::pulls::update_branch_pull::UpdateBranchDto,
export::pagination::Page<crate::services::pulls::PullDto>,
export::pagination::Page<crate::services::events::PullEventDto>,
export::pagination::Page<crate::services::comments::PullCommentDto>,
git::service::merge::MergeCommitDto,
git::service::merge::MergeResultDto,
models::pull_request::pull_requests::MergeMethod,
models::pull_request::pull_request_review::ReviewState,
models::pull_request::pull_request_reviewer::ReviewerState,
))
)]
pub struct PullsApiDoc;