@@ -22,9 +22,9 @@ type StatusPayload struct {
2222 ID int `json:"id"`
2323 SHA string `json:"sha"`
2424 Name string `json:"name"`
25- TragetURL * string `json:"target_url"`
25+ TragetURL string `json:"target_url"`
2626 Context string `json:"context"`
27- Desctiption * string `json:"description"`
27+ Desctiption string `json:"description"`
2828 State string `json:"state"`
2929 Commit StatusCommit `json:"commit"`
3030 Branches []Branch `json:"branches"`
@@ -58,7 +58,7 @@ type PushPayload struct {
5858 Created bool `json:"created"`
5959 Deleted bool `json:"deleted"`
6060 Forced bool `json:"forced"`
61- BaseRef * string `json:"base_ref"`
61+ BaseRef string `json:"base_ref"`
6262 Compare string `json:"compare"`
6363 Commits []Commit `json:"commits"`
6464 HeadCommit HeadCommit `json:"head_commit"`
@@ -159,7 +159,7 @@ type DeploymentPayload struct {
159159 Sender Sender `json:"sender"`
160160}
161161
162- // CommitComment contains the information for GitHub's commit_comment hook event
162+ // CommitCommentPayload contains the information for GitHub's commit_comment hook event
163163type CommitCommentPayload struct {
164164 Action string `json:"action"`
165165 RefType string `json:"ref_type"`
@@ -245,7 +245,7 @@ type Repository struct {
245245 Size int `json:"size"`
246246 StargazersCount int `json:"stargazers_count"`
247247 WatchersCount int `json:"watchers_count"`
248- Language * string `json:"language"`
248+ Language string `json:"language"`
249249 HasIssues bool `json:"has_issues"`
250250 HasDownloads bool `json:"has_downloads"`
251251 HasWiki bool `json:"has_wiki"`
@@ -326,9 +326,9 @@ type Comment struct {
326326 HTMLURL string `json:"html_url"`
327327 ID int `json:"id"`
328328 User User `json:"user"`
329- Position * int `json:"position"`
330- Line * int `json:"line"`
331- Path * string `json:"path"`
329+ Position int `json:"position"`
330+ Line int `json:"line"`
331+ Path string `json:"path"`
332332 CommitID string `json:"commit_id"`
333333 CreatedAt time.Time `json:"created_at"`
334334 UpdatedAt time.Time `json:"updated_at"`
@@ -344,7 +344,7 @@ type Deployment struct {
344344 Task string `json:"task"`
345345 //paylod
346346 Environment string `json:"environment"`
347- Description * string `json:"description"`
347+ Description string `json:"description"`
348348 Creator Creator `json:"creator"`
349349 CreatedAt time.Time `json:"created_at"`
350350 UpdatedAt time.Time `json:"updated_at"`
@@ -358,7 +358,7 @@ type DeploymentStatus struct {
358358 ID int `json:"id"`
359359 State string `json:"state"`
360360 Creator Creator `json:"creator"`
361- Description * string `json:"description"`
361+ Description string `json:"description"`
362362 TargetURL string `json:"target_url"`
363363 CreatedAt time.Time `json:"created_at"`
364364 UpdatedAt time.Time `json:"updated_at"`
@@ -374,22 +374,22 @@ type Forkee struct {
374374
375375// Page contains GitHub's page information
376376type Page struct {
377- PageName string `json:"page_name"`
378- Title string `json:"title"`
379- Summary * string `json:"summary"`
380- Action string `json:"action"`
381- SHA string `json:"sha"`
382- HTMLURL string `json:"html_url"`
377+ PageName string `json:"page_name"`
378+ Title string `json:"title"`
379+ Summary string `json:"summary"`
380+ Action string `json:"action"`
381+ SHA string `json:"sha"`
382+ HTMLURL string `json:"html_url"`
383383}
384384
385- // Page contains GitHub's label information
385+ // Label contains GitHub's label information
386386type Label struct {
387387 URL string `json:"url"`
388388 Name string `json:"name"`
389389 Color string `json:"color"`
390390}
391391
392- // Page contains GitHub's issue information
392+ // Issue contains GitHub's issue information
393393type Issue struct {
394394 URL string `json:"url"`
395395 LabelsURL string `json:"labels_url"`
@@ -403,8 +403,8 @@ type Issue struct {
403403 Labels []Label `json:"labels"`
404404 State string `json:"state"`
405405 Locked bool `json:"locked"`
406- Assignee * string `json:"assignee"`
407- Milestone * string `json:"milestone"`
406+ Assignee string `json:"assignee"`
407+ Milestone string `json:"milestone"`
408408 Comments int `json:"comments"`
409409 CreatedAt time.Time `json:"created_at"`
410410 UpdatedAt time.Time `json:"updated_at"`
@@ -567,9 +567,9 @@ type PullRequest struct {
567567 UpdatedAt time.Time `json:"updated_at"`
568568 ClosedAt time.Time `json:"closed_at"`
569569 MergedAt time.Time `json:"merged_at"`
570- MergeCommitSHA * string `json:"merge_commit_sha"`
571- Assignee * string `json:"assignee"`
572- Milestone * string `json:"milestone"`
570+ MergeCommitSHA string `json:"merge_commit_sha"`
571+ Assignee string `json:"assignee"`
572+ Milestone string `json:"milestone"`
573573 CommitsURL string `json:"commits_url"`
574574 ReviewCommentsURL string `json:"review_comments_url"`
575575 ReviewCommentURL string `json:"review_comment_url"`
@@ -579,9 +579,9 @@ type PullRequest struct {
579579 Base Base `json:"base"`
580580 Links LinksPullRequest `json:"_links"`
581581 Merged bool `json:"merged"`
582- Mergable * bool `json:"mergeable"`
582+ Mergable bool `json:"mergeable"`
583583 MergableState string `json:"mergeable_state"`
584- MergedBy * string `json:"merged_by"`
584+ MergedBy string `json:"merged_by"`
585585 Comments int `json:"comments"`
586586 ReviewComments int `json:"review_comments"`
587587 Commits int `json:"commits"`
@@ -633,10 +633,10 @@ type Release struct {
633633 AssetsURL string `json:"assets_url"`
634634 UploadURL string `json:"upload_url"`
635635 HTMLURL string `json:"html_url"`
636- ID string `json:"id"`
636+ ID int `json:"id"`
637637 TagName string `json:"tag_name"`
638638 TargetCommitish string `json:"target_commitish"`
639- Name * string `json:"name"`
639+ Name string `json:"name"`
640640 Draft bool `json:"draft"`
641641 Author Author `json:"author"`
642642 Prelelease bool `json:"prerelease"`
@@ -645,7 +645,7 @@ type Release struct {
645645 Assets []string `json:"assets"`
646646 TarballURL string `json:"tarball_url"`
647647 ZipballURL string `json:"zipball_url"`
648- Body * string `json:"body"`
648+ Body string `json:"body"`
649649}
650650
651651// BranchCommit contains GitHub's branch commit information
@@ -695,7 +695,7 @@ type StatusCommit struct {
695695 Commit StatusCommitInner `json:"commit"`
696696 URL string `json:"url"`
697697 HTMLURL string `json:"html_url"`
698- CommentsURL string `json:"comments_url`
698+ CommentsURL string `json:"comments_url" `
699699 Author Author `json:"author"`
700700 Committer Commiter `json:"committer"`
701701 Parents []string `json:"parents"`
0 commit comments