github-client 0.1.0

Github Client
1
2
3
4
5
6
7
8
9
10
11
12
use super::parts::Commit;

#[derive(Deserialize, Debug)]
pub struct PullRequestCommitPayload {
    commit: Commit,
}

impl PullRequestCommitPayload {
    pub fn commit_message(&self) -> &str {
        &self.commit.message
    }
}