Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c954e23a1 | |||
| a920656418 | |||
| 06301b5ab1 | |||
| c91d10f2b2 | |||
| 1739c6dbe4 | |||
| ffc40ad83a | |||
| 2e6b4930e4 | |||
| 8618bb2b63 | |||
| 4399abf450 | |||
| f16cede744 | |||
| 3c382736e0 | |||
| ec227ef416 | |||
| e55d994db5 | |||
| 66bfeb55b9 | |||
| e1c6b6436c | |||
| 598a1cf5be | |||
| f3cedb24ac | |||
| 82e53669b8 | |||
| cd70db9922 | |||
| b3a37b9b9a | |||
| e5ab838da3 | |||
| 56d9dffd38 | |||
| c99be7dbb8 | |||
| 433ece5b7b | |||
| e6bb8aa4b7 | |||
| 8a870336ee | |||
| b6a30802e2 | |||
| a8ff1e82b4 | |||
| 5fcf4a6e13 | |||
| 1f79ca202d | |||
| b79b935d9e | |||
| fafbb08b19 | |||
| c31b74320c | |||
| 5be09cefe2 | |||
| cfd9712d30 | |||
| a7a2c8c856 |
@@ -0,0 +1,52 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
name: Test
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run linter
|
||||||
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
version: v1.35.2
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: [1.14.x, 1.15.x]
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Restore cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-v1-go-
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test -race -covermode=atomic -coverprofile="coverage.out" ./...
|
||||||
|
|
||||||
|
- name: Upload coverage report to Coveralls
|
||||||
|
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
|
||||||
|
uses: shogo82148/actions-goveralls@v1
|
||||||
|
with:
|
||||||
|
path-to-profile: coverage.out
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
run:
|
||||||
|
tests: false
|
||||||
|
skip-dirs:
|
||||||
|
- _examples
|
||||||
|
|
||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- vet
|
||||||
|
- vetshadow
|
||||||
|
- golint
|
||||||
|
- megacheck
|
||||||
|
- ineffassign
|
||||||
|
- misspell
|
||||||
|
- errcheck
|
||||||
|
- goconst
|
||||||
|
- gofmt
|
||||||
-34
@@ -1,34 +0,0 @@
|
|||||||
language: go
|
|
||||||
go:
|
|
||||||
- 1.13.15
|
|
||||||
- tip
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- go: tip
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
recipients: dean.karn@gmail.com
|
|
||||||
on_success: change
|
|
||||||
on_failure: always
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- go get -u github.com/go-playground/overalls
|
|
||||||
- go get -u github.com/mattn/goveralls
|
|
||||||
- go get -u golang.org/x/tools/cmd/cover
|
|
||||||
- mkdir -p $GOPATH/src/gopkg.in
|
|
||||||
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v2
|
|
||||||
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v3
|
|
||||||
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v4
|
|
||||||
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v5
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- go get -t ./...
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make test
|
|
||||||
|
|
||||||
after_success: |
|
|
||||||
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
|
|
||||||
overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug &&
|
|
||||||
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
|
|
||||||
@@ -1,17 +1,21 @@
|
|||||||
GOCMD=go
|
GOPATH=$(shell go env GOPATH)
|
||||||
|
|
||||||
|
all: lint test
|
||||||
|
|
||||||
linters-install:
|
linters-install:
|
||||||
@gometalinter --version >/dev/null 2>&1 || { \
|
@echo "+ $@"
|
||||||
echo "installing linting tools..."; \
|
@$(GOPATH)/bin/golangci-lint --version >/dev/null 2>&1 || { \
|
||||||
$(GOCMD) get github.com/alecthomas/gometalinter; \
|
echo "Install golangci-lint..."; \
|
||||||
gometalinter --install; \
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin; \
|
||||||
}
|
}
|
||||||
|
|
||||||
lint: linters-install
|
lint: linters-install
|
||||||
@gofmt -l . >gofmt.test 2>&1 && if [ -s gofmt.test ]; then echo "Fix formatting using 'gofmt -s -w .' for:"; cat gofmt.test; exit 1; fi && rm gofmt.test
|
@echo "+ $@"
|
||||||
gometalinter --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=megacheck --enable=ineffassign --enable=misspell --enable=errcheck --enable=goconst ./...
|
$(GOPATH)/bin/golangci-lint run ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(GOCMD) test -cover -race ./...
|
@echo "+ $@"
|
||||||
|
GO111MODULE=on go test -covermode=atomic -race ./...
|
||||||
|
|
||||||
.PHONY: test lint linters-install
|
.PHONY: test lint linters-install
|
||||||
|
.DEFAULT_GOAL := all
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
Library webhooks
|
Library webhooks
|
||||||
================
|
================
|
||||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png">
|
||||||
[](https://travis-ci.org/go-playground/webhooks)
|
[](https://github.com/go-playground/webhooks/actions)
|
||||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v5)
|
[](https://coveralls.io/github/go-playground/webhooks?branch=master)
|
||||||
[](https://goreportcard.com/report/go-playground/webhooks)
|
[](https://goreportcard.com/report/go-playground/webhooks)
|
||||||
[](https://godoc.org/gopkg.in/go-playground/webhooks.v5)
|
[](https://godoc.org/github.com/go-playground/webhooks/v6)
|
||||||

|

|
||||||
|
|
||||||
Library webhooks allows for easy receiving and parsing of GitHub, Bitbucket and GitLab Webhook Events
|
Library webhooks allows for easy receiving and parsing of GitHub, Bitbucket and GitLab Webhook Events
|
||||||
@@ -24,17 +24,17 @@ Installation
|
|||||||
Use go get.
|
Use go get.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
go get -u gopkg.in/go-playground/webhooks.v5
|
go get -u github.com/go-playground/webhooks/v6
|
||||||
```
|
```
|
||||||
|
|
||||||
Then import the package into your own code.
|
Then import the package into your own code.
|
||||||
|
|
||||||
import "gopkg.in/go-playground/webhooks.v5"
|
import "github.com/go-playground/webhooks/v6"
|
||||||
|
|
||||||
Usage and Documentation
|
Usage and Documentation
|
||||||
------
|
------
|
||||||
|
|
||||||
Please see http://godoc.org/gopkg.in/go-playground/webhooks.v5 for detailed usage docs.
|
Please see http://godoc.org/github.com/go-playground/webhooks/v6 for detailed usage docs.
|
||||||
|
|
||||||
##### Examples:
|
##### Examples:
|
||||||
```go
|
```go
|
||||||
@@ -45,7 +45,7 @@ import (
|
|||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks.v5/github"
|
"github.com/go-playground/webhooks/v6/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks.v5/github"
|
"github.com/go-playground/webhooks/v6/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gopkg.in/go-playground/webhooks.v5/github"
|
"github.com/go-playground/webhooks/v6/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ type PullRequestCommentAddedPayload struct {
|
|||||||
Actor User `json:"actor"`
|
Actor User `json:"actor"`
|
||||||
PullRequest PullRequest `json:"pullRequest"`
|
PullRequest PullRequest `json:"pullRequest"`
|
||||||
Comment Comment `json:"comment"`
|
Comment Comment `json:"comment"`
|
||||||
CommentParentId uint64 `json:"commentParentId,omitempty"`
|
CommentParentID uint64 `json:"commentParentId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PullRequestCommentEditedPayload struct {
|
type PullRequestCommentEditedPayload struct {
|
||||||
@@ -156,7 +156,7 @@ type PullRequestCommentEditedPayload struct {
|
|||||||
Actor User `json:"actor"`
|
Actor User `json:"actor"`
|
||||||
PullRequest PullRequest `json:"pullRequest"`
|
PullRequest PullRequest `json:"pullRequest"`
|
||||||
Comment Comment `json:"comment"`
|
Comment Comment `json:"comment"`
|
||||||
CommentParentId string `json:"commentParentId,omitempty"`
|
CommentParentID string `json:"commentParentId,omitempty"`
|
||||||
PreviousComment string `json:"previousComment"`
|
PreviousComment string `json:"previousComment"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ type PullRequestCommentDeletedPayload struct {
|
|||||||
Actor User `json:"actor"`
|
Actor User `json:"actor"`
|
||||||
PullRequest PullRequest `json:"pullRequest"`
|
PullRequest PullRequest `json:"pullRequest"`
|
||||||
Comment Comment `json:"comment"`
|
Comment Comment `json:"comment"`
|
||||||
CommentParentId uint64 `json:"commentParentId,omitempty"`
|
CommentParentID uint64 `json:"commentParentId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------
|
// -----------------------
|
||||||
@@ -186,7 +186,7 @@ type Repository struct {
|
|||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
ScmId string `json:"scmId"`
|
ScmID string `json:"scmId"`
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
StatusMessage string `json:"statusMessage"`
|
StatusMessage string `json:"statusMessage"`
|
||||||
Forkable bool `json:"forkable"`
|
Forkable bool `json:"forkable"`
|
||||||
@@ -229,7 +229,7 @@ type PullRequest struct {
|
|||||||
|
|
||||||
type RepositoryChange struct {
|
type RepositoryChange struct {
|
||||||
Reference RepositoryReference `json:"ref"`
|
Reference RepositoryReference `json:"ref"`
|
||||||
ReferenceId string `json:"refId"`
|
ReferenceID string `json:"refId"`
|
||||||
FromHash string `json:"fromHash"`
|
FromHash string `json:"fromHash"`
|
||||||
ToHash string `json:"toHash"`
|
ToHash string `json:"toHash"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
@@ -237,7 +237,7 @@ type RepositoryChange struct {
|
|||||||
|
|
||||||
type RepositoryReference struct {
|
type RepositoryReference struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
DisplayId string `json:"displayId"`
|
DisplayID string `json:"displayId"`
|
||||||
Type string `json:"type,omitempty"`
|
Type string `json:"type,omitempty"`
|
||||||
LatestCommit string `json:"latestCommit,omitempty"`
|
LatestCommit string `json:"latestCommit,omitempty"`
|
||||||
Repository Repository `json:"repository,omitempty"`
|
Repository Repository `json:"repository,omitempty"`
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ type Owner struct {
|
|||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
NickName string `json:"nickname"`
|
NickName string `json:"nickname"`
|
||||||
DisplayName string `json:"display_name"`
|
DisplayName string `json:"display_name"`
|
||||||
AccountId string `json:"account_id"`
|
AccountID string `json:"account_id"`
|
||||||
UUID string `json:"uuid"`
|
UUID string `json:"uuid"`
|
||||||
Links struct {
|
Links struct {
|
||||||
Self struct {
|
Self struct {
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,6 @@
|
|||||||
package docker
|
package docker
|
||||||
|
|
||||||
// this package recieves the Docker Hub Automated Build webhook
|
// this package receives the Docker Hub Automated Build webhook
|
||||||
// https://docs.docker.com/docker-hub/webhooks/
|
// https://docs.docker.com/docker-hub/webhooks/
|
||||||
// NOT the Docker Trusted Registry webhook
|
// NOT the Docker Trusted Registry webhook
|
||||||
// https://docs.docker.com/ee/dtr/user/create-and-manage-webhooks/
|
// https://docs.docker.com/ee/dtr/user/create-and-manage-webhooks/
|
||||||
@@ -58,7 +58,6 @@ type BuildPayload struct {
|
|||||||
|
|
||||||
// Webhook instance contains all methods needed to process events
|
// Webhook instance contains all methods needed to process events
|
||||||
type Webhook struct {
|
type Webhook struct {
|
||||||
secret string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates and returns a WebHook instance
|
// New creates and returns a WebHook instance
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ const (
|
|||||||
CommitCommentEvent Event = "commit_comment"
|
CommitCommentEvent Event = "commit_comment"
|
||||||
CreateEvent Event = "create"
|
CreateEvent Event = "create"
|
||||||
DeleteEvent Event = "delete"
|
DeleteEvent Event = "delete"
|
||||||
|
DeployKeyEvent Event = "deploy_key"
|
||||||
DeploymentEvent Event = "deployment"
|
DeploymentEvent Event = "deployment"
|
||||||
DeploymentStatusEvent Event = "deployment_status"
|
DeploymentStatusEvent Event = "deployment_status"
|
||||||
ForkEvent Event = "fork"
|
ForkEvent Event = "fork"
|
||||||
@@ -68,6 +69,9 @@ const (
|
|||||||
TeamEvent Event = "team"
|
TeamEvent Event = "team"
|
||||||
TeamAddEvent Event = "team_add"
|
TeamAddEvent Event = "team_add"
|
||||||
WatchEvent Event = "watch"
|
WatchEvent Event = "watch"
|
||||||
|
WorkflowDispatchEvent Event = "workflow_dispatch"
|
||||||
|
WorkflowJobEvent Event = "workflow_job"
|
||||||
|
WorkflowRunEvent Event = "workflow_run"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EventSubtype defines a GitHub Hook Event subtype
|
// EventSubtype defines a GitHub Hook Event subtype
|
||||||
@@ -184,6 +188,10 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
|||||||
var pl CreatePayload
|
var pl CreatePayload
|
||||||
err = json.Unmarshal([]byte(payload), &pl)
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
return pl, err
|
return pl, err
|
||||||
|
case DeployKeyEvent:
|
||||||
|
var pl DeployKeyPayload
|
||||||
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
|
return pl, err
|
||||||
case DeleteEvent:
|
case DeleteEvent:
|
||||||
var pl DeletePayload
|
var pl DeletePayload
|
||||||
err = json.Unmarshal([]byte(payload), &pl)
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
@@ -320,6 +328,18 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
|||||||
var pl WatchPayload
|
var pl WatchPayload
|
||||||
err = json.Unmarshal([]byte(payload), &pl)
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
return pl, err
|
return pl, err
|
||||||
|
case WorkflowDispatchEvent:
|
||||||
|
var pl WorkflowDispatchPayload
|
||||||
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
|
return pl, err
|
||||||
|
case WorkflowJobEvent:
|
||||||
|
var pl WorkflowJobPayload
|
||||||
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
|
return pl, err
|
||||||
|
case WorkflowRunEvent:
|
||||||
|
var pl WorkflowRunPayload
|
||||||
|
err = json.Unmarshal([]byte(payload), &pl)
|
||||||
|
return pl, err
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unknown event %s", gitHubEvent)
|
return nil, fmt.Errorf("unknown event %s", gitHubEvent)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -183,6 +183,16 @@ func TestWebhooks(t *testing.T) {
|
|||||||
"X-Hub-Signature": []string{"sha1=4ddef04fd05b504c7041e294fca3ad1804bc7be1"},
|
"X-Hub-Signature": []string{"sha1=4ddef04fd05b504c7041e294fca3ad1804bc7be1"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "DeployKeyEvent",
|
||||||
|
event: DeployKeyEvent,
|
||||||
|
typ: DeployKeyPayload{},
|
||||||
|
filename: "../testdata/github/deploy_key.json",
|
||||||
|
headers: http.Header{
|
||||||
|
"X-Github-Event": []string{"deploy_key"},
|
||||||
|
"X-Hub-Signature": []string{"sha1=dc9eea5621f5942542c94443cd2b71c8d7526168"},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "DeploymentEvent",
|
name: "DeploymentEvent",
|
||||||
event: DeploymentEvent,
|
event: DeploymentEvent,
|
||||||
@@ -533,6 +543,36 @@ func TestWebhooks(t *testing.T) {
|
|||||||
"X-Hub-Signature": []string{"sha1=a317bcfe69ccb8bece74c20c7378e5413c4772f1"},
|
"X-Hub-Signature": []string{"sha1=a317bcfe69ccb8bece74c20c7378e5413c4772f1"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "WorkflowDispatchEvent",
|
||||||
|
event: WorkflowDispatchEvent,
|
||||||
|
typ: WorkflowDispatchPayload{},
|
||||||
|
filename: "../testdata/github/workflow_dispatch.json",
|
||||||
|
headers: http.Header{
|
||||||
|
"X-Github-Event": []string{"workflow_dispatch"},
|
||||||
|
"X-Hub-Signature": []string{"sha1=58db5b3c7e2391b34275d42256e0eda67e4997b9"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "WorkflowJobEvent",
|
||||||
|
event: WorkflowJobEvent,
|
||||||
|
typ: WorkflowJobPayload{},
|
||||||
|
filename: "../testdata/github/workflow_job.json",
|
||||||
|
headers: http.Header{
|
||||||
|
"X-Github-Event": []string{"workflow_job"},
|
||||||
|
"X-Hub-Signature": []string{"sha1=2f22091ecf169313c9991f5f98ef3dffb069841b"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "WorkflowRunEvent",
|
||||||
|
event: WorkflowRunEvent,
|
||||||
|
typ: WorkflowRunPayload{},
|
||||||
|
filename: "../testdata/github/workflow_run.json",
|
||||||
|
headers: http.Header{
|
||||||
|
"X-Github-Event": []string{"workflow_run"},
|
||||||
|
"X-Hub-Signature": []string{"sha1=c54d046b1ce440bc3434c8de5ad73e0a630d7cbe"},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
|||||||
+825
-38
@@ -13,7 +13,7 @@ type CheckRunPayload struct {
|
|||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Conclusion string `json:"conclusion"`
|
Conclusion string `json:"conclusion"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
HtmlURL string `json:"html_url"`
|
HTMLURL string `json:"html_url"`
|
||||||
StarterAt time.Time `json:"started_at"`
|
StarterAt time.Time `json:"started_at"`
|
||||||
CompletedAt time.Time `json:"completed_at"`
|
CompletedAt time.Time `json:"completed_at"`
|
||||||
Output struct {
|
Output struct {
|
||||||
@@ -59,7 +59,7 @@ type CheckRunPayload struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ExternalURL string `json:"external_url"`
|
ExternalURL string `json:"external_url"`
|
||||||
HtmlURL string `json:"html_url"`
|
HTMLURL string `json:"html_url"`
|
||||||
CreatedAt string `json:"created_at"`
|
CreatedAt string `json:"created_at"`
|
||||||
UpdatedAt string `json:"updated_at"`
|
UpdatedAt string `json:"updated_at"`
|
||||||
} `json:"app"`
|
} `json:"app"`
|
||||||
@@ -92,7 +92,7 @@ type CheckRunPayload struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ExternalURL string `json:"external_url"`
|
ExternalURL string `json:"external_url"`
|
||||||
HtmlURL string `json:"html_url"`
|
HTMLURL string `json:"html_url"`
|
||||||
CreatedAt string `json:"created_at"`
|
CreatedAt string `json:"created_at"`
|
||||||
UpdatedAt string `json:"updated_at"`
|
UpdatedAt string `json:"updated_at"`
|
||||||
} `json:"app"`
|
} `json:"app"`
|
||||||
@@ -187,6 +187,9 @@ type CheckRunPayload struct {
|
|||||||
Watchers int64 `json:"watchers"`
|
Watchers int64 `json:"watchers"`
|
||||||
DefaultBranch string `json:"default_branch"`
|
DefaultBranch string `json:"default_branch"`
|
||||||
} `json:"repository"`
|
} `json:"repository"`
|
||||||
|
Installation struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
} `json:"installation,omitempty"`
|
||||||
Sender struct {
|
Sender struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
@@ -249,7 +252,7 @@ type CheckSuitePayload struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ExternalURL string `json:"external_url"`
|
ExternalURL string `json:"external_url"`
|
||||||
HtmlURL string `json:"html_url"`
|
HTMLURL string `json:"html_url"`
|
||||||
CreatedAt string `json:"created_at"`
|
CreatedAt string `json:"created_at"`
|
||||||
UpdatedAt string `json:"updated_at"`
|
UpdatedAt string `json:"updated_at"`
|
||||||
} `json:"app"`
|
} `json:"app"`
|
||||||
@@ -359,6 +362,9 @@ type CheckSuitePayload struct {
|
|||||||
Watchers int64 `json:"watchers"`
|
Watchers int64 `json:"watchers"`
|
||||||
DefaultBranch string `json:"default_branch"`
|
DefaultBranch string `json:"default_branch"`
|
||||||
} `json:"repository"`
|
} `json:"repository"`
|
||||||
|
Installation struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
} `json:"installation,omitempty"`
|
||||||
Sender struct {
|
Sender struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
@@ -763,6 +769,133 @@ type DeletePayload struct {
|
|||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeployKeyPayload contains the information for GitHub's deploy_key hook
|
||||||
|
type DeployKeyPayload struct {
|
||||||
|
Action string `json:"action"`
|
||||||
|
Key struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
Key string `json:"key"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
Title string `json:"title"`
|
||||||
|
Verified bool `json:"verified"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
ReadOnly bool `json:"read_only"`
|
||||||
|
} `json:"key"`
|
||||||
|
Repository struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
FullName string `json:"full_name"`
|
||||||
|
Owner struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"owner"`
|
||||||
|
Private bool `json:"private"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Description interface{} `json:"description"`
|
||||||
|
Fork bool `json:"fork"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ForksURL string `json:"forks_url"`
|
||||||
|
KeysURL string `json:"keys_url"`
|
||||||
|
CollaboratorsURL string `json:"collaborators_url"`
|
||||||
|
TeamsURL string `json:"teams_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssueEventsURL string `json:"issue_events_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
AssigneesURL string `json:"assignees_url"`
|
||||||
|
BranchesURL string `json:"branches_url"`
|
||||||
|
TagsURL string `json:"tags_url"`
|
||||||
|
BlobsURL string `json:"blobs_url"`
|
||||||
|
GitTagsURL string `json:"git_tags_url"`
|
||||||
|
GitRefsURL string `json:"git_refs_url"`
|
||||||
|
TreesURL string `json:"trees_url"`
|
||||||
|
StatusesURL string `json:"statuses_url"`
|
||||||
|
LanguagesURL string `json:"languages_url"`
|
||||||
|
StargazersURL string `json:"stargazers_url"`
|
||||||
|
ContributorsURL string `json:"contributors_url"`
|
||||||
|
SubscribersURL string `json:"subscribers_url"`
|
||||||
|
SubscriptionURL string `json:"subscription_url"`
|
||||||
|
CommitsURL string `json:"commits_url"`
|
||||||
|
GitCommitsURL string `json:"git_commits_url"`
|
||||||
|
CommentsURL string `json:"comments_url"`
|
||||||
|
IssueCommentURL string `json:"issue_comment_url"`
|
||||||
|
ContentsURL string `json:"contents_url"`
|
||||||
|
CompareURL string `json:"compare_url"`
|
||||||
|
MergesURL string `json:"merges_url"`
|
||||||
|
ArchiveURL string `json:"archive_url"`
|
||||||
|
DownloadsURL string `json:"downloads_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
PullsURL string `json:"pulls_url"`
|
||||||
|
MilestonesURL string `json:"milestones_url"`
|
||||||
|
NotificationsURL string `json:"notifications_url"`
|
||||||
|
LabelsURL string `json:"labels_url"`
|
||||||
|
ReleasesURL string `json:"releases_url"`
|
||||||
|
DeploymentsURL string `json:"deployments_url"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
PushedAt time.Time `json:"pushed_at"`
|
||||||
|
GitURL string `json:"git_url"`
|
||||||
|
SSHURL string `json:"ssh_url"`
|
||||||
|
CloneURL string `json:"clone_url"`
|
||||||
|
SvnURL string `json:"svn_url"`
|
||||||
|
Homepage interface{} `json:"homepage"`
|
||||||
|
Size int `json:"size"`
|
||||||
|
StargazersCount int `json:"stargazers_count"`
|
||||||
|
WatchersCount int `json:"watchers_count"`
|
||||||
|
Language interface{} `json:"language"`
|
||||||
|
HasIssues bool `json:"has_issues"`
|
||||||
|
HasProjects bool `json:"has_projects"`
|
||||||
|
HasDownloads bool `json:"has_downloads"`
|
||||||
|
HasWiki bool `json:"has_wiki"`
|
||||||
|
HasPages bool `json:"has_pages"`
|
||||||
|
ForksCount int `json:"forks_count"`
|
||||||
|
MirrorURL interface{} `json:"mirror_url"`
|
||||||
|
Archived bool `json:"archived"`
|
||||||
|
OpenIssuesCount int `json:"open_issues_count"`
|
||||||
|
License interface{} `json:"license"`
|
||||||
|
Forks int `json:"forks"`
|
||||||
|
OpenIssues int `json:"open_issues"`
|
||||||
|
Watchers int `json:"watchers"`
|
||||||
|
DefaultBranch string `json:"default_branch"`
|
||||||
|
} `json:"repository"`
|
||||||
|
Sender struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"sender"`
|
||||||
|
}
|
||||||
|
|
||||||
// DeploymentPayload contains the information for GitHub's deployment hook
|
// DeploymentPayload contains the information for GitHub's deployment hook
|
||||||
type DeploymentPayload struct {
|
type DeploymentPayload struct {
|
||||||
Deployment struct {
|
Deployment struct {
|
||||||
@@ -1464,6 +1597,7 @@ type InstallationPayload struct {
|
|||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
FullName string `json:"full_name"`
|
FullName string `json:"full_name"`
|
||||||
|
Private bool `json:"private"`
|
||||||
} `json:"repositories"`
|
} `json:"repositories"`
|
||||||
Sender struct {
|
Sender struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
@@ -2267,16 +2401,7 @@ type MembershipPayload struct {
|
|||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
SiteAdmin bool `json:"site_admin"`
|
SiteAdmin bool `json:"site_admin"`
|
||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
Team struct {
|
Team *Team `json:"team"`
|
||||||
Name string `json:"name"`
|
|
||||||
ID int64 `json:"id"`
|
|
||||||
NodeID string `json:"node_id"`
|
|
||||||
Slug string `json:"slug"`
|
|
||||||
Permission string `json:"permission"`
|
|
||||||
URL string `json:"url"`
|
|
||||||
MembersURL string `json:"members_url"`
|
|
||||||
RepositoriesURL string `json:"repositories_url"`
|
|
||||||
} `json:"team"`
|
|
||||||
Organization struct {
|
Organization struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
@@ -5693,19 +5818,8 @@ type StatusPayload struct {
|
|||||||
|
|
||||||
// TeamPayload contains the information for GitHub's team hook event
|
// TeamPayload contains the information for GitHub's team hook event
|
||||||
type TeamPayload struct {
|
type TeamPayload struct {
|
||||||
Action string `json:"action"`
|
Action string `json:"action"`
|
||||||
Team struct {
|
Team *Team `json:"team"`
|
||||||
Name string `json:"name"`
|
|
||||||
ID int64 `json:"id"`
|
|
||||||
NodeID string `json:"node_id"`
|
|
||||||
Slug string `json:"slug"`
|
|
||||||
Description string `json:"description"`
|
|
||||||
Privacy string `json:"privacy"`
|
|
||||||
URL string `json:"url"`
|
|
||||||
MembersURL string `json:"members_url"`
|
|
||||||
RepositoriesURL string `json:"repositories_url"`
|
|
||||||
Permission string `json:"permission"`
|
|
||||||
} `json:"team"`
|
|
||||||
Organization struct {
|
Organization struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
@@ -5744,17 +5858,7 @@ type TeamPayload struct {
|
|||||||
|
|
||||||
// TeamAddPayload contains the information for GitHub's team_add hook event
|
// TeamAddPayload contains the information for GitHub's team_add hook event
|
||||||
type TeamAddPayload struct {
|
type TeamAddPayload struct {
|
||||||
Team struct {
|
Team *Team `json:"team"`
|
||||||
Name string `json:"name"`
|
|
||||||
ID int64 `json:"id"`
|
|
||||||
NodeID string `json:"node_id"`
|
|
||||||
Slug string `json:"slug"`
|
|
||||||
Description string `json:"description"`
|
|
||||||
Permission string `json:"permission"`
|
|
||||||
URL string `json:"url"`
|
|
||||||
MembersURL string `json:"members_url"`
|
|
||||||
RepositoriesURL string `json:"repositories_url"`
|
|
||||||
} `json:"team"`
|
|
||||||
Repository struct {
|
Repository struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
@@ -5992,6 +6096,666 @@ type WatchPayload struct {
|
|||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WorkflowDispatchPayload contains the information for GitHub's workflow dispatch event
|
||||||
|
type WorkflowDispatchPayload struct {
|
||||||
|
Inputs struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
|
Ref string `json:"ref"`
|
||||||
|
Repository struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
FullName string `json:"full_name"`
|
||||||
|
Owner struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"owner"`
|
||||||
|
Private bool `json:"private"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Fork bool `json:"fork"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ForksURL string `json:"forks_url"`
|
||||||
|
KeysURL string `json:"keys_url"`
|
||||||
|
CollaboratorsURL string `json:"collaborators_url"`
|
||||||
|
TeamsURL string `json:"teams_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssueEventsURL string `json:"issue_events_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
AssigneesURL string `json:"assignees_url"`
|
||||||
|
BranchesURL string `json:"branches_url"`
|
||||||
|
TagsURL string `json:"tags_url"`
|
||||||
|
BlobsURL string `json:"blobs_url"`
|
||||||
|
GitTagsURL string `json:"git_tags_url"`
|
||||||
|
GitRefsURL string `json:"git_refs_url"`
|
||||||
|
TreesURL string `json:"trees_url"`
|
||||||
|
StatusesURL string `json:"statuses_url"`
|
||||||
|
LanguagesURL string `json:"languages_url"`
|
||||||
|
StargazersURL string `json:"stargazers_url"`
|
||||||
|
ContributorsURL string `json:"contributors_url"`
|
||||||
|
SubscribersURL string `json:"subscribers_url"`
|
||||||
|
SubscriptionURL string `json:"subscription_url"`
|
||||||
|
CommitsURL string `json:"commits_url"`
|
||||||
|
GitCommitsURL string `json:"git_commits_url"`
|
||||||
|
CommentsURL string `json:"comments_url"`
|
||||||
|
IssueCommentURL string `json:"issue_comment_url"`
|
||||||
|
ContentsURL string `json:"contents_url"`
|
||||||
|
CompareURL string `json:"compare_url"`
|
||||||
|
MergesURL string `json:"merges_url"`
|
||||||
|
ArchiveURL string `json:"archive_url"`
|
||||||
|
DownloadsURL string `json:"downloads_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
PullsURL string `json:"pulls_url"`
|
||||||
|
MilestonesURL string `json:"milestones_url"`
|
||||||
|
NotificationsURL string `json:"notifications_url"`
|
||||||
|
LabelsURL string `json:"labels_url"`
|
||||||
|
ReleasesURL string `json:"releases_url"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
PushedAt time.Time `json:"pushed_at"`
|
||||||
|
GitURL string `json:"git_url"`
|
||||||
|
SSHURL string `json:"ssh_url"`
|
||||||
|
CloneURL string `json:"clone_url"`
|
||||||
|
SvnURL string `json:"svn_url"`
|
||||||
|
Homepage *string `json:"homepage"`
|
||||||
|
Size int64 `json:"size"`
|
||||||
|
StargazersCount int64 `json:"stargazers_count"`
|
||||||
|
WatchersCount int64 `json:"watchers_count"`
|
||||||
|
Language *string `json:"language"`
|
||||||
|
HasIssues bool `json:"has_issues"`
|
||||||
|
HasDownloads bool `json:"has_downloads"`
|
||||||
|
HasWiki bool `json:"has_wiki"`
|
||||||
|
HasPages bool `json:"has_pages"`
|
||||||
|
ForksCount int64 `json:"forks_count"`
|
||||||
|
MirrorURL *string `json:"mirror_url"`
|
||||||
|
OpenIssuesCount int64 `json:"open_issues_count"`
|
||||||
|
Forks int64 `json:"forks"`
|
||||||
|
OpenIssues int64 `json:"open_issues"`
|
||||||
|
Watchers int64 `json:"watchers"`
|
||||||
|
DefaultBranch string `json:"default_branch"`
|
||||||
|
} `json:"repository"`
|
||||||
|
Organization struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
MembersURL string `json:"members_url"`
|
||||||
|
PublicMembersURL string `json:"public_members_url"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
} `json:"organization"`
|
||||||
|
Sender struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"sender"`
|
||||||
|
Workflow string `json:"workflow"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// WorkflowJobPayload contains the information for GitHub's workflow job event
|
||||||
|
type WorkflowJobPayload struct {
|
||||||
|
Action string `json:"action"`
|
||||||
|
WorkflowJob struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
RunID int64 `json:"run_id"`
|
||||||
|
RunURL string `json:"run_url"`
|
||||||
|
RunAttempt int64 `json:"run_attempt"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
HeadSha string `json:"head_sha"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Status string `json:"status"`
|
||||||
|
Conclusion string `json:"conclusion"`
|
||||||
|
StartedAt time.Time `json:"started_at"`
|
||||||
|
CompletedAt time.Time `json:"completed_at"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Steps []struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Status string `json:"status"`
|
||||||
|
Conclusion string `json:"conclusion"`
|
||||||
|
Number int64 `json:"number"`
|
||||||
|
StartedAt time.Time `json:"started_at"`
|
||||||
|
CompletedAt time.Time `json:"completed_at"`
|
||||||
|
} `json:"steps"`
|
||||||
|
CheckRunURL string `json:"check_run_url"`
|
||||||
|
Labels []string `json:"labels"`
|
||||||
|
RunnerID int64 `json:"runner_id"`
|
||||||
|
RunnerName string `json:"runner_name"`
|
||||||
|
RunnerGroupID int64 `json:"runner_group_id"`
|
||||||
|
RunnerGroupName string `json:"runner_group_name"`
|
||||||
|
} `json:"workflow_job"`
|
||||||
|
Repository struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
FullName string `json:"full_name"`
|
||||||
|
Private bool `json:"private"`
|
||||||
|
Owner struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"owner"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Fork bool `json:"fork"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ForksURL string `json:"forks_url"`
|
||||||
|
KeysURL string `json:"keys_url"`
|
||||||
|
CollaboratorsURL string `json:"collaborators_url"`
|
||||||
|
TeamsURL string `json:"teams_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssueEventsURL string `json:"issue_events_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
AssigneesURL string `json:"assignees_url"`
|
||||||
|
BranchesURL string `json:"branches_url"`
|
||||||
|
TagsURL string `json:"tags_url"`
|
||||||
|
BlobsURL string `json:"blobs_url"`
|
||||||
|
GitTagsURL string `json:"git_tags_url"`
|
||||||
|
GitRefsURL string `json:"git_refs_url"`
|
||||||
|
TreesURL string `json:"trees_url"`
|
||||||
|
StatusesURL string `json:"statuses_url"`
|
||||||
|
LanguagesURL string `json:"languages_url"`
|
||||||
|
StargazersURL string `json:"stargazers_url"`
|
||||||
|
ContributorsURL string `json:"contributors_url"`
|
||||||
|
SubscribersURL string `json:"subscribers_url"`
|
||||||
|
SubscriptionURL string `json:"subscription_url"`
|
||||||
|
CommitsURL string `json:"commits_url"`
|
||||||
|
GitCommitsURL string `json:"git_commits_url"`
|
||||||
|
CommentsURL string `json:"comments_url"`
|
||||||
|
IssueCommentURL string `json:"issue_comment_url"`
|
||||||
|
ContentsURL string `json:"contents_url"`
|
||||||
|
CompareURL string `json:"compare_url"`
|
||||||
|
MergesURL string `json:"merges_url"`
|
||||||
|
ArchiveURL string `json:"archive_url"`
|
||||||
|
DownloadsURL string `json:"downloads_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
PullsURL string `json:"pulls_url"`
|
||||||
|
MilestonesURL string `json:"milestones_url"`
|
||||||
|
NotificationsURL string `json:"notifications_url"`
|
||||||
|
LabelsURL string `json:"labels_url"`
|
||||||
|
ReleasesURL string `json:"releases_url"`
|
||||||
|
DeploymentsURL string `json:"deployments_url"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
PushedAt time.Time `json:"pushed_at"`
|
||||||
|
GitURL string `json:"git_url"`
|
||||||
|
SSHURL string `json:"ssh_url"`
|
||||||
|
CloneURL string `json:"clone_url"`
|
||||||
|
SvnURL string `json:"svn_url"`
|
||||||
|
Homepage *string `json:"homepage"`
|
||||||
|
Size int64 `json:"size"`
|
||||||
|
StargazersCount int64 `json:"stargazers_count"`
|
||||||
|
WatchersCount int64 `json:"watchers_count"`
|
||||||
|
Language *string `json:"language"`
|
||||||
|
HasIssues bool `json:"has_issues"`
|
||||||
|
HasProjects bool `json:"has_projects"`
|
||||||
|
HasDownloads bool `json:"has_downloads"`
|
||||||
|
HasWiki bool `json:"has_wiki"`
|
||||||
|
HasPages bool `json:"has_pages"`
|
||||||
|
ForksCount int64 `json:"forks_count"`
|
||||||
|
MirrorURL *string `json:"mirror_url"`
|
||||||
|
Archived bool `json:"archived"`
|
||||||
|
Disabled bool `json:"disabled"`
|
||||||
|
OpenIssuesCount int64 `json:"open_issues_count"`
|
||||||
|
License struct {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
SpdxID string `json:"spdx_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
} `json:"license"`
|
||||||
|
AllowForking bool `json:"allow_forking"`
|
||||||
|
IsTemplate bool `json:"is_template"`
|
||||||
|
// Topics []interface{} `json:"topics"`
|
||||||
|
Visibility string `json:"visibility"`
|
||||||
|
Forks int64 `json:"forks"`
|
||||||
|
OpenIssues int64 `json:"open_issues"`
|
||||||
|
Watchers int64 `json:"watchers"`
|
||||||
|
DefaultBranch string `json:"default_branch"`
|
||||||
|
} `json:"repository"`
|
||||||
|
Organization struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
MembersURL string `json:"members_url"`
|
||||||
|
PublicMembersURL string `json:"public_members_url"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
} `json:"organization"`
|
||||||
|
Enterprise struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
Slug string `json:"slug"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
// Description interface{} `json:"description"`
|
||||||
|
// WebsiteURL interface{} `json:"website_url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
} `json:"enterprise"`
|
||||||
|
Sender struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"sender"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// WorkflowRunPayload contains the information for GitHub's workflow run event
|
||||||
|
type WorkflowRunPayload struct {
|
||||||
|
Action string `json:"action"`
|
||||||
|
WorkflowRun struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
HeadBranch string `json:"head_branch"`
|
||||||
|
HeadSha string `json:"head_sha"`
|
||||||
|
RunNumber int64 `json:"run_number"`
|
||||||
|
Event string `json:"event"`
|
||||||
|
Status string `json:"status"`
|
||||||
|
Conclusion string `json:"conclusion"`
|
||||||
|
WorkflowID int64 `json:"workflow_id"`
|
||||||
|
CheckSuiteID int64 `json:"check_suite_id"`
|
||||||
|
CheckSuiteNodeID string `json:"check_suite_node_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
// PullRequests []interface{} `json:"pull_requests"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
RunAttempt int64 `json:"run_attempt"`
|
||||||
|
RunStartedAt time.Time `json:"run_started_at"`
|
||||||
|
JobsURL string `json:"jobs_url"`
|
||||||
|
LogsURL string `json:"logs_url"`
|
||||||
|
CheckSuiteURL string `json:"check_suite_url"`
|
||||||
|
ArtifactsURL string `json:"artifacts_url"`
|
||||||
|
CancelURL string `json:"cancel_url"`
|
||||||
|
RerunURL string `json:"rerun_url"`
|
||||||
|
// PreviousAttemptURL interface{} `json:"previous_attempt_url"`
|
||||||
|
WorkflowURL string `json:"workflow_url"`
|
||||||
|
HeadCommit struct {
|
||||||
|
ID string `json:"id"`
|
||||||
|
TreeID string `json:"tree_id"`
|
||||||
|
Message string `json:"message"`
|
||||||
|
Timestamp time.Time `json:"timestamp"`
|
||||||
|
Author struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Email string `json:"email"`
|
||||||
|
} `json:"author"`
|
||||||
|
Committer struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Email string `json:"email"`
|
||||||
|
} `json:"committer"`
|
||||||
|
} `json:"head_commit"`
|
||||||
|
Repository struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
FullName string `json:"full_name"`
|
||||||
|
Private bool `json:"private"`
|
||||||
|
Owner struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"owner"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Fork bool `json:"fork"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ForksURL string `json:"forks_url"`
|
||||||
|
KeysURL string `json:"keys_url"`
|
||||||
|
CollaboratorsURL string `json:"collaborators_url"`
|
||||||
|
TeamsURL string `json:"teams_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssueEventsURL string `json:"issue_events_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
AssigneesURL string `json:"assignees_url"`
|
||||||
|
BranchesURL string `json:"branches_url"`
|
||||||
|
TagsURL string `json:"tags_url"`
|
||||||
|
BlobsURL string `json:"blobs_url"`
|
||||||
|
GitTagsURL string `json:"git_tags_url"`
|
||||||
|
GitRefsURL string `json:"git_refs_url"`
|
||||||
|
TreesURL string `json:"trees_url"`
|
||||||
|
StatusesURL string `json:"statuses_url"`
|
||||||
|
LanguagesURL string `json:"languages_url"`
|
||||||
|
StargazersURL string `json:"stargazers_url"`
|
||||||
|
ContributorsURL string `json:"contributors_url"`
|
||||||
|
SubscribersURL string `json:"subscribers_url"`
|
||||||
|
SubscriptionURL string `json:"subscription_url"`
|
||||||
|
CommitsURL string `json:"commits_url"`
|
||||||
|
GitCommitsURL string `json:"git_commits_url"`
|
||||||
|
CommentsURL string `json:"comments_url"`
|
||||||
|
IssueCommentURL string `json:"issue_comment_url"`
|
||||||
|
ContentsURL string `json:"contents_url"`
|
||||||
|
CompareURL string `json:"compare_url"`
|
||||||
|
MergesURL string `json:"merges_url"`
|
||||||
|
ArchiveURL string `json:"archive_url"`
|
||||||
|
DownloadsURL string `json:"downloads_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
PullsURL string `json:"pulls_url"`
|
||||||
|
MilestonesURL string `json:"milestones_url"`
|
||||||
|
NotificationsURL string `json:"notifications_url"`
|
||||||
|
LabelsURL string `json:"labels_url"`
|
||||||
|
ReleasesURL string `json:"releases_url"`
|
||||||
|
DeploymentsURL string `json:"deployments_url"`
|
||||||
|
} `json:"repository"`
|
||||||
|
HeadRepository struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
FullName string `json:"full_name"`
|
||||||
|
Private bool `json:"private"`
|
||||||
|
Owner struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"owner"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Fork bool `json:"fork"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ForksURL string `json:"forks_url"`
|
||||||
|
KeysURL string `json:"keys_url"`
|
||||||
|
CollaboratorsURL string `json:"collaborators_url"`
|
||||||
|
TeamsURL string `json:"teams_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssueEventsURL string `json:"issue_events_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
AssigneesURL string `json:"assignees_url"`
|
||||||
|
BranchesURL string `json:"branches_url"`
|
||||||
|
TagsURL string `json:"tags_url"`
|
||||||
|
BlobsURL string `json:"blobs_url"`
|
||||||
|
GitTagsURL string `json:"git_tags_url"`
|
||||||
|
GitRefsURL string `json:"git_refs_url"`
|
||||||
|
TreesURL string `json:"trees_url"`
|
||||||
|
StatusesURL string `json:"statuses_url"`
|
||||||
|
LanguagesURL string `json:"languages_url"`
|
||||||
|
StargazersURL string `json:"stargazers_url"`
|
||||||
|
ContributorsURL string `json:"contributors_url"`
|
||||||
|
SubscribersURL string `json:"subscribers_url"`
|
||||||
|
SubscriptionURL string `json:"subscription_url"`
|
||||||
|
CommitsURL string `json:"commits_url"`
|
||||||
|
GitCommitsURL string `json:"git_commits_url"`
|
||||||
|
CommentsURL string `json:"comments_url"`
|
||||||
|
IssueCommentURL string `json:"issue_comment_url"`
|
||||||
|
ContentsURL string `json:"contents_url"`
|
||||||
|
CompareURL string `json:"compare_url"`
|
||||||
|
MergesURL string `json:"merges_url"`
|
||||||
|
ArchiveURL string `json:"archive_url"`
|
||||||
|
DownloadsURL string `json:"downloads_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
PullsURL string `json:"pulls_url"`
|
||||||
|
MilestonesURL string `json:"milestones_url"`
|
||||||
|
NotificationsURL string `json:"notifications_url"`
|
||||||
|
LabelsURL string `json:"labels_url"`
|
||||||
|
ReleasesURL string `json:"releases_url"`
|
||||||
|
DeploymentsURL string `json:"deployments_url"`
|
||||||
|
} `json:"head_repository"`
|
||||||
|
} `json:"workflow_run"`
|
||||||
|
Workflow struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Path string `json:"path"`
|
||||||
|
State string `json:"state"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
BadgeURL string `json:"badge_url"`
|
||||||
|
} `json:"workflow"`
|
||||||
|
Repository struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
FullName string `json:"full_name"`
|
||||||
|
Private bool `json:"private"`
|
||||||
|
Owner struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"owner"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
Fork bool `json:"fork"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ForksURL string `json:"forks_url"`
|
||||||
|
KeysURL string `json:"keys_url"`
|
||||||
|
CollaboratorsURL string `json:"collaborators_url"`
|
||||||
|
TeamsURL string `json:"teams_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssueEventsURL string `json:"issue_events_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
AssigneesURL string `json:"assignees_url"`
|
||||||
|
BranchesURL string `json:"branches_url"`
|
||||||
|
TagsURL string `json:"tags_url"`
|
||||||
|
BlobsURL string `json:"blobs_url"`
|
||||||
|
GitTagsURL string `json:"git_tags_url"`
|
||||||
|
GitRefsURL string `json:"git_refs_url"`
|
||||||
|
TreesURL string `json:"trees_url"`
|
||||||
|
StatusesURL string `json:"statuses_url"`
|
||||||
|
LanguagesURL string `json:"languages_url"`
|
||||||
|
StargazersURL string `json:"stargazers_url"`
|
||||||
|
ContributorsURL string `json:"contributors_url"`
|
||||||
|
SubscribersURL string `json:"subscribers_url"`
|
||||||
|
SubscriptionURL string `json:"subscription_url"`
|
||||||
|
CommitsURL string `json:"commits_url"`
|
||||||
|
GitCommitsURL string `json:"git_commits_url"`
|
||||||
|
CommentsURL string `json:"comments_url"`
|
||||||
|
IssueCommentURL string `json:"issue_comment_url"`
|
||||||
|
ContentsURL string `json:"contents_url"`
|
||||||
|
CompareURL string `json:"compare_url"`
|
||||||
|
MergesURL string `json:"merges_url"`
|
||||||
|
ArchiveURL string `json:"archive_url"`
|
||||||
|
DownloadsURL string `json:"downloads_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
PullsURL string `json:"pulls_url"`
|
||||||
|
MilestonesURL string `json:"milestones_url"`
|
||||||
|
NotificationsURL string `json:"notifications_url"`
|
||||||
|
LabelsURL string `json:"labels_url"`
|
||||||
|
ReleasesURL string `json:"releases_url"`
|
||||||
|
DeploymentsURL string `json:"deployments_url"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
PushedAt time.Time `json:"pushed_at"`
|
||||||
|
GitURL string `json:"git_url"`
|
||||||
|
SSHURL string `json:"ssh_url"`
|
||||||
|
CloneURL string `json:"clone_url"`
|
||||||
|
SvnURL string `json:"svn_url"`
|
||||||
|
Homepage *string `json:"homepage"`
|
||||||
|
Size int64 `json:"size"`
|
||||||
|
StargazersCount int64 `json:"stargazers_count"`
|
||||||
|
WatchersCount int64 `json:"watchers_count"`
|
||||||
|
Language *string `json:"language"`
|
||||||
|
HasIssues bool `json:"has_issues"`
|
||||||
|
HasProjects bool `json:"has_projects"`
|
||||||
|
HasDownloads bool `json:"has_downloads"`
|
||||||
|
HasWiki bool `json:"has_wiki"`
|
||||||
|
HasPages bool `json:"has_pages"`
|
||||||
|
ForksCount int64 `json:"forks_count"`
|
||||||
|
MirrorURL *string `json:"mirror_url"`
|
||||||
|
Archived bool `json:"archived"`
|
||||||
|
Disabled bool `json:"disabled"`
|
||||||
|
OpenIssuesCount int64 `json:"open_issues_count"`
|
||||||
|
License struct {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
SpdxID string `json:"spdx_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
} `json:"license"`
|
||||||
|
AllowForking bool `json:"allow_forking"`
|
||||||
|
IsTemplate bool `json:"is_template"`
|
||||||
|
// Topics []interface{} `json:"topics"`
|
||||||
|
Visibility string `json:"visibility"`
|
||||||
|
Forks int64 `json:"forks"`
|
||||||
|
OpenIssues int64 `json:"open_issues"`
|
||||||
|
Watchers int64 `json:"watchers"`
|
||||||
|
DefaultBranch string `json:"default_branch"`
|
||||||
|
} `json:"repository"`
|
||||||
|
Organization struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
HooksURL string `json:"hooks_url"`
|
||||||
|
IssuesURL string `json:"issues_url"`
|
||||||
|
MembersURL string `json:"members_url"`
|
||||||
|
PublicMembersURL string `json:"public_members_url"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
} `json:"organization"`
|
||||||
|
Enterprise struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
Slug string `json:"slug"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
// Description interface{} `json:"description"`
|
||||||
|
// WebsiteURL interface{} `json:"website_url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
|
} `json:"enterprise"`
|
||||||
|
Sender struct {
|
||||||
|
Login string `json:"login"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
GravatarID string `json:"gravatar_id"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
HTMLURL string `json:"html_url"`
|
||||||
|
FollowersURL string `json:"followers_url"`
|
||||||
|
FollowingURL string `json:"following_url"`
|
||||||
|
GistsURL string `json:"gists_url"`
|
||||||
|
StarredURL string `json:"starred_url"`
|
||||||
|
SubscriptionsURL string `json:"subscriptions_url"`
|
||||||
|
OrganizationsURL string `json:"organizations_url"`
|
||||||
|
ReposURL string `json:"repos_url"`
|
||||||
|
EventsURL string `json:"events_url"`
|
||||||
|
ReceivedEventsURL string `json:"received_events_url"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
SiteAdmin bool `json:"site_admin"`
|
||||||
|
} `json:"sender"`
|
||||||
|
}
|
||||||
|
|
||||||
// Assignee contains GitHub's assignee information
|
// Assignee contains GitHub's assignee information
|
||||||
type Assignee struct {
|
type Assignee struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
@@ -6126,3 +6890,26 @@ type Label struct {
|
|||||||
Color string `json:"color"`
|
Color string `json:"color"`
|
||||||
Default bool `json:"default"`
|
Default bool `json:"default"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Team contains GitHub's Team information
|
||||||
|
type Team struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
NodeID string `json:"node_id"`
|
||||||
|
Slug string `json:"slug"`
|
||||||
|
Permission string `json:"permission"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
MembersURL string `json:"members_url"`
|
||||||
|
RepositoriesURL string `json:"repositories_url"`
|
||||||
|
Parent *Team `json:"parent,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Step contains workflow_job step information
|
||||||
|
type Step struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Status string `json:"status"`
|
||||||
|
Conclusion string `json:"conclusion"`
|
||||||
|
ID int64 `json:"id"`
|
||||||
|
StartedAt time.Time `json:"started_at"`
|
||||||
|
CompletedAt time.Time `json:"completed_at"`
|
||||||
|
}
|
||||||
|
|||||||
+10
-3
@@ -38,6 +38,7 @@ const (
|
|||||||
objectPush string = "push"
|
objectPush string = "push"
|
||||||
objectTag string = "tag_push"
|
objectTag string = "tag_push"
|
||||||
objectMergeRequest string = "merge_request"
|
objectMergeRequest string = "merge_request"
|
||||||
|
objectBuild string = "build"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Option is a configuration option for the webhook
|
// Option is a configuration option for the webhook
|
||||||
@@ -173,9 +174,15 @@ func eventParsing(gitLabEvent Event, events []Event, payload []byte) (interface{
|
|||||||
err := json.Unmarshal([]byte(payload), &pl)
|
err := json.Unmarshal([]byte(payload), &pl)
|
||||||
return pl, err
|
return pl, err
|
||||||
case JobEvents:
|
case JobEvents:
|
||||||
var p1 JobEventPayload
|
var pl JobEventPayload
|
||||||
err := json.Unmarshal([]byte(payload), &p1)
|
err := json.Unmarshal([]byte(payload), &pl)
|
||||||
return p1, err
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if pl.ObjectKind == objectBuild {
|
||||||
|
return eventParsing(BuildEvents, events, payload)
|
||||||
|
}
|
||||||
|
return pl, nil
|
||||||
|
|
||||||
case SystemHookEvents:
|
case SystemHookEvents:
|
||||||
var pl SystemHookPayload
|
var pl SystemHookPayload
|
||||||
|
|||||||
+47
-4
@@ -231,11 +231,54 @@ func TestWebhooks(t *testing.T) {
|
|||||||
"X-Gitlab-Event": []string{"Build Hook"},
|
"X-Gitlab-Event": []string{"Build Hook"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, tt := range tests {
|
||||||
|
tc := tt
|
||||||
|
client := &http.Client{}
|
||||||
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
payload, err := os.Open(tc.filename)
|
||||||
|
assert.NoError(err)
|
||||||
|
defer func() {
|
||||||
|
_ = payload.Close()
|
||||||
|
}()
|
||||||
|
|
||||||
|
var parseError error
|
||||||
|
var results interface{}
|
||||||
|
server := newServer(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
results, parseError = hook.Parse(r, tc.event)
|
||||||
|
})
|
||||||
|
defer server.Close()
|
||||||
|
req, err := http.NewRequest(http.MethodPost, server.URL+path, payload)
|
||||||
|
assert.NoError(err)
|
||||||
|
req.Header = tc.headers
|
||||||
|
req.Header.Set("Content-Type", "application/json")
|
||||||
|
req.Header.Set("X-Gitlab-Token", "sampleToken!")
|
||||||
|
|
||||||
|
resp, err := client.Do(req)
|
||||||
|
assert.NoError(err)
|
||||||
|
assert.Equal(http.StatusOK, resp.StatusCode)
|
||||||
|
assert.NoError(parseError)
|
||||||
|
assert.Equal(reflect.TypeOf(tc.typ), reflect.TypeOf(results))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestJobHooks(t *testing.T) {
|
||||||
|
assert := require.New(t)
|
||||||
|
tests := []struct {
|
||||||
|
name string
|
||||||
|
events []Event
|
||||||
|
typ interface{}
|
||||||
|
filename string
|
||||||
|
headers http.Header
|
||||||
|
}{
|
||||||
{
|
{
|
||||||
name: "JobEvent",
|
name: "JobEvent",
|
||||||
event: JobEvents,
|
events: []Event{JobEvents, BuildEvents},
|
||||||
typ: JobEventPayload{},
|
typ: BuildEventPayload{},
|
||||||
filename: "../testdata/gitlab/job-event.json",
|
filename: "../testdata/gitlab/build-event.json",
|
||||||
headers: http.Header{
|
headers: http.Header{
|
||||||
"X-Gitlab-Event": []string{"Job Hook"},
|
"X-Gitlab-Event": []string{"Job Hook"},
|
||||||
},
|
},
|
||||||
@@ -256,7 +299,7 @@ func TestWebhooks(t *testing.T) {
|
|||||||
var parseError error
|
var parseError error
|
||||||
var results interface{}
|
var results interface{}
|
||||||
server := newServer(func(w http.ResponseWriter, r *http.Request) {
|
server := newServer(func(w http.ResponseWriter, r *http.Request) {
|
||||||
results, parseError = hook.Parse(r, tc.event)
|
results, parseError = hook.Parse(r, tc.events...)
|
||||||
})
|
})
|
||||||
defer server.Close()
|
defer server.Close()
|
||||||
req, err := http.NewRequest(http.MethodPost, server.URL+path, payload)
|
req, err := http.NewRequest(http.MethodPost, server.URL+path, payload)
|
||||||
|
|||||||
+64
-34
@@ -57,6 +57,7 @@ type MergeRequestEventPayload struct {
|
|||||||
Project Project `json:"project"`
|
Project Project `json:"project"`
|
||||||
Repository Repository `json:"repository"`
|
Repository Repository `json:"repository"`
|
||||||
Labels []Label `json:"labels"`
|
Labels []Label `json:"labels"`
|
||||||
|
Assignees []Assignee `json:"assignees"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PushEventPayload contains the information for GitLab's push event
|
// PushEventPayload contains the information for GitLab's push event
|
||||||
@@ -112,7 +113,8 @@ type PipelineEventPayload struct {
|
|||||||
Project Project `json:"project"`
|
Project Project `json:"project"`
|
||||||
Commit Commit `json:"commit"`
|
Commit Commit `json:"commit"`
|
||||||
ObjectAttributes PipelineObjectAttributes `json:"object_attributes"`
|
ObjectAttributes PipelineObjectAttributes `json:"object_attributes"`
|
||||||
Jobs []Job `json:"jobs"`
|
MergeRequest MergeRequest `json:"merge_request"`
|
||||||
|
Builds []Build `json:"builds"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommentEventPayload contains the information for GitLab's comment event
|
// CommentEventPayload contains the information for GitLab's comment event
|
||||||
@@ -142,36 +144,39 @@ type BuildEventPayload struct {
|
|||||||
BuildStatus string `json:"build_status"`
|
BuildStatus string `json:"build_status"`
|
||||||
BuildStartedAt customTime `json:"build_started_at"`
|
BuildStartedAt customTime `json:"build_started_at"`
|
||||||
BuildFinishedAt customTime `json:"build_finished_at"`
|
BuildFinishedAt customTime `json:"build_finished_at"`
|
||||||
BuildDuration int64 `json:"build_duration"`
|
BuildDuration float64 `json:"build_duration"`
|
||||||
BuildAllowFailure bool `json:"build_allow_failure"`
|
BuildAllowFailure bool `json:"build_allow_failure"`
|
||||||
ProjectID int64 `json:"project_id"`
|
ProjectID int64 `json:"project_id"`
|
||||||
ProjectName string `json:"project_name"`
|
ProjectName string `json:"project_name"`
|
||||||
User User `json:"user"`
|
User User `json:"user"`
|
||||||
Commit BuildCommit `json:"commit"`
|
Commit BuildCommit `json:"commit"`
|
||||||
Repository Repository `json:"repository"`
|
Repository Repository `json:"repository"`
|
||||||
|
Runner Runner `json:"runner"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobEventPayload contains the information for GitLab's Job status change
|
// JobEventPayload contains the information for GitLab's Job status change
|
||||||
type JobEventPayload struct {
|
type JobEventPayload struct {
|
||||||
ObjectKind string `json:"object_kind"`
|
ObjectKind string `json:"object_kind"`
|
||||||
Ref string `json:"ref"`
|
Ref string `json:"ref"`
|
||||||
Tag bool `json:"tag"`
|
Tag bool `json:"tag"`
|
||||||
BeforeSHA string `json:"before_sha"`
|
BeforeSHA string `json:"before_sha"`
|
||||||
SHA string `json:"sha"`
|
SHA string `json:"sha"`
|
||||||
JobID int64 `json:"Job_id"`
|
BuildID int64 `json:"build_id"`
|
||||||
JobName string `json:"Job_name"`
|
BuildName string `json:"build_name"`
|
||||||
JobStage string `json:"Job_stage"`
|
BuildStage string `json:"build_stage"`
|
||||||
JobStatus string `json:"Job_status"`
|
BuildStatus string `json:"build_status"`
|
||||||
JobStartedAt customTime `json:"Job_started_at"`
|
BuildStartedAt customTime `json:"build_started_at"`
|
||||||
JobFinishedAt customTime `json:"Job_finished_at"`
|
BuildFinishedAt customTime `json:"build_finished_at"`
|
||||||
JobDuration int64 `json:"Job_duration"`
|
BuildDuration float64 `json:"build_duration"`
|
||||||
Job bool `json:"Job"`
|
BuildAllowFailure bool `json:"build_allow_failure"`
|
||||||
JobFailureReason string `json:"job_failure_reason"`
|
BuildFailureReason string `json:"build_failure_reason"`
|
||||||
ProjectID int64 `json:"project_id"`
|
PipelineID int64 `json:"pipeline_id"`
|
||||||
ProjectName string `json:"project_name"`
|
ProjectID int64 `json:"project_id"`
|
||||||
User User `json:"user"`
|
ProjectName string `json:"project_name"`
|
||||||
Commit BuildCommit `json:"commit"`
|
User User `json:"user"`
|
||||||
Repository Repository `json:"repository"`
|
Commit BuildCommit `json:"commit"`
|
||||||
|
Repository Repository `json:"repository"`
|
||||||
|
Runner Runner `json:"runner"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SystemHookPayload contains the ObjectKind to match with real hook events
|
// SystemHookPayload contains the ObjectKind to match with real hook events
|
||||||
@@ -197,8 +202,8 @@ type Issue struct {
|
|||||||
IID int64 `json:"iid"`
|
IID int64 `json:"iid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Job contains all of the GitLab job information
|
// Build contains all of the GitLab Build information
|
||||||
type Job struct {
|
type Build struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
Stage string `json:"stage"`
|
Stage string `json:"stage"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
@@ -240,6 +245,7 @@ type Wiki struct {
|
|||||||
type Commit struct {
|
type Commit struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
|
Title string `json:"title"`
|
||||||
Timestamp customTime `json:"timestamp"`
|
Timestamp customTime `json:"timestamp"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Author Author `json:"author"`
|
Author Author `json:"author"`
|
||||||
@@ -253,10 +259,10 @@ type BuildCommit struct {
|
|||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
SHA string `json:"sha"`
|
SHA string `json:"sha"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
AuthorName string `json:"auuthor_name"`
|
AuthorName string `json:"author_name"`
|
||||||
AuthorEmail string `json:"author_email"`
|
AuthorEmail string `json:"author_email"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Duration int64 `json:"duration"`
|
Duration float64 `json:"duration"`
|
||||||
StartedAt customTime `json:"started_at"`
|
StartedAt customTime `json:"started_at"`
|
||||||
FinishedAt customTime `json:"finished_at"`
|
FinishedAt customTime `json:"finished_at"`
|
||||||
}
|
}
|
||||||
@@ -278,9 +284,11 @@ type Snippet struct {
|
|||||||
|
|
||||||
// User contains all of the GitLab user information
|
// User contains all of the GitLab user information
|
||||||
type User struct {
|
type User struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
UserName string `json:"username"`
|
UserName string `json:"username"`
|
||||||
AvatarURL string `json:"avatar_url"`
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
Email string `json:"email"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Project contains all of the GitLab project information
|
// Project contains all of the GitLab project information
|
||||||
@@ -290,7 +298,7 @@ type Project struct {
|
|||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
WebURL string `json:"web_url"`
|
WebURL string `json:"web_url"`
|
||||||
AvatarURL string `json:"avatar_url"`
|
AvatarURL string `json:"avatar_url"`
|
||||||
GitSSSHURL string `json:"git_ssh_url"`
|
GitSSHURL string `json:"git_ssh_url"`
|
||||||
GitHTTPURL string `json:"git_http_url"`
|
GitHTTPURL string `json:"git_http_url"`
|
||||||
Namespace string `json:"namespace"`
|
Namespace string `json:"namespace"`
|
||||||
VisibilityLevel int64 `json:"visibility_level"`
|
VisibilityLevel int64 `json:"visibility_level"`
|
||||||
@@ -304,28 +312,40 @@ type Project struct {
|
|||||||
|
|
||||||
// Repository contains all of the GitLab repository information
|
// Repository contains all of the GitLab repository information
|
||||||
type Repository struct {
|
type Repository struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Homepage string `json:"homepage"`
|
Homepage string `json:"homepage"`
|
||||||
|
GitSSHURL string `json:"git_ssh_url"`
|
||||||
|
GitHTTPURL string `json:"git_http_url"`
|
||||||
|
VisibilityLevel int64 `json:"visibility_level"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ObjectAttributes contains all of the GitLab object attributes information
|
// ObjectAttributes contains all of the GitLab object attributes information
|
||||||
type ObjectAttributes struct {
|
type ObjectAttributes struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
|
AssigneeIDS []int64 `json:"assignee_ids"`
|
||||||
AssigneeID int64 `json:"assignee_id"`
|
AssigneeID int64 `json:"assignee_id"`
|
||||||
AuthorID int64 `json:"author_id"`
|
AuthorID int64 `json:"author_id"`
|
||||||
ProjectID int64 `json:"project_id"`
|
ProjectID int64 `json:"project_id"`
|
||||||
CreatedAt customTime `json:"created_at"`
|
CreatedAt customTime `json:"created_at"`
|
||||||
UpdatedAt customTime `json:"updated_at"`
|
UpdatedAt customTime `json:"updated_at"`
|
||||||
ChangePosition Position `json:"change_position"`
|
UpdatedByID int64 `json:"updated_by_id"`
|
||||||
OriginalPosition Position `json:"original_position"`
|
LastEditedAt customTime `json:"last_edited_at"`
|
||||||
|
LastEditedByID int64 `json:"last_edited_by_id"`
|
||||||
|
RelativePosition int64 `json:"relative_position"`
|
||||||
Position Position `json:"position"`
|
Position Position `json:"position"`
|
||||||
BranchName string `json:"branch_name"`
|
BranchName string `json:"branch_name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
MilestoneID int64 `json:"milestone_id"`
|
MilestoneID int64 `json:"milestone_id"`
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
|
StateID int64 `json:"state_id"`
|
||||||
|
Confidential bool `json:"confidential"`
|
||||||
|
DiscussionLocked bool `json:"discussion_locked"`
|
||||||
|
DueDate customTime `json:"due_date"`
|
||||||
|
TimeEstimate int64 `json:"time_estimate"`
|
||||||
|
TotalTimeSpent int64 `json:"total_time_spent"`
|
||||||
IID int64 `json:"iid"`
|
IID int64 `json:"iid"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Action string `json:"action"`
|
Action string `json:"action"`
|
||||||
@@ -347,11 +367,11 @@ type ObjectAttributes struct {
|
|||||||
Stages []string `json:"stages"`
|
Stages []string `json:"stages"`
|
||||||
Duration int64 `json:"duration"`
|
Duration int64 `json:"duration"`
|
||||||
Note string `json:"note"`
|
Note string `json:"note"`
|
||||||
NotebookType string `json:"noteable_type"`
|
NotebookType string `json:"noteable_type"` // nolint:misspell
|
||||||
At customTime `json:"attachment"`
|
At customTime `json:"attachment"`
|
||||||
LineCode string `json:"line_code"`
|
LineCode string `json:"line_code"`
|
||||||
CommitID string `json:"commit_id"`
|
CommitID string `json:"commit_id"`
|
||||||
NoteableID int64 `json:"noteable_id"`
|
NoteableID int64 `json:"noteable_id"` // nolint: misspell
|
||||||
System bool `json:"system"`
|
System bool `json:"system"`
|
||||||
WorkInProgress bool `json:"work_in_progress"`
|
WorkInProgress bool `json:"work_in_progress"`
|
||||||
StDiffs []StDiff `json:"st_diffs"`
|
StDiffs []StDiff `json:"st_diffs"`
|
||||||
@@ -374,6 +394,13 @@ type PipelineObjectAttributes struct {
|
|||||||
CreatedAt customTime `json:"created_at"`
|
CreatedAt customTime `json:"created_at"`
|
||||||
FinishedAt customTime `json:"finished_at"`
|
FinishedAt customTime `json:"finished_at"`
|
||||||
Duration int64 `json:"duration"`
|
Duration int64 `json:"duration"`
|
||||||
|
Variables []Variable `json:"variables"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Variable contains pipeline variables
|
||||||
|
type Variable struct {
|
||||||
|
Key string `json:"key"`
|
||||||
|
Value string `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Position defines a specific location, identified by paths line numbers and
|
// Position defines a specific location, identified by paths line numbers and
|
||||||
@@ -421,13 +448,16 @@ type MergeRequest struct {
|
|||||||
LastCommit LastCommit `json:"last_commit"`
|
LastCommit LastCommit `json:"last_commit"`
|
||||||
WorkInProgress bool `json:"work_in_progress"`
|
WorkInProgress bool `json:"work_in_progress"`
|
||||||
Assignee Assignee `json:"assignee"`
|
Assignee Assignee `json:"assignee"`
|
||||||
|
URL string `json:"url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assignee contains all of the GitLab assignee information
|
// Assignee contains all of the GitLab assignee information
|
||||||
type Assignee struct {
|
type Assignee struct {
|
||||||
|
ID int64 `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
AvatarURL string `json:"avatar_url"`
|
AvatarURL string `json:"avatar_url"`
|
||||||
|
Email string `json:"email"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StDiff contains all of the GitLab diff information
|
// StDiff contains all of the GitLab diff information
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
module github.com/go-playground/webhooks/v6
|
||||||
|
|
||||||
|
go 1.15
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/gogits/go-gogs-client v0.0.0-20200905025246-8bb8a50cb355
|
||||||
|
github.com/stretchr/testify v1.6.1
|
||||||
|
)
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
|
||||||
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/gogits/go-gogs-client v0.0.0-20200905025246-8bb8a50cb355 h1:HTVNOdTWO/gHYeFnr/HwpYwY6tgMcYd+Rgf1XrHnORY=
|
||||||
|
github.com/gogits/go-gogs-client v0.0.0-20200905025246-8bb8a50cb355/go.mod h1:cY2AIrMgHm6oOHmR7jY+9TtjzSjQ3iG7tURJG3Y6XH0=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
|
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
|
||||||
|
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
Vendored
+125
@@ -0,0 +1,125 @@
|
|||||||
|
{
|
||||||
|
"action": "created",
|
||||||
|
"key": {
|
||||||
|
"id": 100,
|
||||||
|
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQConScVc7ouWWgwcjneNnJ4PScDkkwEjuDL5leLIUU5aIg13dH55/f4aqKUSvfcLUOKJ0a8073tFqMbR9rfvLAhLGeStKxmYApJXpzVkphauu7kfNW8kQNi1fI4kmHyOpQ+dKtoonzjZAT4L9AV3FlVTOfRq3U8wJ2RPwU+4EtOpMKUF+wcoDJ5ONlKBOW6uAeBt/guBiu6r3awDClDGRo4Q2YCmMceiAyoiuXcr2mFNSyzTqU1f20fftFwucV/VqnxlJjZvZ/zhlfB+v+UgQN11pJJ5vChZ7bzyRtIRRsjxbTReyWxqVZ5hEle5sm1oAR97abW9zTWfwIABgClKo+z",
|
||||||
|
"url": "https://api.github.com/repos/Codertocat/Hello-World/keys/100",
|
||||||
|
"title": "hey-its-a-deploy-key",
|
||||||
|
"verified": true,
|
||||||
|
"created_at": "2019-04-02T17:37:07Z",
|
||||||
|
"read_only": true
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"id": 135493233,
|
||||||
|
"node_id": "MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",
|
||||||
|
"name": "Hello-World",
|
||||||
|
"full_name": "Codertocat/Hello-World",
|
||||||
|
"owner": {
|
||||||
|
"login": "Codertocat",
|
||||||
|
"id": 21031067,
|
||||||
|
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||||
|
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/Codertocat",
|
||||||
|
"html_url": "https://github.com/Codertocat",
|
||||||
|
"followers_url": "https://api.github.com/users/Codertocat/followers",
|
||||||
|
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/Codertocat/repos",
|
||||||
|
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"private": false,
|
||||||
|
"html_url": "https://github.com/Codertocat/Hello-World",
|
||||||
|
"description": null,
|
||||||
|
"fork": false,
|
||||||
|
"url": "https://api.github.com/repos/Codertocat/Hello-World",
|
||||||
|
"forks_url": "https://api.github.com/repos/Codertocat/Hello-World/forks",
|
||||||
|
"keys_url": "https://api.github.com/repos/Codertocat/Hello-World/keys{/key_id}",
|
||||||
|
"collaborators_url": "https://api.github.com/repos/Codertocat/Hello-World/collaborators{/collaborator}",
|
||||||
|
"teams_url": "https://api.github.com/repos/Codertocat/Hello-World/teams",
|
||||||
|
"hooks_url": "https://api.github.com/repos/Codertocat/Hello-World/hooks",
|
||||||
|
"issue_events_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/events{/number}",
|
||||||
|
"events_url": "https://api.github.com/repos/Codertocat/Hello-World/events",
|
||||||
|
"assignees_url": "https://api.github.com/repos/Codertocat/Hello-World/assignees{/user}",
|
||||||
|
"branches_url": "https://api.github.com/repos/Codertocat/Hello-World/branches{/branch}",
|
||||||
|
"tags_url": "https://api.github.com/repos/Codertocat/Hello-World/tags",
|
||||||
|
"blobs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/blobs{/sha}",
|
||||||
|
"git_tags_url": "https://api.github.com/repos/Codertocat/Hello-World/git/tags{/sha}",
|
||||||
|
"git_refs_url": "https://api.github.com/repos/Codertocat/Hello-World/git/refs{/sha}",
|
||||||
|
"trees_url": "https://api.github.com/repos/Codertocat/Hello-World/git/trees{/sha}",
|
||||||
|
"statuses_url": "https://api.github.com/repos/Codertocat/Hello-World/statuses/{sha}",
|
||||||
|
"languages_url": "https://api.github.com/repos/Codertocat/Hello-World/languages",
|
||||||
|
"stargazers_url": "https://api.github.com/repos/Codertocat/Hello-World/stargazers",
|
||||||
|
"contributors_url": "https://api.github.com/repos/Codertocat/Hello-World/contributors",
|
||||||
|
"subscribers_url": "https://api.github.com/repos/Codertocat/Hello-World/subscribers",
|
||||||
|
"subscription_url": "https://api.github.com/repos/Codertocat/Hello-World/subscription",
|
||||||
|
"commits_url": "https://api.github.com/repos/Codertocat/Hello-World/commits{/sha}",
|
||||||
|
"git_commits_url": "https://api.github.com/repos/Codertocat/Hello-World/git/commits{/sha}",
|
||||||
|
"comments_url": "https://api.github.com/repos/Codertocat/Hello-World/comments{/number}",
|
||||||
|
"issue_comment_url": "https://api.github.com/repos/Codertocat/Hello-World/issues/comments{/number}",
|
||||||
|
"contents_url": "https://api.github.com/repos/Codertocat/Hello-World/contents/{+path}",
|
||||||
|
"compare_url": "https://api.github.com/repos/Codertocat/Hello-World/compare/{base}...{head}",
|
||||||
|
"merges_url": "https://api.github.com/repos/Codertocat/Hello-World/merges",
|
||||||
|
"archive_url": "https://api.github.com/repos/Codertocat/Hello-World/{archive_format}{/ref}",
|
||||||
|
"downloads_url": "https://api.github.com/repos/Codertocat/Hello-World/downloads",
|
||||||
|
"issues_url": "https://api.github.com/repos/Codertocat/Hello-World/issues{/number}",
|
||||||
|
"pulls_url": "https://api.github.com/repos/Codertocat/Hello-World/pulls{/number}",
|
||||||
|
"milestones_url": "https://api.github.com/repos/Codertocat/Hello-World/milestones{/number}",
|
||||||
|
"notifications_url": "https://api.github.com/repos/Codertocat/Hello-World/notifications{?since,all,participating}",
|
||||||
|
"labels_url": "https://api.github.com/repos/Codertocat/Hello-World/labels{/name}",
|
||||||
|
"releases_url": "https://api.github.com/repos/Codertocat/Hello-World/releases{/id}",
|
||||||
|
"deployments_url": "https://api.github.com/repos/Codertocat/Hello-World/deployments",
|
||||||
|
"created_at": "2018-05-30T20:18:04Z",
|
||||||
|
"updated_at": "2018-05-30T20:18:50Z",
|
||||||
|
"pushed_at": "2018-05-30T20:18:48Z",
|
||||||
|
"git_url": "git://github.com/Codertocat/Hello-World.git",
|
||||||
|
"ssh_url": "git@github.com:Codertocat/Hello-World.git",
|
||||||
|
"clone_url": "https://github.com/Codertocat/Hello-World.git",
|
||||||
|
"svn_url": "https://github.com/Codertocat/Hello-World",
|
||||||
|
"homepage": null,
|
||||||
|
"size": 0,
|
||||||
|
"stargazers_count": 0,
|
||||||
|
"watchers_count": 0,
|
||||||
|
"language": null,
|
||||||
|
"has_issues": true,
|
||||||
|
"has_projects": true,
|
||||||
|
"has_downloads": true,
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pages": true,
|
||||||
|
"forks_count": 0,
|
||||||
|
"mirror_url": null,
|
||||||
|
"archived": false,
|
||||||
|
"open_issues_count": 1,
|
||||||
|
"license": null,
|
||||||
|
"forks": 0,
|
||||||
|
"open_issues": 1,
|
||||||
|
"watchers": 0,
|
||||||
|
"default_branch": "master"
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"login": "Codertocat",
|
||||||
|
"id": 21031067,
|
||||||
|
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||||
|
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/Codertocat",
|
||||||
|
"html_url": "https://github.com/Codertocat",
|
||||||
|
"followers_url": "https://api.github.com/users/Codertocat/followers",
|
||||||
|
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/Codertocat/repos",
|
||||||
|
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
}
|
||||||
|
}
|
||||||
+124
@@ -0,0 +1,124 @@
|
|||||||
|
{
|
||||||
|
"inputs": {
|
||||||
|
"name": "workflow_dispatch"
|
||||||
|
},
|
||||||
|
"ref": "started",
|
||||||
|
"repository": {
|
||||||
|
"id": 35129377,
|
||||||
|
"name": "public-repo",
|
||||||
|
"full_name": "baxterthehacker/public-repo",
|
||||||
|
"owner": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"private": false,
|
||||||
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"description": "",
|
||||||
|
"fork": false,
|
||||||
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||||
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||||
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||||
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||||
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||||
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||||
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||||
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||||
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||||
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||||
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||||
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||||
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||||
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||||
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||||
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||||
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||||
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||||
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||||
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||||
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||||
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||||
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||||
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||||
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||||
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||||
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||||
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||||
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||||
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||||
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||||
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||||
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||||
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||||
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||||
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"pushed_at": "2015-05-05T23:40:27Z",
|
||||||
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||||
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"homepage": null,
|
||||||
|
"size": 0,
|
||||||
|
"stargazers_count": 0,
|
||||||
|
"watchers_count": 0,
|
||||||
|
"language": null,
|
||||||
|
"has_issues": true,
|
||||||
|
"has_downloads": true,
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pages": true,
|
||||||
|
"forks_count": 0,
|
||||||
|
"mirror_url": null,
|
||||||
|
"open_issues_count": 2,
|
||||||
|
"forks": 0,
|
||||||
|
"open_issues": 2,
|
||||||
|
"watchers": 0,
|
||||||
|
"default_branch": "master"
|
||||||
|
},
|
||||||
|
"organization": {
|
||||||
|
"login": "baxterandthehackers",
|
||||||
|
"id": 7649605,
|
||||||
|
"url": "https://api.github.com/orgs/baxterandthehackers",
|
||||||
|
"repos_url": "https://api.github.com/orgs/baxterandthehackers/repos",
|
||||||
|
"events_url": "https://api.github.com/orgs/baxterandthehackers/events",
|
||||||
|
"members_url": "https://api.github.com/orgs/baxterandthehackers/members{/member}",
|
||||||
|
"public_members_url": "https://api.github.com/orgs/baxterandthehackers/public_members{/member}",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
||||||
|
"description": null
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"workflow": "my_workflow_dispatch"
|
||||||
|
}
|
||||||
Vendored
+149
@@ -0,0 +1,149 @@
|
|||||||
|
{
|
||||||
|
"action": "My workflow_job",
|
||||||
|
"workflow_job": {
|
||||||
|
"id": 565676767,
|
||||||
|
"run_id": 128,
|
||||||
|
"run_url": "https://api.github.com/users/baxterthehacker/run",
|
||||||
|
"run_attempt": 1,
|
||||||
|
"node_id": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"head_sha": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker/",
|
||||||
|
"html_url": "https://api.github.com/users/baxterthehacker/html_url",
|
||||||
|
"status": "completed",
|
||||||
|
"conclusion": "finished",
|
||||||
|
"started_at": "2015-05-05T23:40:12Z",
|
||||||
|
"completed_at": "2015-05-05T23:40:30Z",
|
||||||
|
"name": "My Workflow",
|
||||||
|
"check_run_url": "https://api.github.com/users/baxterthehacker/check_run_url",
|
||||||
|
"runner_id": 1,
|
||||||
|
"runner_name": "my runner",
|
||||||
|
"runner_group_id": 1,
|
||||||
|
"runner_group_name": "my runner group"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"id": 35129377,
|
||||||
|
"name": "public-repo",
|
||||||
|
"full_name": "baxterthehacker/public-repo",
|
||||||
|
"owner": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"private": false,
|
||||||
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"description": "",
|
||||||
|
"fork": false,
|
||||||
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||||
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||||
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||||
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||||
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||||
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||||
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||||
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||||
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||||
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||||
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||||
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||||
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||||
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||||
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||||
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||||
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||||
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||||
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||||
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||||
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||||
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||||
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||||
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||||
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||||
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||||
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||||
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||||
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||||
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||||
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||||
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||||
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||||
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||||
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||||
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"pushed_at": "2015-05-05T23:40:27Z",
|
||||||
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||||
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"homepage": null,
|
||||||
|
"size": 0,
|
||||||
|
"stargazers_count": 0,
|
||||||
|
"watchers_count": 0,
|
||||||
|
"language": null,
|
||||||
|
"has_issues": true,
|
||||||
|
"has_downloads": true,
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pages": true,
|
||||||
|
"forks_count": 0,
|
||||||
|
"mirror_url": null,
|
||||||
|
"open_issues_count": 2,
|
||||||
|
"forks": 0,
|
||||||
|
"open_issues": 2,
|
||||||
|
"watchers": 0,
|
||||||
|
"default_branch": "master"
|
||||||
|
},
|
||||||
|
"organization": {
|
||||||
|
"login": "baxterandthehackers",
|
||||||
|
"id": 7649605,
|
||||||
|
"url": "https://api.github.com/orgs/baxterandthehackers",
|
||||||
|
"repos_url": "https://api.github.com/orgs/baxterandthehackers/repos",
|
||||||
|
"events_url": "https://api.github.com/orgs/baxterandthehackers/events",
|
||||||
|
"members_url": "https://api.github.com/orgs/baxterandthehackers/members{/member}",
|
||||||
|
"public_members_url": "https://api.github.com/orgs/baxterandthehackers/public_members{/member}",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
||||||
|
"description": null
|
||||||
|
},
|
||||||
|
"enterprise": {
|
||||||
|
"id": 6576867,
|
||||||
|
"name": "my enterprise",
|
||||||
|
"node_id": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"html_url": "https://api.github.com/users/baxterthehacker/html_url",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z"
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"workflow": "my_workflow_dispatch"
|
||||||
|
}
|
||||||
Vendored
+357
@@ -0,0 +1,357 @@
|
|||||||
|
{
|
||||||
|
"action": "My workflow_run",
|
||||||
|
"workflow_run": {
|
||||||
|
"id": 565676767,
|
||||||
|
"name": "My Workflow",
|
||||||
|
"node_id": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"head_branch": "master",
|
||||||
|
"head_sha": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"run_number": 1,
|
||||||
|
"event": "my workflow",
|
||||||
|
"status": "completed",
|
||||||
|
"conclusion": "finished",
|
||||||
|
"workflow_id": 128,
|
||||||
|
"check_suite_id": 1,
|
||||||
|
"check_suite_node_id": "1",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker/",
|
||||||
|
"html_url": "https://api.github.com/users/baxterthehacker/html_url",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"run_attempt": 1,
|
||||||
|
"run_started_at": "2015-05-05T23:40:30Z",
|
||||||
|
"jobs_url": "https://api.github.com/users/baxterthehacker/jobs",
|
||||||
|
"logs_url": "https://api.github.com/users/baxterthehacker/logs",
|
||||||
|
"check_suite_url": "https://api.github.com/users/baxterthehacker/check_suite_url",
|
||||||
|
"artifacts_url": "https://api.github.com/users/baxterthehacker/artifacts_url",
|
||||||
|
"cancel_url": "https://api.github.com/users/baxterthehacker/cancel_url",
|
||||||
|
"rerun_url": "https://api.github.com/users/baxterthehacker/rerun_url",
|
||||||
|
"workflow_url": "https://api.github.com/users/baxterthehacker/workflow_url",
|
||||||
|
"head_commit": {
|
||||||
|
"id": "12345",
|
||||||
|
"tree_id": "54321",
|
||||||
|
"message": "my message",
|
||||||
|
"timestamp": "2015-05-05T23:40:30Z",
|
||||||
|
"author": {
|
||||||
|
"name": "author",
|
||||||
|
"email": "my@email.com"
|
||||||
|
},
|
||||||
|
"committer": {
|
||||||
|
"name": "author",
|
||||||
|
"email": "my@email.com"
|
||||||
|
},
|
||||||
|
"head_commit": "master"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"id": 35129377,
|
||||||
|
"name": "public-repo",
|
||||||
|
"full_name": "baxterthehacker/public-repo",
|
||||||
|
"owner": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"private": false,
|
||||||
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"description": "",
|
||||||
|
"fork": false,
|
||||||
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||||
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||||
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||||
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||||
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||||
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||||
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||||
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||||
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||||
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||||
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||||
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||||
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||||
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||||
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||||
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||||
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||||
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||||
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||||
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||||
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||||
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||||
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||||
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||||
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||||
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||||
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||||
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||||
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||||
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||||
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||||
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||||
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||||
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||||
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||||
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"pushed_at": "2015-05-05T23:40:27Z",
|
||||||
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||||
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"homepage": null,
|
||||||
|
"size": 0,
|
||||||
|
"stargazers_count": 0,
|
||||||
|
"watchers_count": 0,
|
||||||
|
"language": null,
|
||||||
|
"has_issues": true,
|
||||||
|
"has_downloads": true,
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pages": true,
|
||||||
|
"forks_count": 0,
|
||||||
|
"mirror_url": null,
|
||||||
|
"open_issues_count": 2,
|
||||||
|
"forks": 0,
|
||||||
|
"open_issues": 2,
|
||||||
|
"watchers": 0,
|
||||||
|
"default_branch": "master"
|
||||||
|
},
|
||||||
|
"head_repository": {
|
||||||
|
"id": 35129377,
|
||||||
|
"name": "public-repo",
|
||||||
|
"full_name": "baxterthehacker/public-repo",
|
||||||
|
"owner": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"private": false,
|
||||||
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"description": "",
|
||||||
|
"fork": false,
|
||||||
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||||
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||||
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||||
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||||
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||||
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||||
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||||
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||||
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||||
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||||
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||||
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||||
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||||
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||||
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||||
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||||
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||||
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||||
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||||
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||||
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||||
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||||
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||||
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||||
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||||
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||||
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||||
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||||
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||||
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||||
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||||
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||||
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||||
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||||
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||||
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"pushed_at": "2015-05-05T23:40:27Z",
|
||||||
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||||
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"homepage": null,
|
||||||
|
"size": 0,
|
||||||
|
"stargazers_count": 0,
|
||||||
|
"watchers_count": 0,
|
||||||
|
"language": null,
|
||||||
|
"has_issues": true,
|
||||||
|
"has_downloads": true,
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pages": true,
|
||||||
|
"forks_count": 0,
|
||||||
|
"mirror_url": null,
|
||||||
|
"open_issues_count": 2,
|
||||||
|
"forks": 0,
|
||||||
|
"open_issues": 2,
|
||||||
|
"watchers": 0,
|
||||||
|
"default_branch": "master"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"workflow": {
|
||||||
|
"id": 565676767,
|
||||||
|
"node_id": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"name": "My Workflow",
|
||||||
|
"path": "/users/baxterthehacker",
|
||||||
|
"state": "completed",
|
||||||
|
"conclusion": "finished",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://api.github.com/users/baxterthehacker/html_url",
|
||||||
|
"badge_url": "https://api.github.com/users/baxterthehacker/badge_url"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"id": 35129377,
|
||||||
|
"name": "public-repo",
|
||||||
|
"full_name": "baxterthehacker/public-repo",
|
||||||
|
"owner": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
},
|
||||||
|
"private": false,
|
||||||
|
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"description": "",
|
||||||
|
"fork": false,
|
||||||
|
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||||
|
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||||
|
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||||
|
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||||
|
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||||
|
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||||
|
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||||
|
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||||
|
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||||
|
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||||
|
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||||
|
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||||
|
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||||
|
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||||
|
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||||
|
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||||
|
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||||
|
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||||
|
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||||
|
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||||
|
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||||
|
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||||
|
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||||
|
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||||
|
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||||
|
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||||
|
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||||
|
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||||
|
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||||
|
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||||
|
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||||
|
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||||
|
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||||
|
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||||
|
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||||
|
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z",
|
||||||
|
"pushed_at": "2015-05-05T23:40:27Z",
|
||||||
|
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||||
|
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||||
|
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||||
|
"homepage": null,
|
||||||
|
"size": 0,
|
||||||
|
"stargazers_count": 0,
|
||||||
|
"watchers_count": 0,
|
||||||
|
"language": null,
|
||||||
|
"has_issues": true,
|
||||||
|
"has_downloads": true,
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pages": true,
|
||||||
|
"forks_count": 0,
|
||||||
|
"mirror_url": null,
|
||||||
|
"open_issues_count": 2,
|
||||||
|
"forks": 0,
|
||||||
|
"open_issues": 2,
|
||||||
|
"watchers": 0,
|
||||||
|
"default_branch": "master"
|
||||||
|
},
|
||||||
|
"organization": {
|
||||||
|
"login": "baxterandthehackers",
|
||||||
|
"id": 7649605,
|
||||||
|
"url": "https://api.github.com/orgs/baxterandthehackers",
|
||||||
|
"repos_url": "https://api.github.com/orgs/baxterandthehackers/repos",
|
||||||
|
"events_url": "https://api.github.com/orgs/baxterandthehackers/events",
|
||||||
|
"members_url": "https://api.github.com/orgs/baxterandthehackers/members{/member}",
|
||||||
|
"public_members_url": "https://api.github.com/orgs/baxterandthehackers/public_members{/member}",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/7649605?v=3",
|
||||||
|
"description": null
|
||||||
|
},
|
||||||
|
"enterprise": {
|
||||||
|
"id": 6576867,
|
||||||
|
"name": "my enterprise",
|
||||||
|
"node_id": "d6b80f8411bdc1a44407ff20619a74068b03ea5a",
|
||||||
|
"html_url": "https://api.github.com/users/baxterthehacker/html_url",
|
||||||
|
"created_at": "2015-05-05T23:40:12Z",
|
||||||
|
"updated_at": "2015-05-05T23:40:30Z"
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"login": "baxterthehacker",
|
||||||
|
"id": 6752317,
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3",
|
||||||
|
"gravatar_id": "",
|
||||||
|
"url": "https://api.github.com/users/baxterthehacker",
|
||||||
|
"html_url": "https://github.com/baxterthehacker",
|
||||||
|
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||||
|
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||||
|
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||||
|
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||||
|
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||||
|
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||||
|
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||||
|
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||||
|
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||||
|
"type": "User",
|
||||||
|
"site_admin": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
+47
-39
@@ -1,42 +1,50 @@
|
|||||||
{
|
{
|
||||||
"object_kind": "job",
|
"object_kind": "build",
|
||||||
"ref": "gitlab-script-trigger",
|
"ref": "gitlab-script-trigger",
|
||||||
"tag": false,
|
"tag": false,
|
||||||
"before_sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
|
"before_sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
|
||||||
|
"sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
|
||||||
|
"build_id": 1977,
|
||||||
|
"build_name": "test",
|
||||||
|
"build_stage": "test",
|
||||||
|
"build_status": "created",
|
||||||
|
"build_started_at": null,
|
||||||
|
"build_finished_at": null,
|
||||||
|
"build_duration": null,
|
||||||
|
"build_allow_failure": false,
|
||||||
|
"build_failure_reason": "script_failure",
|
||||||
|
"pipeline_id": 2366,
|
||||||
|
"project_id": 380,
|
||||||
|
"project_name": "gitlab-org/gitlab-test",
|
||||||
|
"user": {
|
||||||
|
"id": 3,
|
||||||
|
"name": "User",
|
||||||
|
"email": "user@gitlab.com",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||||
|
},
|
||||||
|
"commit": {
|
||||||
|
"id": 2366,
|
||||||
"sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
|
"sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
|
||||||
"job_id": 1977,
|
"message": "test\n",
|
||||||
"job_name": "test",
|
"author_name": "User",
|
||||||
"job_stage": "test",
|
"author_email": "user@gitlab.com",
|
||||||
"job_status": "created",
|
"status": "created",
|
||||||
"job_started_at": null,
|
"duration": null,
|
||||||
"job_finished_at": null,
|
"started_at": null,
|
||||||
"job_duration": null,
|
"finished_at": null
|
||||||
"job_allow_failure": false,
|
},
|
||||||
"job_failure_reason": "script_failure",
|
"repository": {
|
||||||
"project_id": 380,
|
"name": "gitlab_test",
|
||||||
"project_name": "gitlab-org/gitlab-test",
|
"description": "Atque in sunt eos similique dolores voluptatem.",
|
||||||
"user": {
|
"homepage": "http://192.168.64.1:3005/gitlab-org/gitlab-test",
|
||||||
"id": 3,
|
"git_ssh_url": "git@192.168.64.1:gitlab-org/gitlab-test.git",
|
||||||
"name": "User",
|
"git_http_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test.git",
|
||||||
"email": "user@gitlab.com"
|
"visibility_level": 20
|
||||||
},
|
},
|
||||||
"commit": {
|
"runner": {
|
||||||
"id": 2366,
|
"active": true,
|
||||||
"sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
|
"is_shared": false,
|
||||||
"message": "test\n",
|
"id": 380987,
|
||||||
"author_name": "User",
|
"description": "shared-runners-manager-6.gitlab.com"
|
||||||
"author_email": "user@gitlab.com",
|
|
||||||
"status": "created",
|
|
||||||
"duration": null,
|
|
||||||
"started_at": null,
|
|
||||||
"finished_at": null
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"name": "gitlab_test",
|
|
||||||
"description": "Atque in sunt eos similique dolores voluptatem.",
|
|
||||||
"homepage": "http://192.168.64.1:3005/gitlab-org/gitlab-test",
|
|
||||||
"git_ssh_url": "git@192.168.64.1:gitlab-org/gitlab-test.git",
|
|
||||||
"git_http_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test.git",
|
|
||||||
"visibility_level": 20
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
+10
-1
@@ -136,5 +136,14 @@
|
|||||||
"group_id": 41
|
"group_id": 41
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"assignees": [
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"name": "User1",
|
||||||
|
"username": "user1",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026d=identicon",
|
||||||
|
"email": "user1@gmail.com"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Vendored
+185
-166
@@ -1,175 +1,194 @@
|
|||||||
{
|
{
|
||||||
"object_kind": "pipeline",
|
"object_kind": "pipeline",
|
||||||
"object_attributes":{
|
"object_attributes":{
|
||||||
"id": 31,
|
"id": 31,
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"tag": false,
|
"tag": false,
|
||||||
"sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
"sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||||
"before_sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
"before_sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||||
"status": "success",
|
"source": "merge_request_event",
|
||||||
"stages":[
|
|
||||||
"build",
|
|
||||||
"test",
|
|
||||||
"deploy"
|
|
||||||
],
|
|
||||||
"created_at": "2016-08-12 15:23:28 UTC",
|
|
||||||
"finished_at": "2016-08-12 15:26:29 UTC",
|
|
||||||
"duration": 63,
|
|
||||||
"variables": [
|
|
||||||
{
|
|
||||||
"key": "NESTOR_PROD_ENVIRONMENT",
|
|
||||||
"value": "us-west-1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"user":{
|
|
||||||
"name": "Administrator",
|
|
||||||
"username": "root",
|
|
||||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
|
||||||
},
|
|
||||||
"project":{
|
|
||||||
"id": 1,
|
|
||||||
"name": "Gitlab Test",
|
|
||||||
"description": "Atque in sunt eos similique dolores voluptatem.",
|
|
||||||
"web_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test",
|
|
||||||
"avatar_url": null,
|
|
||||||
"git_ssh_url": "git@192.168.64.1:gitlab-org/gitlab-test.git",
|
|
||||||
"git_http_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test.git",
|
|
||||||
"namespace": "Gitlab Org",
|
|
||||||
"visibility_level": 20,
|
|
||||||
"path_with_namespace": "gitlab-org/gitlab-test",
|
|
||||||
"default_branch": "master"
|
|
||||||
},
|
|
||||||
"commit":{
|
|
||||||
"id": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
|
||||||
"message": "test\n",
|
|
||||||
"timestamp": "2016-08-12T17:23:21+02:00",
|
|
||||||
"url": "http://example.com/gitlab-org/gitlab-test/commit/bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
|
||||||
"author":{
|
|
||||||
"name": "User",
|
|
||||||
"email": "user@gitlab.com"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"jobs":[
|
|
||||||
{
|
|
||||||
"id": 380,
|
|
||||||
"stage": "deploy",
|
|
||||||
"name": "production",
|
|
||||||
"status": "skipped",
|
|
||||||
"created_at": "2016-08-12 15:23:28 UTC",
|
|
||||||
"started_at": null,
|
|
||||||
"finished_at": null,
|
|
||||||
"when": "manual",
|
|
||||||
"manual": true,
|
|
||||||
"user":{
|
|
||||||
"name": "Administrator",
|
|
||||||
"username": "root",
|
|
||||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
|
||||||
},
|
|
||||||
"runner": null,
|
|
||||||
"artifacts_file":{
|
|
||||||
"filename": null,
|
|
||||||
"size": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 377,
|
|
||||||
"stage": "test",
|
|
||||||
"name": "test-image",
|
|
||||||
"status": "success",
|
"status": "success",
|
||||||
|
"stages":[
|
||||||
|
"build",
|
||||||
|
"test",
|
||||||
|
"deploy"
|
||||||
|
],
|
||||||
"created_at": "2016-08-12 15:23:28 UTC",
|
"created_at": "2016-08-12 15:23:28 UTC",
|
||||||
"started_at": "2016-08-12 15:26:12 UTC",
|
|
||||||
"finished_at": null,
|
|
||||||
"when": "on_success",
|
|
||||||
"manual": false,
|
|
||||||
"user":{
|
|
||||||
"name": "Administrator",
|
|
||||||
"username": "root",
|
|
||||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
|
||||||
},
|
|
||||||
"runner": {
|
|
||||||
"id":380987,
|
|
||||||
"description":"shared-runners-manager-6.gitlab.com",
|
|
||||||
"active":true,
|
|
||||||
"is_shared":true
|
|
||||||
},
|
|
||||||
"artifacts_file":{
|
|
||||||
"filename": null,
|
|
||||||
"size": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 378,
|
|
||||||
"stage": "test",
|
|
||||||
"name": "test-build",
|
|
||||||
"status": "success",
|
|
||||||
"created_at": "2016-08-12 15:23:28 UTC",
|
|
||||||
"started_at": "2016-08-12 15:26:12 UTC",
|
|
||||||
"finished_at": "2016-08-12 15:26:29 UTC",
|
"finished_at": "2016-08-12 15:26:29 UTC",
|
||||||
"when": "on_success",
|
"duration": 63,
|
||||||
"manual": false,
|
"variables": [
|
||||||
"user":{
|
{
|
||||||
"name": "Administrator",
|
"key": "NESTOR_PROD_ENVIRONMENT",
|
||||||
"username": "root",
|
"value": "us-west-1"
|
||||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
}
|
||||||
},
|
]
|
||||||
"runner": {
|
},
|
||||||
"id":380987,
|
"merge_request": {
|
||||||
"description":"shared-runners-manager-6.gitlab.com",
|
"id": 1,
|
||||||
"active":true,
|
"iid": 1,
|
||||||
"is_shared":true
|
"title": "Test",
|
||||||
},
|
"source_branch": "test",
|
||||||
"artifacts_file":{
|
"source_project_id": 1,
|
||||||
"filename": null,
|
"target_branch": "master",
|
||||||
"size": null
|
"target_project_id": 1,
|
||||||
|
"state": "opened",
|
||||||
|
"merge_status": "can_be_merged",
|
||||||
|
"url": "http://192.168.64.1:3005/gitlab-org/gitlab-test/merge_requests/1"
|
||||||
|
},
|
||||||
|
"user":{
|
||||||
|
"name": "Administrator",
|
||||||
|
"username": "root",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon",
|
||||||
|
"email": "user_email@gitlab.com"
|
||||||
|
},
|
||||||
|
"project":{
|
||||||
|
"id": 1,
|
||||||
|
"name": "Gitlab Test",
|
||||||
|
"description": "Atque in sunt eos similique dolores voluptatem.",
|
||||||
|
"web_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test",
|
||||||
|
"avatar_url": null,
|
||||||
|
"git_ssh_url": "git@192.168.64.1:gitlab-org/gitlab-test.git",
|
||||||
|
"git_http_url": "http://192.168.64.1:3005/gitlab-org/gitlab-test.git",
|
||||||
|
"namespace": "Gitlab Org",
|
||||||
|
"visibility_level": 20,
|
||||||
|
"path_with_namespace": "gitlab-org/gitlab-test",
|
||||||
|
"default_branch": "master"
|
||||||
|
},
|
||||||
|
"commit":{
|
||||||
|
"id": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||||
|
"message": "test\n",
|
||||||
|
"timestamp": "2016-08-12T17:23:21+02:00",
|
||||||
|
"url": "http://example.com/gitlab-org/gitlab-test/commit/bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||||
|
"author":{
|
||||||
|
"name": "User",
|
||||||
|
"email": "user@gitlab.com"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
"builds":[
|
||||||
"id": 376,
|
{
|
||||||
"stage": "build",
|
"id": 380,
|
||||||
"name": "build-image",
|
"stage": "deploy",
|
||||||
"status": "success",
|
"name": "production",
|
||||||
"created_at": "2016-08-12 15:23:28 UTC",
|
"status": "skipped",
|
||||||
"started_at": "2016-08-12 15:24:56 UTC",
|
"created_at": "2016-08-12 15:23:28 UTC",
|
||||||
"finished_at": "2016-08-12 15:25:26 UTC",
|
"started_at": null,
|
||||||
"when": "on_success",
|
"finished_at": null,
|
||||||
"manual": false,
|
"when": "manual",
|
||||||
"user":{
|
"manual": true,
|
||||||
"name": "Administrator",
|
"allow_failure": false,
|
||||||
"username": "root",
|
"user":{
|
||||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
"name": "Administrator",
|
||||||
|
"username": "root",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||||
|
},
|
||||||
|
"runner": null,
|
||||||
|
"artifacts_file":{
|
||||||
|
"filename": null,
|
||||||
|
"size": null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"runner": {
|
{
|
||||||
"id":380987,
|
"id": 377,
|
||||||
"description":"shared-runners-manager-6.gitlab.com",
|
"stage": "test",
|
||||||
"active":true,
|
"name": "test-image",
|
||||||
"is_shared":true
|
"status": "success",
|
||||||
|
"created_at": "2016-08-12 15:23:28 UTC",
|
||||||
|
"started_at": "2016-08-12 15:26:12 UTC",
|
||||||
|
"finished_at": null,
|
||||||
|
"when": "on_success",
|
||||||
|
"manual": false,
|
||||||
|
"allow_failure": false,
|
||||||
|
"user":{
|
||||||
|
"name": "Administrator",
|
||||||
|
"username": "root",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||||
|
},
|
||||||
|
"runner": {
|
||||||
|
"id":380987,
|
||||||
|
"description":"shared-runners-manager-6.gitlab.com",
|
||||||
|
"active":true,
|
||||||
|
"is_shared":true
|
||||||
|
},
|
||||||
|
"artifacts_file":{
|
||||||
|
"filename": null,
|
||||||
|
"size": null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"artifacts_file":{
|
{
|
||||||
"filename": null,
|
"id": 378,
|
||||||
"size": null
|
"stage": "test",
|
||||||
|
"name": "test-build",
|
||||||
|
"status": "success",
|
||||||
|
"created_at": "2016-08-12 15:23:28 UTC",
|
||||||
|
"started_at": "2016-08-12 15:26:12 UTC",
|
||||||
|
"finished_at": "2016-08-12 15:26:29 UTC",
|
||||||
|
"when": "on_success",
|
||||||
|
"manual": false,
|
||||||
|
"allow_failure": false,
|
||||||
|
"user":{
|
||||||
|
"name": "Administrator",
|
||||||
|
"username": "root",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||||
|
},
|
||||||
|
"runner": {
|
||||||
|
"id":380987,
|
||||||
|
"description":"shared-runners-manager-6.gitlab.com",
|
||||||
|
"active":true,
|
||||||
|
"is_shared":true
|
||||||
|
},
|
||||||
|
"artifacts_file":{
|
||||||
|
"filename": null,
|
||||||
|
"size": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 376,
|
||||||
|
"stage": "build",
|
||||||
|
"name": "build-image",
|
||||||
|
"status": "success",
|
||||||
|
"created_at": "2016-08-12 15:23:28 UTC",
|
||||||
|
"started_at": "2016-08-12 15:24:56 UTC",
|
||||||
|
"finished_at": "2016-08-12 15:25:26 UTC",
|
||||||
|
"when": "on_success",
|
||||||
|
"manual": false,
|
||||||
|
"allow_failure": false,
|
||||||
|
"user":{
|
||||||
|
"name": "Administrator",
|
||||||
|
"username": "root",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||||
|
},
|
||||||
|
"runner": {
|
||||||
|
"id":380987,
|
||||||
|
"description":"shared-runners-manager-6.gitlab.com",
|
||||||
|
"active":true,
|
||||||
|
"is_shared":true
|
||||||
|
},
|
||||||
|
"artifacts_file":{
|
||||||
|
"filename": null,
|
||||||
|
"size": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 379,
|
||||||
|
"stage": "deploy",
|
||||||
|
"name": "staging",
|
||||||
|
"status": "created",
|
||||||
|
"created_at": "2016-08-12 15:23:28 UTC",
|
||||||
|
"started_at": null,
|
||||||
|
"finished_at": null,
|
||||||
|
"when": "on_success",
|
||||||
|
"manual": false,
|
||||||
|
"allow_failure": false,
|
||||||
|
"user":{
|
||||||
|
"name": "Administrator",
|
||||||
|
"username": "root",
|
||||||
|
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||||
|
},
|
||||||
|
"runner": null,
|
||||||
|
"artifacts_file":{
|
||||||
|
"filename": null,
|
||||||
|
"size": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
|
||||||
"id": 379,
|
|
||||||
"stage": "deploy",
|
|
||||||
"name": "staging",
|
|
||||||
"status": "created",
|
|
||||||
"created_at": "2016-08-12 15:23:28 UTC",
|
|
||||||
"started_at": null,
|
|
||||||
"finished_at": null,
|
|
||||||
"when": "on_success",
|
|
||||||
"manual": false,
|
|
||||||
"user":{
|
|
||||||
"name": "Administrator",
|
|
||||||
"username": "root",
|
|
||||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
|
||||||
},
|
|
||||||
"runner": null,
|
|
||||||
"artifacts_file":{
|
|
||||||
"filename": null,
|
|
||||||
"size": null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user