feat: implement PullRequestMeta
This commit is contained in:
parent
edae8f78ed
commit
3951366142
1 changed files with 13 additions and 7 deletions
|
@ -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>>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue