package org.lym.pom.util.github.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class GithubFileAndCommit {
//{"content":{"name":"7b25940768d249a1bdc5b43ab1b65bdf.png","path":"7b25940768d249a1bdc5b43ab1b65bdf.png","sha":"571b54a68cd374b3866fa9046ea1ef0920fd2cc6","size":1169866,"url":"https://api.github.com/repos/ChinaLym/images/contents/7b25940768d249a1bdc5b43ab1b65bdf.png?ref=main","html_url":"https://github.com/ChinaLym/images/blob/main/7b25940768d249a1bdc5b43ab1b65bdf.png","git_url":"https://api.github.com/repos/ChinaLym/images/git/blobs/571b54a68cd374b3866fa9046ea1ef0920fd2cc6","download_url":"https://raw.githubusercontent.com/ChinaLym/images/main/7b25940768d249a1bdc5b43ab1b65bdf.png","type":"file","_links":{"self":"https://api.github.com/repos/ChinaLym/images/contents/7b25940768d249a1bdc5b43ab1b65bdf.png?ref=main","git":"https://api.github.com/repos/ChinaLym/images/git/blobs/571b54a68cd374b3866fa9046ea1ef0920fd2cc6","html":"https://github.com/ChinaLym/images/blob/main/7b25940768d249a1bdc5b43ab1b65bdf.png"}},"commit":{"sha":"3c1db50d50725fe273940eb6a2db11f30160610a","node_id":"C_kwDOLII5LdoAKDNjMWRiNTBkNTA3MjVmZTI3Mzk0MGViNmEyZGIxMWYzMDE2MDYxMGE","url":"https://api.github.com/repos/ChinaLym/images/git/commits/3c1db50d50725fe273940eb6a2db11f30160610a","html_url":"https://github.com/ChinaLym/images/commit/3c1db50d50725fe273940eb6a2db11f30160610a","author":{"name":"lym","email":"cn_lym@foxmai.com","date":"2024-01-22T16:59:57Z"},"committer":{"name":"lym","email":"cn_lym@foxmai.com","date":"2024-01-22T16:59:57Z"},"tree":{"sha":"1689290fdcb25a5c1ed05d39da53ffdf995a42d8","url":"https://api.github.com/repos/ChinaLym/images/git/trees/1689290fdcb25a5c1ed05d39da53ffdf995a42d8"},"message":"测试提交","parents":[],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}}}

    @JsonProperty("content")
    GithubFileInfo content;

    @JsonProperty("commit")
    GithubCommitDetail commit;

}
