Compare commits

..

8 Commits

Author SHA1 Message Date
Dean Karn dfc330f6eb Update README.md 2018-11-04 07:05:03 -08:00
Dean Karn cdc59eb3ef Merge pull request #51 from pieterlexis/add-assignees
GitHub Payloads: Add `Assignees` where needed
2018-11-04 07:04:26 -08:00
Pieter Lexis a39ebc145a GitHub Payloads: Add Assignees where needed
Closes #50
2018-11-02 20:15:14 +01:00
Dean Karn 24279ccb4b Merge pull request #46 from xackery/v5
Added runner to gitlab
2018-10-24 12:36:30 -07:00
Xackery Xtal 4708dcb9f1 Added runner to gitlab 2018-10-19 18:28:45 -07:00
Dean Karn 3fda9e72e1 Update README.md 2018-08-09 12:30:00 -07:00
Dean Karn a610eb250e Merge pull request #43 from go-playground/bb-uuid-check-enhancement
only validate UUID header when expecting one
2018-08-09 12:28:51 -07:00
Dean Karn f583341fb8 only validate UUID header when expecting one 2018-08-09 12:26:52 -07:00
4 changed files with 39 additions and 29 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
Library webhooks Library webhooks
================ ================
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.0.0-green.svg) <img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.2.0-green.svg)
[![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks) [![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks)
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5) [![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5)
[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks) [![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)
+1 -1
View File
@@ -93,7 +93,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
} }
uuid := r.Header.Get("X-Hook-UUID") uuid := r.Header.Get("X-Hook-UUID")
if uuid == "" { if hook.uuid != "" && uuid == "" {
return nil, ErrMissingHookUUIDHeader return nil, ErrMissingHookUUIDHeader
} }
+2
View File
@@ -2764,6 +2764,7 @@ type PullRequestPayload struct {
MergedAt *time.Time `json:"merged_at"` MergedAt *time.Time `json:"merged_at"`
MergeCommitSha *string `json:"merge_commit_sha"` MergeCommitSha *string `json:"merge_commit_sha"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
CommitsURL string `json:"commits_url"` CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"` ReviewCommentsURL string `json:"review_comments_url"`
@@ -3701,6 +3702,7 @@ type PullRequestReviewCommentPayload struct {
MergedAt *time.Time `json:"merged_at"` MergedAt *time.Time `json:"merged_at"`
MergeCommitSha string `json:"merge_commit_sha"` MergeCommitSha string `json:"merge_commit_sha"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
CommitsURL string `json:"commits_url"` CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"` ReviewCommentsURL string `json:"review_comments_url"`
+9 -1
View File
@@ -177,10 +177,18 @@ type Build struct {
When string `json:"when"` When string `json:"when"`
Manual bool `json:"manual"` Manual bool `json:"manual"`
User User `json:"user"` User User `json:"user"`
Runner string `json:"runner"` Runner Runner `json:"runner"`
ArtifactsFile ArtifactsFile `json:"artifactsfile"` ArtifactsFile ArtifactsFile `json:"artifactsfile"`
} }
// Runner represents a runner agent
type Runner struct {
ID int64 `json:"id"`
Description string `json:"description"`
Active bool `json:"active"`
IsShared bool `json:"is_shared"`
}
// ArtifactsFile contains all of the GitLab artifact information // ArtifactsFile contains all of the GitLab artifact information
type ArtifactsFile struct { type ArtifactsFile struct {
Filename string `json:"filename"` Filename string `json:"filename"`