3a22c4265d
- Add gen_openapi binary for generating OpenAPI specification - Implement comprehensive pull request API endpoints including core operations - Add pull request reviews, check runs, labels, assignees, and events APIs - Include pull request status and merge strategy management endpoints - Add wiki page CRUD operations with revision history and comparison - Update OpenAPI documentation with Pull Requests and Wiki tags - Modify workspace find function visibility for external access - Integrate new API modules into main OpenAPI router configuration
19 lines
607 B
Rust
19 lines
607 B
Rust
use crate::models::common::MergeStrategyKind;
|
|
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow, utoipa::ToSchema)]
|
|
pub struct PrMergeStrategy {
|
|
pub pull_request_id: Uuid,
|
|
pub strategy: MergeStrategyKind,
|
|
pub auto_merge: bool,
|
|
pub squash_title: Option<String>,
|
|
pub squash_message: Option<String>,
|
|
pub delete_source_branch: bool,
|
|
pub merge_when_checks_pass: bool,
|
|
pub selected_by: Option<Uuid>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|