feat: implement PullRequestMeta

This commit is contained in:
RobWalt 2023-10-22 11:12:05 +02:00
parent edae8f78ed
commit 3951366142
No known key found for this signature in database
GPG key ID: 333C6AC0CEF0CE68

View file

@ -1,7 +1,13 @@
// PullRequestMeta{
// description:
// PullRequestMeta PR info if an issue is a PR
//
// merged boolean
// merged_at string($date-time)
// }
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use crate::types::misc::boolean_enums::is::merged::IsMerged;
/// PullRequestMeta represents PR information for an issue if it is a PR.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct PullRequestMeta {
/// Indicates whether the PR is merged or not.
pub merged: IsMerged,
/// The date and time when the PR was merged (if merged).
pub merged_at: Option<DateTime<Utc>>,
}