| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System.Collections.Generic;
- namespace ddAlter.Models
- {
- public class GogsCommits
- {
- public string secret { get; set; }
- public string before { get; set; }
- public string after { get; set; }
- public string compare_url { get; set; }
- public List<Commit> commits { get; set; }
- public Repository repository { get; set; }
- public object pusher { get; set; }
- public object sender { get; set; }
- // "secret": "SEC47e4a832ec25fa46fe14f71cd00f4b3eb4077e3fa2e88d6a06e335e097580be4",
- //"ref": "refs/heads/master",
- //"before": "262e49a17e5146a9a0d0783d772fd8a0a1bf19e4",
- //"after": "30e3a34a3618feebcd8c71b886c35434c0d06858",
- //"compare_url"
- }
- public class Repository
- {
- public string name { get; set; }
- public string description { get; set; }
- }
- public class Commit
- {
- public string id { get; set; }
- public string message { get; set; }
- public string url { get; set; }
- public Author author { get; set; }
- public Committer committer { get; set; }
- public string timestamp { get; set; }
- }
- public class Author
- {
- public string name { get; set; }
- public string email { get; set; }
- public string username { get; set; }
- }
- public class Committer
- {
- public string name { get; set; }
- public string email { get; set; }
- public string username { get; set; }
- }
- }
|