summaryrefslogtreecommitdiff
path: root/ofborg/tickborg/src/ghevent/issuecomment.rs
blob: 32fe13672207f313171d3166a1ab0557c357c9d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::ghevent::{Comment, Issue, Repository};

#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct IssueComment {
    pub action: IssueCommentAction,
    pub comment: Comment,
    pub repository: Repository,
    pub issue: Issue,
}

#[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum IssueCommentAction {
    Created,
    Pinned,
    Unpinned,
    Edited,
    Deleted,
}