|
| 1 | +package gitea |
| 2 | + |
| 3 | +import "time" |
| 4 | + |
| 5 | +type GiteaPushEvent struct { |
| 6 | + Ref string `json:"ref"` |
| 7 | + Before string `json:"before"` |
| 8 | + After string `json:"after"` |
| 9 | + CompareUrl string `json:"compare_url"` |
| 10 | + Commits []struct { |
| 11 | + Id string `json:"id"` |
| 12 | + Message string `json:"message"` |
| 13 | + Url string `json:"url"` |
| 14 | + Author struct { |
| 15 | + Name string `json:"name"` |
| 16 | + Email string `json:"email"` |
| 17 | + Username string `json:"username"` |
| 18 | + } `json:"author"` |
| 19 | + Committer struct { |
| 20 | + Name string `json:"name"` |
| 21 | + Email string `json:"email"` |
| 22 | + Username string `json:"username"` |
| 23 | + } `json:"committer"` |
| 24 | + Verification interface{} `json:"verification"` |
| 25 | + Timestamp time.Time `json:"timestamp"` |
| 26 | + Added []interface{} `json:"added"` |
| 27 | + Removed []interface{} `json:"removed"` |
| 28 | + Modified []string `json:"modified"` |
| 29 | + } `json:"commits"` |
| 30 | + TotalCommits int `json:"total_commits"` |
| 31 | + HeadCommit struct { |
| 32 | + Id string `json:"id"` |
| 33 | + Message string `json:"message"` |
| 34 | + Url string `json:"url"` |
| 35 | + Author struct { |
| 36 | + Name string `json:"name"` |
| 37 | + Email string `json:"email"` |
| 38 | + Username string `json:"username"` |
| 39 | + } `json:"author"` |
| 40 | + Committer struct { |
| 41 | + Name string `json:"name"` |
| 42 | + Email string `json:"email"` |
| 43 | + Username string `json:"username"` |
| 44 | + } `json:"committer"` |
| 45 | + Verification interface{} `json:"verification"` |
| 46 | + Timestamp time.Time `json:"timestamp"` |
| 47 | + Added []interface{} `json:"added"` |
| 48 | + Removed []interface{} `json:"removed"` |
| 49 | + Modified []string `json:"modified"` |
| 50 | + } `json:"head_commit"` |
| 51 | + Repository struct { |
| 52 | + Id int `json:"id"` |
| 53 | + Owner struct { |
| 54 | + Id int `json:"id"` |
| 55 | + Login string `json:"login"` |
| 56 | + LoginName string `json:"login_name"` |
| 57 | + FullName string `json:"full_name"` |
| 58 | + Email string `json:"email"` |
| 59 | + AvatarUrl string `json:"avatar_url"` |
| 60 | + Language string `json:"language"` |
| 61 | + IsAdmin bool `json:"is_admin"` |
| 62 | + LastLogin time.Time `json:"last_login"` |
| 63 | + Created time.Time `json:"created"` |
| 64 | + Restricted bool `json:"restricted"` |
| 65 | + Active bool `json:"active"` |
| 66 | + ProhibitLogin bool `json:"prohibit_login"` |
| 67 | + Location string `json:"location"` |
| 68 | + Website string `json:"website"` |
| 69 | + Description string `json:"description"` |
| 70 | + Visibility string `json:"visibility"` |
| 71 | + FollowersCount int `json:"followers_count"` |
| 72 | + FollowingCount int `json:"following_count"` |
| 73 | + StarredReposCount int `json:"starred_repos_count"` |
| 74 | + Username string `json:"username"` |
| 75 | + } `json:"owner"` |
| 76 | + Name string `json:"name"` |
| 77 | + FullName string `json:"full_name"` |
| 78 | + Description string `json:"description"` |
| 79 | + Empty bool `json:"empty"` |
| 80 | + Private bool `json:"private"` |
| 81 | + Fork bool `json:"fork"` |
| 82 | + Template bool `json:"template"` |
| 83 | + Parent interface{} `json:"parent"` |
| 84 | + Mirror bool `json:"mirror"` |
| 85 | + Size int `json:"size"` |
| 86 | + Language string `json:"language"` |
| 87 | + LanguagesUrl string `json:"languages_url"` |
| 88 | + HtmlUrl string `json:"html_url"` |
| 89 | + Url string `json:"url"` |
| 90 | + Link string `json:"link"` |
| 91 | + SshUrl string `json:"ssh_url"` |
| 92 | + CloneUrl string `json:"clone_url"` |
| 93 | + OriginalUrl string `json:"original_url"` |
| 94 | + Website string `json:"website"` |
| 95 | + StarsCount int `json:"stars_count"` |
| 96 | + ForksCount int `json:"forks_count"` |
| 97 | + WatchersCount int `json:"watchers_count"` |
| 98 | + OpenIssuesCount int `json:"open_issues_count"` |
| 99 | + OpenPrCounter int `json:"open_pr_counter"` |
| 100 | + ReleaseCounter int `json:"release_counter"` |
| 101 | + DefaultBranch string `json:"default_branch"` |
| 102 | + Archived bool `json:"archived"` |
| 103 | + CreatedAt time.Time `json:"created_at"` |
| 104 | + UpdatedAt time.Time `json:"updated_at"` |
| 105 | + ArchivedAt time.Time `json:"archived_at"` |
| 106 | + Permissions struct { |
| 107 | + Admin bool `json:"admin"` |
| 108 | + Push bool `json:"push"` |
| 109 | + Pull bool `json:"pull"` |
| 110 | + } `json:"permissions"` |
| 111 | + HasIssues bool `json:"has_issues"` |
| 112 | + InternalTracker struct { |
| 113 | + EnableTimeTracker bool `json:"enable_time_tracker"` |
| 114 | + AllowOnlyContributorsToTrackTime bool `json:"allow_only_contributors_to_track_time"` |
| 115 | + EnableIssueDependencies bool `json:"enable_issue_dependencies"` |
| 116 | + } `json:"internal_tracker"` |
| 117 | + HasWiki bool `json:"has_wiki"` |
| 118 | + HasPullRequests bool `json:"has_pull_requests"` |
| 119 | + HasProjects bool `json:"has_projects"` |
| 120 | + HasReleases bool `json:"has_releases"` |
| 121 | + HasPackages bool `json:"has_packages"` |
| 122 | + HasActions bool `json:"has_actions"` |
| 123 | + IgnoreWhitespaceConflicts bool `json:"ignore_whitespace_conflicts"` |
| 124 | + AllowMergeCommits bool `json:"allow_merge_commits"` |
| 125 | + AllowRebase bool `json:"allow_rebase"` |
| 126 | + AllowRebaseExplicit bool `json:"allow_rebase_explicit"` |
| 127 | + AllowSquashMerge bool `json:"allow_squash_merge"` |
| 128 | + AllowRebaseUpdate bool `json:"allow_rebase_update"` |
| 129 | + DefaultDeleteBranchAfterMerge bool `json:"default_delete_branch_after_merge"` |
| 130 | + DefaultMergeStyle string `json:"default_merge_style"` |
| 131 | + DefaultAllowMaintainerEdit bool `json:"default_allow_maintainer_edit"` |
| 132 | + AvatarUrl string `json:"avatar_url"` |
| 133 | + Internal bool `json:"internal"` |
| 134 | + MirrorInterval string `json:"mirror_interval"` |
| 135 | + MirrorUpdated time.Time `json:"mirror_updated"` |
| 136 | + RepoTransfer interface{} `json:"repo_transfer"` |
| 137 | + } `json:"repository"` |
| 138 | + Pusher struct { |
| 139 | + Id int `json:"id"` |
| 140 | + Login string `json:"login"` |
| 141 | + LoginName string `json:"login_name"` |
| 142 | + FullName string `json:"full_name"` |
| 143 | + Email string `json:"email"` |
| 144 | + AvatarUrl string `json:"avatar_url"` |
| 145 | + Language string `json:"language"` |
| 146 | + IsAdmin bool `json:"is_admin"` |
| 147 | + LastLogin time.Time `json:"last_login"` |
| 148 | + Created time.Time `json:"created"` |
| 149 | + Restricted bool `json:"restricted"` |
| 150 | + Active bool `json:"active"` |
| 151 | + ProhibitLogin bool `json:"prohibit_login"` |
| 152 | + Location string `json:"location"` |
| 153 | + Website string `json:"website"` |
| 154 | + Description string `json:"description"` |
| 155 | + Visibility string `json:"visibility"` |
| 156 | + FollowersCount int `json:"followers_count"` |
| 157 | + FollowingCount int `json:"following_count"` |
| 158 | + StarredReposCount int `json:"starred_repos_count"` |
| 159 | + Username string `json:"username"` |
| 160 | + } `json:"pusher"` |
| 161 | + Sender struct { |
| 162 | + Id int `json:"id"` |
| 163 | + Login string `json:"login"` |
| 164 | + LoginName string `json:"login_name"` |
| 165 | + FullName string `json:"full_name"` |
| 166 | + Email string `json:"email"` |
| 167 | + AvatarUrl string `json:"avatar_url"` |
| 168 | + Language string `json:"language"` |
| 169 | + IsAdmin bool `json:"is_admin"` |
| 170 | + LastLogin time.Time `json:"last_login"` |
| 171 | + Created time.Time `json:"created"` |
| 172 | + Restricted bool `json:"restricted"` |
| 173 | + Active bool `json:"active"` |
| 174 | + ProhibitLogin bool `json:"prohibit_login"` |
| 175 | + Location string `json:"location"` |
| 176 | + Website string `json:"website"` |
| 177 | + Description string `json:"description"` |
| 178 | + Visibility string `json:"visibility"` |
| 179 | + FollowersCount int `json:"followers_count"` |
| 180 | + FollowingCount int `json:"following_count"` |
| 181 | + StarredReposCount int `json:"starred_repos_count"` |
| 182 | + Username string `json:"username"` |
| 183 | + } `json:"sender"` |
| 184 | +} |
0 commit comments