Compare commits
132 Commits
v5.1.1
...
v6.0.0-beta.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c382736e0 | |||
| ec227ef416 | |||
| e55d994db5 | |||
| 66bfeb55b9 | |||
| e1c6b6436c | |||
| 598a1cf5be | |||
| f3cedb24ac | |||
| 82e53669b8 | |||
| cd70db9922 | |||
| b3a37b9b9a | |||
| e5ab838da3 | |||
| 56d9dffd38 | |||
| c99be7dbb8 | |||
| 433ece5b7b | |||
| e6bb8aa4b7 | |||
| 8a870336ee | |||
| b6a30802e2 | |||
| a8ff1e82b4 | |||
| 5fcf4a6e13 | |||
| 1f79ca202d | |||
| 59fb74817c | |||
| aa941874be | |||
| bfd950a988 | |||
| 9d685f3a73 | |||
| 1f42c84783 | |||
| b79b935d9e | |||
| ee81f21da7 | |||
| 03cee75fc3 | |||
| 86c24d8570 | |||
| 30fb8f885f | |||
| 957d07ee07 | |||
| a5ce17cac3 | |||
| efae47c3b9 | |||
| b616136c50 | |||
| 303483bff4 | |||
| 4156f32687 | |||
| b03dc868a0 | |||
| 9f0c3ac5d7 | |||
| f4ad678f8e | |||
| a23062206a | |||
| 7c046447e2 | |||
| fafbb08b19 | |||
| c31b74320c | |||
| 5be09cefe2 | |||
| 7a4edfce55 | |||
| bb49f714ae | |||
| 260e9b3afd | |||
| e01b0fd664 | |||
| ef305446ee | |||
| cfd9712d30 | |||
| a7a2c8c856 | |||
| 743f78a93d | |||
| a4dc35a54d | |||
| 9a9f42e1b8 | |||
| cc63869891 | |||
| cb4aa3d145 | |||
| 334436bcc5 | |||
| 3007a7f5c2 | |||
| f248671aae | |||
| 2845fba51e | |||
| e1f5ba4c3a | |||
| ef903a2448 | |||
| 115b7e49a5 | |||
| 9ce6db7e53 | |||
| dc7efa3fa7 | |||
| c3faee81c0 | |||
| 26af15f0e6 | |||
| 2c25dbce5e | |||
| cc33de46ff | |||
| c86c1f184a | |||
| 2c92b6562c | |||
| 0c10330052 | |||
| a9a686f8e5 | |||
| 3534f74a83 | |||
| a740f8cf11 | |||
| 905cac71c9 | |||
| 71b069e705 | |||
| 471fb52f8c | |||
| 1751865845 | |||
| 0a9a3aab3e | |||
| 43ffb318d2 | |||
| 6edb377cee | |||
| c205145bc6 | |||
| a8ef7768a6 | |||
| 2b63b487a9 | |||
| c168baf1a5 | |||
| 08c3e54514 | |||
| 21587e152e | |||
| bf1a77d573 | |||
| d228b48c40 | |||
| 869ac76ba8 | |||
| ebe6b8d143 | |||
| c271d4f1c6 | |||
| 067e3f1d7a | |||
| 0f4713c1d1 | |||
| f053ac6ee1 | |||
| 65f5d60701 | |||
| 295aa6531f | |||
| a1e2052ae0 | |||
| d70f617c2d | |||
| 4ee4acfa25 | |||
| 8856cf3151 | |||
| 739eddd0c9 | |||
| acf48b9638 | |||
| 01a1302e02 | |||
| d9474f43ee | |||
| 4c7b9ae07d | |||
| bad16bfcd0 | |||
| 66059be93b | |||
| 175959ef60 | |||
| 399cac5122 | |||
| a1051fd871 | |||
| ac198c9e6a | |||
| e157e8e469 | |||
| b2ca22db96 | |||
| dee47c0482 | |||
| bba5196bce | |||
| 57ccf4fc30 | |||
| 1b9fe11c1f | |||
| 80aa7fa2fe | |||
| 88515706e6 | |||
| f1f5db7261 | |||
| a92dd933ba | |||
| 26ca2ef893 | |||
| 4fb25871a6 | |||
| 22a6a67d07 | |||
| d7570ff094 | |||
| 2dbe987740 | |||
| b3a5a8edf7 | |||
| dfc330f6eb | |||
| cdc59eb3ef | |||
| a39ebc145a |
@@ -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.10.3
|
||||
- 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.10.3 ] &&
|
||||
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:
|
||||
@gometalinter --version >/dev/null 2>&1 || { \
|
||||
echo "installing linting tools..."; \
|
||||
$(GOCMD) get github.com/alecthomas/gometalinter; \
|
||||
gometalinter --install; \
|
||||
@echo "+ $@"
|
||||
@$(GOPATH)/bin/golangci-lint --version >/dev/null 2>&1 || { \
|
||||
echo "Install golangci-lint..."; \
|
||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin; \
|
||||
}
|
||||
|
||||
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
|
||||
gometalinter --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=megacheck --enable=ineffassign --enable=misspell --enable=errcheck --enable=goconst ./...
|
||||
@echo "+ $@"
|
||||
$(GOPATH)/bin/golangci-lint run ./...
|
||||
|
||||
test:
|
||||
$(GOCMD) test -cover -race ./...
|
||||
@echo "+ $@"
|
||||
GO111MODULE=on go test -covermode=atomic -race ./...
|
||||
|
||||
.PHONY: test lint linters-install
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
Library webhooks
|
||||
================
|
||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
||||
[](https://travis-ci.org/go-playground/webhooks)
|
||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v5)
|
||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png">
|
||||
[](https://github.com/go-playground/webhooks/actions)
|
||||
[](https://coveralls.io/github/go-playground/webhooks?branch=master)
|
||||
[](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
|
||||
@@ -24,17 +24,17 @@ Installation
|
||||
Use go get.
|
||||
|
||||
```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.
|
||||
|
||||
import "gopkg.in/go-playground/webhooks.v5"
|
||||
import "github.com/go-playground/webhooks/v6"
|
||||
|
||||
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:
|
||||
```go
|
||||
@@ -45,7 +45,7 @@ import (
|
||||
|
||||
"net/http"
|
||||
|
||||
"gopkg.in/go-playground/webhooks.v5/github"
|
||||
"github.com/go-playground/webhooks/v6/github"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"net/http"
|
||||
|
||||
"gopkg.in/go-playground/webhooks.v5/github"
|
||||
"github.com/go-playground/webhooks/v6/github"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"net/http"
|
||||
|
||||
"gopkg.in/go-playground/webhooks.v5/github"
|
||||
"github.com/go-playground/webhooks/v6/github"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -0,0 +1,223 @@
|
||||
package bitbucketserver
|
||||
|
||||
import (
|
||||
"crypto/hmac"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrEventNotSpecifiedToParse = errors.New("no Event specified to parse")
|
||||
ErrInvalidHTTPMethod = errors.New("invalid HTTP Method")
|
||||
ErrMissingEventKeyHeader = errors.New("missing X-Event-Key Header")
|
||||
ErrMissingHubSignatureHeader = errors.New("missing X-Hub-Signature Header")
|
||||
ErrEventNotFound = errors.New("event not defined to be parsed")
|
||||
ErrParsingPayload = errors.New("error parsing payload")
|
||||
ErrHMACVerificationFailed = errors.New("HMAC verification failed")
|
||||
)
|
||||
|
||||
type Event string
|
||||
|
||||
const (
|
||||
RepositoryReferenceChangedEvent Event = "repo:refs_changed"
|
||||
RepositoryModifiedEvent Event = "repo:modified"
|
||||
RepositoryForkedEvent Event = "repo:forked"
|
||||
RepositoryCommentAddedEvent Event = "repo:comment:added"
|
||||
RepositoryCommentEditedEvent Event = "repo:comment:edited"
|
||||
RepositoryCommentDeletedEvent Event = "repo:comment:deleted"
|
||||
|
||||
PullRequestOpenedEvent Event = "pr:opened"
|
||||
PullRequestFromReferenceUpdatedEvent Event = "pr:from_ref_updated"
|
||||
PullRequestModifiedEvent Event = "pr:modified"
|
||||
PullRequestMergedEvent Event = "pr:merged"
|
||||
PullRequestDeclinedEvent Event = "pr:declined"
|
||||
PullRequestDeletedEvent Event = "pr:deleted"
|
||||
|
||||
PullRequestReviewerUpdatedEvent Event = "pr:reviewer:updated"
|
||||
PullRequestReviewerApprovedEvent Event = "pr:reviewer:approved"
|
||||
PullRequestReviewerUnapprovedEvent Event = "pr:reviewer:unapproved"
|
||||
PullRequestReviewerNeedsWorkEvent Event = "pr:reviewer:needs_work"
|
||||
|
||||
PullRequestCommentAddedEvent Event = "pr:comment:added"
|
||||
PullRequestCommentEditedEvent Event = "pr:comment:edited"
|
||||
PullRequestCommentDeletedEvent Event = "pr:comment:deleted"
|
||||
|
||||
DiagnosticsPingEvent Event = "diagnostics:ping"
|
||||
)
|
||||
|
||||
// Option is a configuration option for the webhook
|
||||
type Option func(*Webhook) error
|
||||
|
||||
// Options is a namespace var for configuration options
|
||||
var Options = WebhookOptions{}
|
||||
|
||||
// WebhookOptions is a namespace for configuration option methods
|
||||
type WebhookOptions struct{}
|
||||
|
||||
// Secret registers the GitHub secret
|
||||
func (WebhookOptions) Secret(secret string) Option {
|
||||
return func(hook *Webhook) error {
|
||||
hook.secret = secret
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// Webhook instance contains all methods needed to process events
|
||||
type Webhook struct {
|
||||
secret string
|
||||
}
|
||||
|
||||
// New creates and returns a WebHook instance denoted by the Provider type
|
||||
func New(options ...Option) (*Webhook, error) {
|
||||
hook := new(Webhook)
|
||||
for _, opt := range options {
|
||||
if err := opt(hook); err != nil {
|
||||
return nil, errors.New("Error applying Option")
|
||||
}
|
||||
}
|
||||
return hook, nil
|
||||
}
|
||||
|
||||
func (hook *Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) {
|
||||
defer func() {
|
||||
_, _ = io.Copy(ioutil.Discard, r.Body)
|
||||
_ = r.Body.Close()
|
||||
}()
|
||||
|
||||
if len(events) == 0 {
|
||||
return nil, ErrEventNotSpecifiedToParse
|
||||
}
|
||||
|
||||
if r.Method != http.MethodPost {
|
||||
return nil, ErrInvalidHTTPMethod
|
||||
}
|
||||
|
||||
event := r.Header.Get("X-Event-Key")
|
||||
if event == "" {
|
||||
return nil, ErrMissingEventKeyHeader
|
||||
}
|
||||
|
||||
bitbucketEvent := Event(event)
|
||||
|
||||
var found bool
|
||||
for _, evt := range events {
|
||||
if evt == bitbucketEvent {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
// event not defined to be parsed
|
||||
if !found {
|
||||
return nil, ErrEventNotFound
|
||||
}
|
||||
|
||||
if bitbucketEvent == DiagnosticsPingEvent {
|
||||
return DiagnosticsPingPayload{}, nil
|
||||
}
|
||||
|
||||
payload, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil || len(payload) == 0 {
|
||||
return nil, ErrParsingPayload
|
||||
}
|
||||
|
||||
if len(hook.secret) > 0 {
|
||||
signature := r.Header.Get("X-Hub-Signature")
|
||||
if len(signature) == 0 {
|
||||
return nil, ErrMissingHubSignatureHeader
|
||||
}
|
||||
mac := hmac.New(sha256.New, []byte(hook.secret))
|
||||
_, _ = mac.Write(payload)
|
||||
expectedMAC := hex.EncodeToString(mac.Sum(nil))
|
||||
|
||||
if !hmac.Equal([]byte(signature[7:]), []byte(expectedMAC)) {
|
||||
return nil, ErrHMACVerificationFailed
|
||||
}
|
||||
}
|
||||
|
||||
switch bitbucketEvent {
|
||||
case RepositoryReferenceChangedEvent:
|
||||
var pl RepositoryReferenceChangedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case RepositoryModifiedEvent:
|
||||
var pl RepositoryModifiedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case RepositoryForkedEvent:
|
||||
var pl RepositoryForkedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case RepositoryCommentAddedEvent:
|
||||
var pl RepositoryCommentAddedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case RepositoryCommentEditedEvent:
|
||||
var pl RepositoryCommentEditedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case RepositoryCommentDeletedEvent:
|
||||
var pl RepositoryCommentDeletedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestOpenedEvent:
|
||||
var pl PullRequestOpenedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestFromReferenceUpdatedEvent:
|
||||
var pl PullRequestFromReferenceUpdatedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestModifiedEvent:
|
||||
var pl PullRequestModifiedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestMergedEvent:
|
||||
var pl PullRequestMergedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestDeclinedEvent:
|
||||
var pl PullRequestDeclinedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestDeletedEvent:
|
||||
var pl PullRequestDeletedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestReviewerUpdatedEvent:
|
||||
var pl PullRequestReviewerUpdatedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestReviewerApprovedEvent:
|
||||
var pl PullRequestReviewerApprovedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestReviewerUnapprovedEvent:
|
||||
var pl PullRequestReviewerUnapprovedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestReviewerNeedsWorkEvent:
|
||||
var pl PullRequestReviewerNeedsWorkPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestCommentAddedEvent:
|
||||
var pl PullRequestCommentAddedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestCommentEditedEvent:
|
||||
var pl PullRequestCommentEditedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case PullRequestCommentDeletedEvent:
|
||||
var pl PullRequestCommentDeletedPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown event %s", bitbucketEvent)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
package bitbucketserver
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
const (
|
||||
path = "/webhooks"
|
||||
)
|
||||
|
||||
var hook *Webhook
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
// setup
|
||||
var err error
|
||||
hook, err = New(Options.Secret("secret"))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
os.Exit(m.Run())
|
||||
// teardown
|
||||
}
|
||||
|
||||
func newServer(handler http.HandlerFunc) *httptest.Server {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc(path, handler)
|
||||
return httptest.NewServer(mux)
|
||||
}
|
||||
|
||||
func TestBadRequests(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
tests := []struct {
|
||||
name string
|
||||
event Event
|
||||
payload io.Reader
|
||||
headers http.Header
|
||||
}{
|
||||
{
|
||||
name: "BadNoEventHeader",
|
||||
event: RepositoryReferenceChangedEvent,
|
||||
payload: bytes.NewBuffer([]byte("{}")),
|
||||
headers: http.Header{},
|
||||
},
|
||||
{
|
||||
name: "BadSignatureLength",
|
||||
event: RepositoryReferenceChangedEvent,
|
||||
payload: bytes.NewBuffer([]byte("{}")),
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:refs_changed"},
|
||||
"X-Hub-Signature": []string{""},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "BadSignatureMatch",
|
||||
event: RepositoryReferenceChangedEvent,
|
||||
payload: bytes.NewBuffer([]byte("{}")),
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:refs_changed"},
|
||||
"X-Hub-Signature": []string{"sha256=111"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "UnsubscribedEvent",
|
||||
event: RepositoryReferenceChangedEvent,
|
||||
payload: bytes.NewBuffer([]byte("{}")),
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"nonexistent_event"},
|
||||
"X-Hub-Signature": []string{"sha256=111"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
tc := tt
|
||||
client := &http.Client{}
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
var parseError error
|
||||
server := newServer(func(w http.ResponseWriter, r *http.Request) {
|
||||
_, parseError = hook.Parse(r, tc.event)
|
||||
})
|
||||
defer server.Close()
|
||||
|
||||
req, err := http.NewRequest(http.MethodPost, server.URL+path, tc.payload)
|
||||
assert.NoError(err)
|
||||
req.Header = tc.headers
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
|
||||
resp, err := client.Do(req)
|
||||
|
||||
assert.NoError(err)
|
||||
assert.Equal(http.StatusOK, resp.StatusCode)
|
||||
assert.Error(parseError)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestWebhooks(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
tests := []struct {
|
||||
name string
|
||||
event Event
|
||||
payloadType interface{}
|
||||
filename string
|
||||
headers http.Header
|
||||
}{
|
||||
{
|
||||
name: "Repository refs updated",
|
||||
event: RepositoryReferenceChangedEvent,
|
||||
payloadType: RepositoryReferenceChangedPayload{},
|
||||
filename: "../testdata/bitbucket-server/repo-refs-changed.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:refs_changed"},
|
||||
"X-Hub-Signature": []string{"sha256=8a60f7487d167f55886df87d4077192035d76f76a8e0b3a48fd8ae8cad25f391"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Repository modified",
|
||||
event: RepositoryModifiedEvent,
|
||||
payloadType: RepositoryModifiedPayload{},
|
||||
filename: "../testdata/bitbucket-server/repo-modified.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:modified"},
|
||||
"X-Hub-Signature": []string{"sha256=1511ed69d7697ede1699b0217e17b7d0b492eeccc9a5649d5d30dd84f0e5a89a"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Repository forked",
|
||||
event: RepositoryForkedEvent,
|
||||
payloadType: RepositoryForkedPayload{},
|
||||
filename: "../testdata/bitbucket-server/repo-forked.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:forked"},
|
||||
"X-Hub-Signature": []string{"sha256=d34115023042f9e7ef7020200650e2f34da137e0217708475f9b749ad889a16d"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Repository commit comment edited",
|
||||
event: RepositoryCommentEditedEvent,
|
||||
payloadType: RepositoryCommentEditedPayload{},
|
||||
filename: "../testdata/bitbucket-server/repo-comment-edited.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:comment:edited"},
|
||||
"X-Hub-Signature": []string{"sha256=90a8f4898d8dd7a4ef99e33a7f1d86dd3645f45b2a5b59110493cc4b3062a712"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Repository commit comment deleted",
|
||||
event: RepositoryCommentDeletedEvent,
|
||||
payloadType: RepositoryCommentDeletedPayload{},
|
||||
filename: "../testdata/bitbucket-server/repo-comment-deleted.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:comment:deleted"},
|
||||
"X-Hub-Signature": []string{"sha256=e8b6d3d1581366c9f65949c93149b29ba33252f6afa807432f8f823fb08680e7"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Repository commit comment added",
|
||||
event: RepositoryCommentAddedEvent,
|
||||
payloadType: RepositoryCommentAddedPayload{},
|
||||
filename: "../testdata/bitbucket-server/repo-comment-added.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"repo:comment:added"},
|
||||
"X-Hub-Signature": []string{"sha256=80b121d53ec48bb3f8bed9243ba53be62c8eb7d1ce0395ca87fef1938bf9620e"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request unapproved",
|
||||
event: PullRequestReviewerUnapprovedEvent,
|
||||
payloadType: PullRequestReviewerUnapprovedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-reviewer-unapproved.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:reviewer:unapproved"},
|
||||
"X-Hub-Signature": []string{"sha256=9822024378738817dc85c0a41feb9fa4825058d28a9a1ee7065bfacd6a04c7c1"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request reviewer updated",
|
||||
event: PullRequestReviewerUpdatedEvent,
|
||||
payloadType: PullRequestReviewerUpdatedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-reviewer-updated.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:reviewer:updated"},
|
||||
"X-Hub-Signature": []string{"sha256=07ca94a0a5c5913819a16ce0414f976023aeb0065fa9d80f990aad7f1d936be5"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request opened",
|
||||
event: PullRequestOpenedEvent,
|
||||
payloadType: PullRequestOpenedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-opened.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:opened"},
|
||||
"X-Hub-Signature": []string{"sha256=b82c323978a741aa256c0a6bfa13a8f211e1795bd8ddb2641ced122769f7a7c6"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request modified",
|
||||
event: PullRequestModifiedEvent,
|
||||
payloadType: PullRequestModifiedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-modified.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:modified"},
|
||||
"X-Hub-Signature": []string{"sha256=1e307462390ff6f0c59fcdb8eb4b2977058b5cbc502a24a0db385f5331136227"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request merged",
|
||||
event: PullRequestMergedEvent,
|
||||
payloadType: PullRequestMergedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-merged.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:merged"},
|
||||
"X-Hub-Signature": []string{"sha256=adbee42ddd6a178b0c1160e89f666b53fb8c76495f782a4e3055e3fbee232704"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request marked needs work",
|
||||
event: PullRequestReviewerNeedsWorkEvent,
|
||||
payloadType: PullRequestReviewerNeedsWorkPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-reviewer-needs-work.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:reviewer:needs_work"},
|
||||
"X-Hub-Signature": []string{"sha256=3d10aadcede2131674654bb48c10fe904b0b2ed3d3b283bdc5c64dbc4856582d"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request deleted",
|
||||
event: PullRequestDeletedEvent,
|
||||
payloadType: PullRequestDeletedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-deleted.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:deleted"},
|
||||
"X-Hub-Signature": []string{"sha256=657c5d9839c0e3c1c95e5ceceacb07f0e372328883dab6e25bb619ee8b19a359"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request declined",
|
||||
event: PullRequestDeclinedEvent,
|
||||
payloadType: PullRequestDeclinedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-declined.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:declined"},
|
||||
"X-Hub-Signature": []string{"sha256=e323ab4d057f32475340d03c90aa9ec20cd3a96c15200d75e59f221c14053528"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request comment edited",
|
||||
event: PullRequestCommentEditedEvent,
|
||||
payloadType: PullRequestCommentEditedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-comment-edited.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:comment:edited"},
|
||||
"X-Hub-Signature": []string{"sha256=66580d1b02904e470cb48c1333452ea0748aecc3a9806f5a0f949be3a8b0a5ec"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request comment deleted",
|
||||
event: PullRequestCommentDeletedEvent,
|
||||
payloadType: PullRequestCommentDeletedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-comment-deleted.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:comment:deleted"},
|
||||
"X-Hub-Signature": []string{"sha256=7c9575a6e9b141e063ef34e5066ebe67c3a5b59241e633d1332d70aba468fd04"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Pull request comment added",
|
||||
event: PullRequestReviewerApprovedEvent,
|
||||
payloadType: PullRequestReviewerApprovedPayload{},
|
||||
filename: "../testdata/bitbucket-server/pr-reviewer-approved.json",
|
||||
headers: http.Header{
|
||||
"X-Event-Key": []string{"pr:reviewer:approved"},
|
||||
"X-Hub-Signature": []string{"sha256=a8b78d774dea02f234069f724ee6c6a3c5c13fc3a3b856dac0a33d8ed9ec1823"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
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")
|
||||
|
||||
resp, err := client.Do(req)
|
||||
assert.NoError(err)
|
||||
assert.Equal(http.StatusOK, resp.StatusCode)
|
||||
assert.NoError(parseError)
|
||||
assert.Equal(reflect.TypeOf(tc.payloadType), reflect.TypeOf(results))
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,281 @@
|
||||
package bitbucketserver
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
type DiagnosticsPingPayload struct{}
|
||||
|
||||
type RepositoryReferenceChangedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
Repository Repository `json:"repository"`
|
||||
Changes []RepositoryChange `json:"changes"`
|
||||
}
|
||||
|
||||
type RepositoryModifiedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
Old Repository `json:"old"`
|
||||
New Repository `json:"new"`
|
||||
}
|
||||
|
||||
type RepositoryForkedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
Repository Repository `json:"repository"`
|
||||
}
|
||||
|
||||
type RepositoryCommentAddedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
Comment Comment `json:"comment"`
|
||||
Repository Repository `json:"repository"`
|
||||
Commit string `json:"commit"`
|
||||
}
|
||||
|
||||
type RepositoryCommentEditedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
Comment Comment `json:"comment"`
|
||||
PreviousComment string `json:"previousComment"`
|
||||
Repository Repository `json:"repository"`
|
||||
Commit string `json:"commit"`
|
||||
}
|
||||
|
||||
type RepositoryCommentDeletedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
Comment Comment `json:"comment"`
|
||||
Repository Repository `json:"repository"`
|
||||
Commit string `json:"commit"`
|
||||
}
|
||||
|
||||
type PullRequestOpenedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
}
|
||||
|
||||
type PullRequestFromReferenceUpdatedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
PreviousFromHash string `json:"previousFromHash"`
|
||||
}
|
||||
|
||||
type PullRequestModifiedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
PreviousTitle string `json:"previousTitle"`
|
||||
PreviousDescription string `json:"previousDescription"`
|
||||
PreviousTarget map[string]interface{} `json:"previousTarget"`
|
||||
}
|
||||
|
||||
type PullRequestMergedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
}
|
||||
|
||||
type PullRequestDeclinedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
}
|
||||
|
||||
type PullRequestDeletedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
}
|
||||
|
||||
type PullRequestReviewerUpdatedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
RemovedReviewers []User `json:"removedReviewers"`
|
||||
AddedReviewers []User `json:"addedReviewers"`
|
||||
}
|
||||
|
||||
type PullRequestReviewerApprovedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
Participant PullRequestParticipant `json:"participant"`
|
||||
PreviousStatus string `json:"previousStatus"`
|
||||
}
|
||||
|
||||
type PullRequestReviewerUnapprovedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
Participant PullRequestParticipant `json:"participant"`
|
||||
PreviousStatus string `json:"previousStatus"`
|
||||
}
|
||||
|
||||
type PullRequestReviewerNeedsWorkPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
Participant PullRequestParticipant `json:"participant"`
|
||||
PreviousStatus string `json:"previousStatus"`
|
||||
}
|
||||
|
||||
type PullRequestCommentAddedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
Comment Comment `json:"comment"`
|
||||
CommentParentID uint64 `json:"commentParentId,omitempty"`
|
||||
}
|
||||
|
||||
type PullRequestCommentEditedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
Comment Comment `json:"comment"`
|
||||
CommentParentID string `json:"commentParentId,omitempty"`
|
||||
PreviousComment string `json:"previousComment"`
|
||||
}
|
||||
|
||||
type PullRequestCommentDeletedPayload struct {
|
||||
Date Date `json:"date"`
|
||||
EventKey Event `json:"eventKey"`
|
||||
Actor User `json:"actor"`
|
||||
PullRequest PullRequest `json:"pullRequest"`
|
||||
Comment Comment `json:"comment"`
|
||||
CommentParentID uint64 `json:"commentParentId,omitempty"`
|
||||
}
|
||||
|
||||
// -----------------------
|
||||
|
||||
type User struct {
|
||||
ID uint64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
EmailAddress string `json:"emailAddress"`
|
||||
DisplayName string `json:"displayName"`
|
||||
Active bool `json:"active"`
|
||||
Slug string `json:"slug"`
|
||||
Type string `json:"type"`
|
||||
Links map[string]interface{} `json:"links"`
|
||||
}
|
||||
|
||||
type Repository struct {
|
||||
ID uint64 `json:"id"`
|
||||
Slug string `json:"slug"`
|
||||
Name string `json:"name"`
|
||||
ScmID string `json:"scmId"`
|
||||
State string `json:"state"`
|
||||
StatusMessage string `json:"statusMessage"`
|
||||
Forkable bool `json:"forkable"`
|
||||
Origin *Repository `json:"origin,omitempty"`
|
||||
Project Project `json:"project"`
|
||||
Public bool `json:"public"`
|
||||
Links map[string]interface{} `json:"links"`
|
||||
}
|
||||
|
||||
type Project struct {
|
||||
ID uint64 `json:"id"`
|
||||
Key string `json:"key"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Public *bool `json:"public,omitempty"`
|
||||
Owner User `json:"owner"`
|
||||
Links map[string]interface{} `json:"links"`
|
||||
}
|
||||
|
||||
type PullRequest struct {
|
||||
ID uint64 `json:"id"`
|
||||
Version uint64 `json:"version"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description,omitempty"`
|
||||
State string `json:"state"`
|
||||
Open bool `json:"open"`
|
||||
Closed bool `json:"closed"`
|
||||
CreatedDate uint64 `json:"createdDate"`
|
||||
UpdatedDate uint64 `json:"updatedDate,omitempty"`
|
||||
ClosedDate uint64 `json:"closedDate,omitempty"`
|
||||
FromRef RepositoryReference `json:"fromRef"`
|
||||
ToRef RepositoryReference `json:"toRef"`
|
||||
Locked bool `json:"locked"`
|
||||
Author PullRequestParticipant `json:"author"`
|
||||
Reviewers []PullRequestParticipant `json:"reviewers"`
|
||||
Participants []PullRequestParticipant `json:"participants"`
|
||||
Properties map[string]interface{} `json:"properties,omitempty"`
|
||||
Links map[string]interface{} `json:"links"`
|
||||
}
|
||||
|
||||
type RepositoryChange struct {
|
||||
Reference RepositoryReference `json:"ref"`
|
||||
ReferenceID string `json:"refId"`
|
||||
FromHash string `json:"fromHash"`
|
||||
ToHash string `json:"toHash"`
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
type RepositoryReference struct {
|
||||
ID string `json:"id"`
|
||||
DisplayID string `json:"displayId"`
|
||||
Type string `json:"type,omitempty"`
|
||||
LatestCommit string `json:"latestCommit,omitempty"`
|
||||
Repository Repository `json:"repository,omitempty"`
|
||||
}
|
||||
|
||||
type Comment struct {
|
||||
ID uint64 `json:"id"`
|
||||
Properties map[string]interface{} `json:"properties,omitempty"`
|
||||
Version uint64 `json:"version"`
|
||||
Text string `json:"text"`
|
||||
Author User `json:"author"`
|
||||
CreatedDate uint64 `json:"createdDate"`
|
||||
UpdatedDate uint64 `json:"updatedDate"`
|
||||
Comments []map[string]interface{} `json:"comments"`
|
||||
Tasks []map[string]interface{} `json:"tasks"`
|
||||
PermittedOperations map[string]interface{} `json:"permittedOperations,omitempty"`
|
||||
}
|
||||
|
||||
type PullRequestParticipant struct {
|
||||
User User `json:"user"`
|
||||
LastReviewedCommit string `json:"lastReviewedCommit,omitempty"`
|
||||
Role string `json:"role"`
|
||||
Approved bool `json:"approved"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
type Date time.Time
|
||||
|
||||
func (b *Date) UnmarshalJSON(p []byte) error {
|
||||
t, err := time.Parse("2006-01-02T15:04:05Z0700", strings.Replace(string(p), "\"", "", -1))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*b = Date(t)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b Date) MarshalJSON() ([]byte, error) {
|
||||
stamp := fmt.Sprintf("\"%s\"", time.Time(b).Format("2006-01-02T15:04:05Z0700"))
|
||||
return []byte(stamp), nil
|
||||
}
|
||||
@@ -348,8 +348,9 @@ type PullRequestCommentDeletedPayload struct {
|
||||
// Owner is the common Bitbucket Owner Sub Entity
|
||||
type Owner struct {
|
||||
Type string `json:"type"`
|
||||
Username string `json:"username"`
|
||||
NickName string `json:"nickname"`
|
||||
DisplayName string `json:"display_name"`
|
||||
AccountID string `json:"account_id"`
|
||||
UUID string `json:"uuid"`
|
||||
Links struct {
|
||||
Self struct {
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
package docker
|
||||
|
||||
// this package receives the Docker Hub Automated Build webhook
|
||||
// https://docs.docker.com/docker-hub/webhooks/
|
||||
// NOT the Docker Trusted Registry webhook
|
||||
// https://docs.docker.com/ee/dtr/user/create-and-manage-webhooks/
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// parse errors
|
||||
var (
|
||||
ErrInvalidHTTPMethod = errors.New("invalid HTTP Method")
|
||||
ErrParsingPayload = errors.New("error parsing payload")
|
||||
)
|
||||
|
||||
// Event defines a Docker hook event type
|
||||
type Event string
|
||||
|
||||
// Docker hook types (only one for now)
|
||||
const (
|
||||
BuildEvent Event = "build"
|
||||
)
|
||||
|
||||
// BuildPayload a docker hub build notice
|
||||
// https://docs.docker.com/docker-hub/webhooks/
|
||||
type BuildPayload struct {
|
||||
CallbackURL string `json:"callback_url"`
|
||||
PushData struct {
|
||||
Images []string `json:"images"`
|
||||
PushedAt float32 `json:"pushed_at"`
|
||||
Pusher string `json:"pusher"`
|
||||
Tag string `json:"tag"`
|
||||
} `json:"push_data"`
|
||||
Repository struct {
|
||||
CommentCount int `json:"comment_count"`
|
||||
DateCreated float32 `json:"date_created"`
|
||||
Description string `json:"description"`
|
||||
Dockerfile string `json:"dockerfile"`
|
||||
FullDescription string `json:"full_description"`
|
||||
IsOfficial bool `json:"is_official"`
|
||||
IsPrivate bool `json:"is_private"`
|
||||
IsTrusted bool `json:"is_trusted"`
|
||||
Name string `json:"name"`
|
||||
Namespace string `json:"namespace"`
|
||||
Owner string `json:"owner"`
|
||||
RepoName string `json:"repo_name"`
|
||||
RepoURL string `json:"repo_url"`
|
||||
StarCount int `json:"star_count"`
|
||||
Status string `json:"status"`
|
||||
} `json:"repository"`
|
||||
}
|
||||
|
||||
// Webhook instance contains all methods needed to process events
|
||||
type Webhook struct {
|
||||
}
|
||||
|
||||
// New creates and returns a WebHook instance
|
||||
func New() (*Webhook, error) {
|
||||
hook := new(Webhook)
|
||||
return hook, nil
|
||||
}
|
||||
|
||||
// Parse verifies and parses the events specified and returns the payload object or an error
|
||||
func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) {
|
||||
defer func() {
|
||||
_, _ = io.Copy(ioutil.Discard, r.Body)
|
||||
_ = r.Body.Close()
|
||||
}()
|
||||
|
||||
if r.Method != http.MethodPost {
|
||||
return nil, ErrInvalidHTTPMethod
|
||||
}
|
||||
|
||||
payload, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil || len(payload) == 0 {
|
||||
return nil, ErrParsingPayload
|
||||
}
|
||||
|
||||
var pl BuildPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
if err != nil {
|
||||
return nil, ErrParsingPayload
|
||||
}
|
||||
return pl, err
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"reflect"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// NOTES:
|
||||
// - Run "go test" to run tests
|
||||
// - Run "gocov test | gocov report" to report on test converage by file
|
||||
// - Run "gocov test | gocov annotate -" to report on all code and functions, those ,marked with "MISS" were never called
|
||||
//
|
||||
// or
|
||||
//
|
||||
// -- may be a good idea to change to output path to somewherelike /tmp
|
||||
// go test -coverprofile cover.out && go tool cover -html=cover.out -o cover.html
|
||||
//
|
||||
|
||||
const (
|
||||
path = "/webhooks"
|
||||
)
|
||||
|
||||
var hook *Webhook
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
// setup
|
||||
var err error
|
||||
hook, err = New()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
os.Exit(m.Run())
|
||||
// teardown
|
||||
}
|
||||
|
||||
func newServer(handler http.HandlerFunc) *httptest.Server {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc(path, handler)
|
||||
return httptest.NewServer(mux)
|
||||
}
|
||||
|
||||
func TestWebhooks(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
tests := []struct {
|
||||
name string
|
||||
event Event
|
||||
typ interface{}
|
||||
filename string
|
||||
headers http.Header
|
||||
}{
|
||||
{
|
||||
name: "BuildEvent",
|
||||
event: BuildEvent,
|
||||
typ: BuildPayload{},
|
||||
filename: "../testdata/docker/docker_hub_build_notice.json",
|
||||
},
|
||||
}
|
||||
|
||||
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.Set("Content-Type", "application/json")
|
||||
|
||||
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))
|
||||
})
|
||||
}
|
||||
}
|
||||
+64
-33
@@ -28,39 +28,46 @@ type Event string
|
||||
|
||||
// GitHub hook types
|
||||
const (
|
||||
CommitCommentEvent Event = "commit_comment"
|
||||
CreateEvent Event = "create"
|
||||
DeleteEvent Event = "delete"
|
||||
DeploymentEvent Event = "deployment"
|
||||
DeploymentStatusEvent Event = "deployment_status"
|
||||
ForkEvent Event = "fork"
|
||||
GollumEvent Event = "gollum"
|
||||
InstallationEvent Event = "installation"
|
||||
IntegrationInstallationEvent Event = "integration_installation"
|
||||
IssueCommentEvent Event = "issue_comment"
|
||||
IssuesEvent Event = "issues"
|
||||
LabelEvent Event = "label"
|
||||
MemberEvent Event = "member"
|
||||
MembershipEvent Event = "membership"
|
||||
MilestoneEvent Event = "milestone"
|
||||
OrganizationEvent Event = "organization"
|
||||
OrgBlockEvent Event = "org_block"
|
||||
PageBuildEvent Event = "page_build"
|
||||
PingEvent Event = "ping"
|
||||
ProjectCardEvent Event = "project_card"
|
||||
ProjectColumnEvent Event = "project_column"
|
||||
ProjectEvent Event = "project"
|
||||
PublicEvent Event = "public"
|
||||
PullRequestEvent Event = "pull_request"
|
||||
PullRequestReviewEvent Event = "pull_request_review"
|
||||
PullRequestReviewCommentEvent Event = "pull_request_review_comment"
|
||||
PushEvent Event = "push"
|
||||
ReleaseEvent Event = "release"
|
||||
RepositoryEvent Event = "repository"
|
||||
StatusEvent Event = "status"
|
||||
TeamEvent Event = "team"
|
||||
TeamAddEvent Event = "team_add"
|
||||
WatchEvent Event = "watch"
|
||||
CheckRunEvent Event = "check_run"
|
||||
CheckSuiteEvent Event = "check_suite"
|
||||
CommitCommentEvent Event = "commit_comment"
|
||||
CreateEvent Event = "create"
|
||||
DeleteEvent Event = "delete"
|
||||
DeploymentEvent Event = "deployment"
|
||||
DeploymentStatusEvent Event = "deployment_status"
|
||||
ForkEvent Event = "fork"
|
||||
GollumEvent Event = "gollum"
|
||||
InstallationEvent Event = "installation"
|
||||
InstallationRepositoriesEvent Event = "installation_repositories"
|
||||
IntegrationInstallationEvent Event = "integration_installation"
|
||||
IntegrationInstallationRepositoriesEvent Event = "integration_installation_repositories"
|
||||
IssueCommentEvent Event = "issue_comment"
|
||||
IssuesEvent Event = "issues"
|
||||
LabelEvent Event = "label"
|
||||
MemberEvent Event = "member"
|
||||
MembershipEvent Event = "membership"
|
||||
MilestoneEvent Event = "milestone"
|
||||
MetaEvent Event = "meta"
|
||||
OrganizationEvent Event = "organization"
|
||||
OrgBlockEvent Event = "org_block"
|
||||
PageBuildEvent Event = "page_build"
|
||||
PingEvent Event = "ping"
|
||||
ProjectCardEvent Event = "project_card"
|
||||
ProjectColumnEvent Event = "project_column"
|
||||
ProjectEvent Event = "project"
|
||||
PublicEvent Event = "public"
|
||||
PullRequestEvent Event = "pull_request"
|
||||
PullRequestReviewEvent Event = "pull_request_review"
|
||||
PullRequestReviewCommentEvent Event = "pull_request_review_comment"
|
||||
PushEvent Event = "push"
|
||||
ReleaseEvent Event = "release"
|
||||
RepositoryEvent Event = "repository"
|
||||
RepositoryVulnerabilityAlertEvent Event = "repository_vulnerability_alert"
|
||||
SecurityAdvisoryEvent Event = "security_advisory"
|
||||
StatusEvent Event = "status"
|
||||
TeamEvent Event = "team"
|
||||
TeamAddEvent Event = "team_add"
|
||||
WatchEvent Event = "watch"
|
||||
)
|
||||
|
||||
// EventSubtype defines a GitHub Hook Event subtype
|
||||
@@ -161,6 +168,14 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
}
|
||||
|
||||
switch gitHubEvent {
|
||||
case CheckRunEvent:
|
||||
var pl CheckRunPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case CheckSuiteEvent:
|
||||
var pl CheckSuitePayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case CommitCommentEvent:
|
||||
var pl CommitCommentPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
@@ -193,6 +208,10 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
var pl InstallationPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case InstallationRepositoriesEvent, IntegrationInstallationRepositoriesEvent:
|
||||
var pl InstallationRepositoriesPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case IssueCommentEvent:
|
||||
var pl IssueCommentPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
@@ -213,6 +232,10 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
var pl MembershipPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case MetaEvent:
|
||||
var pl MetaPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case MilestoneEvent:
|
||||
var pl MilestonePayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
@@ -273,6 +296,14 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
var pl RepositoryPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case RepositoryVulnerabilityAlertEvent:
|
||||
var pl RepositoryVulnerabilityAlertPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case SecurityAdvisoryEvent:
|
||||
var pl SecurityAdvisoryPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case StatusEvent:
|
||||
var pl StatusPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
|
||||
+72
-2
@@ -133,6 +133,26 @@ func TestWebhooks(t *testing.T) {
|
||||
filename string
|
||||
headers http.Header
|
||||
}{
|
||||
{
|
||||
name: "CheckRunEvent",
|
||||
event: CheckRunEvent,
|
||||
typ: CheckRunPayload{},
|
||||
filename: "../testdata/github/check-run.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"check_run"},
|
||||
"X-Hub-Signature": []string{"sha1=229f4920493b455398168cd86dc6b366064bdf3f"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "CheckSuiteEvent",
|
||||
event: CheckSuiteEvent,
|
||||
typ: CheckSuitePayload{},
|
||||
filename: "../testdata/github/check-suite.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"check_suite"},
|
||||
"X-Hub-Signature": []string{"sha1=250ad5a340f8d91e67dc5682342f3190fd2006a1"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "CommitCommentEvent",
|
||||
event: CommitCommentEvent,
|
||||
@@ -213,6 +233,16 @@ func TestWebhooks(t *testing.T) {
|
||||
"X-Hub-Signature": []string{"sha1=2058cf6cc28570710afbc638e669f5c67305a2db"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "InstallationRepositoriesEvent",
|
||||
event: InstallationRepositoriesEvent,
|
||||
typ: InstallationRepositoriesPayload{},
|
||||
filename: "../testdata/github/installation-repositories.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"installation_repositories"},
|
||||
"X-Hub-Signature": []string{"sha1=c587fbd9dd169db8ae592b3bcc80b08e2e6f4f45"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "IntegrationInstallationEvent",
|
||||
event: IntegrationInstallationEvent,
|
||||
@@ -223,6 +253,16 @@ func TestWebhooks(t *testing.T) {
|
||||
"X-Hub-Signature": []string{"sha1=bb2769f05f1a11af3a1edf8f9fac11bae7402a1e"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "IntegrationInstallationRepositoriesEvent",
|
||||
event: IntegrationInstallationRepositoriesEvent,
|
||||
typ: InstallationRepositoriesPayload{},
|
||||
filename: "../testdata/github/integration-installation-repositories.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"integration_installation_repositories"},
|
||||
"X-Hub-Signature": []string{"sha1=2f00a982574188342c2894eb9d1b1e93434687fb"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "IssueCommentEvent",
|
||||
event: IssueCommentEvent,
|
||||
@@ -233,6 +273,16 @@ func TestWebhooks(t *testing.T) {
|
||||
"X-Hub-Signature": []string{"sha1=e724c9f811fcf5f511aac32e4251b08ab1a0fd87"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "PullRequestIssueCommentEvent",
|
||||
event: IssueCommentEvent,
|
||||
typ: IssueCommentPayload{},
|
||||
filename: "../testdata/github/pull-request-issue-comment.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"issue_comment"},
|
||||
"X-Hub-Signature": []string{"sha1=6c969b99ef881b5c98b2dbfc66a34465fcf0e7d4"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "IssuesEvent",
|
||||
event: IssuesEvent,
|
||||
@@ -330,7 +380,7 @@ func TestWebhooks(t *testing.T) {
|
||||
filename: "../testdata/github/project-card.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"project_card"},
|
||||
"X-Hub-Signature": []string{"sha1=495dec0d6449d16b71f2ddcd37d595cb9b04b1d8"},
|
||||
"X-Hub-Signature": []string{"sha1=f5ed1572b04f0e03c8d5f5e3f7fa63737bef76d7"},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -370,7 +420,7 @@ func TestWebhooks(t *testing.T) {
|
||||
filename: "../testdata/github/pull-request.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"pull_request"},
|
||||
"X-Hub-Signature": []string{"sha1=35712c8d2bc197b7d07621dcf20d2fb44620508f"},
|
||||
"X-Hub-Signature": []string{"sha1=88972f972db301178aa13dafaf112d26416a15e6"},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -423,6 +473,26 @@ func TestWebhooks(t *testing.T) {
|
||||
"X-Hub-Signature": []string{"sha1=df442a8af41edd2d42ccdd997938d1d111b0f94e"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "RepositoryVulnerabilityAlertEvent",
|
||||
event: RepositoryVulnerabilityAlertEvent,
|
||||
typ: RepositoryVulnerabilityAlertPayload{},
|
||||
filename: "../testdata/github/repository-vulnerability-alert.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"repository_vulnerability_alert"},
|
||||
"X-Hub-Signature": []string{"sha1=c42c0649e7e06413bcd756763edbab48dff400db"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "SecurityAdvisoryEvent",
|
||||
event: SecurityAdvisoryEvent,
|
||||
typ: SecurityAdvisoryPayload{},
|
||||
filename: "../testdata/github/security-advisory.json",
|
||||
headers: http.Header{
|
||||
"X-Github-Event": []string{"security_advisory"},
|
||||
"X-Hub-Signature": []string{"sha1=6a71f24fa69f55469843a91dc3a5c3e29714a565"},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "StatusEvent",
|
||||
event: StatusEvent,
|
||||
|
||||
+1125
-111
File diff suppressed because it is too large
Load Diff
+72
-23
@@ -17,6 +17,7 @@ var (
|
||||
ErrGitLabTokenVerificationFailed = errors.New("X-Gitlab-Token validation failed")
|
||||
ErrEventNotFound = errors.New("event not defined to be parsed")
|
||||
ErrParsingPayload = errors.New("error parsing payload")
|
||||
ErrParsingSystemPayload = errors.New("error parsing system payload")
|
||||
// ErrHMACVerificationFailed = errors.New("HMAC verification failed")
|
||||
)
|
||||
|
||||
@@ -31,6 +32,13 @@ const (
|
||||
WikiPageEvents Event = "Wiki Page Hook"
|
||||
PipelineEvents Event = "Pipeline Hook"
|
||||
BuildEvents Event = "Build Hook"
|
||||
JobEvents Event = "Job Hook"
|
||||
SystemHookEvents Event = "System Hook"
|
||||
|
||||
objectPush string = "push"
|
||||
objectTag string = "tag_push"
|
||||
objectMergeRequest string = "merge_request"
|
||||
objectBuild string = "build"
|
||||
)
|
||||
|
||||
// Option is a configuration option for the webhook
|
||||
@@ -55,7 +63,7 @@ type Webhook struct {
|
||||
secret string
|
||||
}
|
||||
|
||||
// Event defines a GitHub hook event type
|
||||
// Event defines a GitLab hook event type by the X-Gitlab-Event Header
|
||||
type Event string
|
||||
|
||||
// New creates and returns a WebHook instance denoted by the Provider type
|
||||
@@ -83,6 +91,14 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
return nil, ErrInvalidHTTPMethod
|
||||
}
|
||||
|
||||
// If we have a Secret set, we should check the MAC
|
||||
if len(hook.secret) > 0 {
|
||||
signature := r.Header.Get("X-Gitlab-Token")
|
||||
if signature != hook.secret {
|
||||
return nil, ErrGitLabTokenVerificationFailed
|
||||
}
|
||||
}
|
||||
|
||||
event := r.Header.Get("X-Gitlab-Event")
|
||||
if len(event) == 0 {
|
||||
return nil, ErrMissingGitLabEventHeader
|
||||
@@ -90,6 +106,16 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
|
||||
gitLabEvent := Event(event)
|
||||
|
||||
payload, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil || len(payload) == 0 {
|
||||
return nil, ErrParsingPayload
|
||||
}
|
||||
|
||||
return eventParsing(gitLabEvent, events, payload)
|
||||
}
|
||||
|
||||
func eventParsing(gitLabEvent Event, events []Event, payload []byte) (interface{}, error) {
|
||||
|
||||
var found bool
|
||||
for _, evt := range events {
|
||||
if evt == gitLabEvent {
|
||||
@@ -102,64 +128,87 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
|
||||
return nil, ErrEventNotFound
|
||||
}
|
||||
|
||||
payload, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil || len(payload) == 0 {
|
||||
return nil, ErrParsingPayload
|
||||
}
|
||||
|
||||
// If we have a Secret set, we should check the MAC
|
||||
if len(hook.secret) > 0 {
|
||||
signature := r.Header.Get("X-Gitlab-Token")
|
||||
if signature != hook.secret {
|
||||
return nil, ErrGitLabTokenVerificationFailed
|
||||
}
|
||||
}
|
||||
|
||||
switch gitLabEvent {
|
||||
case PushEvents:
|
||||
var pl PushEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case TagEvents:
|
||||
var pl TagEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case ConfidentialIssuesEvents:
|
||||
var pl ConfidentialIssueEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case IssuesEvents:
|
||||
var pl IssueEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case CommentEvents:
|
||||
var pl CommentEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case MergeRequestEvents:
|
||||
var pl MergeRequestEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case WikiPageEvents:
|
||||
var pl WikiPageEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case PipelineEvents:
|
||||
var pl PipelineEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
|
||||
case BuildEvents:
|
||||
var pl BuildEventPayload
|
||||
err = json.Unmarshal([]byte(payload), &pl)
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
return pl, err
|
||||
case JobEvents:
|
||||
var pl JobEventPayload
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if pl.ObjectKind == objectBuild {
|
||||
return eventParsing(BuildEvents, events, payload)
|
||||
}
|
||||
return pl, nil
|
||||
|
||||
case SystemHookEvents:
|
||||
var pl SystemHookPayload
|
||||
err := json.Unmarshal([]byte(payload), &pl)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
switch pl.ObjectKind {
|
||||
case objectPush:
|
||||
return eventParsing(PushEvents, events, payload)
|
||||
case objectTag:
|
||||
return eventParsing(TagEvents, events, payload)
|
||||
case objectMergeRequest:
|
||||
return eventParsing(MergeRequestEvents, events, payload)
|
||||
default:
|
||||
switch pl.EventName {
|
||||
case objectPush:
|
||||
return eventParsing(PushEvents, events, payload)
|
||||
case objectTag:
|
||||
return eventParsing(TagEvents, events, payload)
|
||||
case objectMergeRequest:
|
||||
return eventParsing(MergeRequestEvents, events, payload)
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown system hook event %s", gitLabEvent)
|
||||
}
|
||||
}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown event %s", gitLabEvent)
|
||||
}
|
||||
|
||||
+113
-4
@@ -2,15 +2,13 @@ package gitlab
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"io"
|
||||
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -266,3 +264,114 @@ func TestWebhooks(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestJobHooks(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
tests := []struct {
|
||||
name string
|
||||
events []Event
|
||||
typ interface{}
|
||||
filename string
|
||||
headers http.Header
|
||||
}{
|
||||
{
|
||||
name: "JobEvent",
|
||||
events: []Event{JobEvents, BuildEvents},
|
||||
typ: BuildEventPayload{},
|
||||
filename: "../testdata/gitlab/build-event.json",
|
||||
headers: http.Header{
|
||||
"X-Gitlab-Event": []string{"Job 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.events...)
|
||||
})
|
||||
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 TestSystemHooks(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
tests := []struct {
|
||||
name string
|
||||
event Event
|
||||
typ interface{}
|
||||
filename string
|
||||
}{
|
||||
{
|
||||
name: "PushEvent",
|
||||
event: PushEvents,
|
||||
typ: PushEventPayload{},
|
||||
filename: "../testdata/gitlab/system-push-event.json",
|
||||
},
|
||||
{
|
||||
name: "TagEvent",
|
||||
event: TagEvents,
|
||||
typ: TagEventPayload{},
|
||||
filename: "../testdata/gitlab/system-tag-event.json",
|
||||
},
|
||||
{
|
||||
name: "MergeRequestEvent",
|
||||
event: MergeRequestEvents,
|
||||
typ: MergeRequestEventPayload{},
|
||||
filename: "../testdata/gitlab/system-merge-request-event.json",
|
||||
},
|
||||
}
|
||||
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, SystemHookEvents, tc.event)
|
||||
})
|
||||
defer server.Close()
|
||||
req, err := http.NewRequest(http.MethodPost, server.URL+path, payload)
|
||||
assert.NoError(err)
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("X-Gitlab-Token", "sampleToken!")
|
||||
req.Header.Set("X-Gitlab-Event", "System Hook")
|
||||
|
||||
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))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
+158
-60
@@ -56,6 +56,8 @@ type MergeRequestEventPayload struct {
|
||||
Changes Changes `json:"changes"`
|
||||
Project Project `json:"project"`
|
||||
Repository Repository `json:"repository"`
|
||||
Labels []Label `json:"labels"`
|
||||
Assignees []Assignee `json:"assignees"`
|
||||
}
|
||||
|
||||
// PushEventPayload contains the information for GitLab's push event
|
||||
@@ -67,6 +69,7 @@ type PushEventPayload struct {
|
||||
CheckoutSHA string `json:"checkout_sha"`
|
||||
UserID int64 `json:"user_id"`
|
||||
UserName string `json:"user_name"`
|
||||
UserUsername string `json:"user_username"`
|
||||
UserEmail string `json:"user_email"`
|
||||
UserAvatar string `json:"user_avatar"`
|
||||
ProjectID int64 `json:"project_id"`
|
||||
@@ -85,6 +88,7 @@ type TagEventPayload struct {
|
||||
CheckoutSHA string `json:"checkout_sha"`
|
||||
UserID int64 `json:"user_id"`
|
||||
UserName string `json:"user_name"`
|
||||
UserUsername string `json:"user_username"`
|
||||
UserAvatar string `json:"user_avatar"`
|
||||
ProjectID int64 `json:"project_id"`
|
||||
Project Project `json:"Project"`
|
||||
@@ -104,12 +108,13 @@ type WikiPageEventPayload struct {
|
||||
|
||||
// PipelineEventPayload contains the information for GitLab's pipeline status change event
|
||||
type PipelineEventPayload struct {
|
||||
ObjectKind string `json:"object_kind"`
|
||||
User User `json:"user"`
|
||||
Project Project `json:"project"`
|
||||
Commit Commit `json:"commit"`
|
||||
ObjectAttributes ObjectAttributes `json:"object_attributes"`
|
||||
Builds []Build `json:"builds"`
|
||||
ObjectKind string `json:"object_kind"`
|
||||
User User `json:"user"`
|
||||
Project Project `json:"project"`
|
||||
Commit Commit `json:"commit"`
|
||||
ObjectAttributes PipelineObjectAttributes `json:"object_attributes"`
|
||||
MergeRequest MergeRequest `json:"merge_request"`
|
||||
Builds []Build `json:"builds"`
|
||||
}
|
||||
|
||||
// CommentEventPayload contains the information for GitLab's comment event
|
||||
@@ -139,7 +144,7 @@ type BuildEventPayload struct {
|
||||
BuildStatus string `json:"build_status"`
|
||||
BuildStartedAt customTime `json:"build_started_at"`
|
||||
BuildFinishedAt customTime `json:"build_finished_at"`
|
||||
BuildDuration int64 `json:"build_duration"`
|
||||
BuildDuration float64 `json:"build_duration"`
|
||||
BuildAllowFailure bool `json:"build_allow_failure"`
|
||||
ProjectID int64 `json:"project_id"`
|
||||
ProjectName string `json:"project_name"`
|
||||
@@ -148,6 +153,37 @@ type BuildEventPayload struct {
|
||||
Repository Repository `json:"repository"`
|
||||
}
|
||||
|
||||
// JobEventPayload contains the information for GitLab's Job status change
|
||||
type JobEventPayload struct {
|
||||
ObjectKind string `json:"object_kind"`
|
||||
Ref string `json:"ref"`
|
||||
Tag bool `json:"tag"`
|
||||
BeforeSHA string `json:"before_sha"`
|
||||
SHA string `json:"sha"`
|
||||
BuildID int64 `json:"build_id"`
|
||||
BuildName string `json:"build_name"`
|
||||
BuildStage string `json:"build_stage"`
|
||||
BuildStatus string `json:"build_status"`
|
||||
BuildStartedAt customTime `json:"build_started_at"`
|
||||
BuildFinishedAt customTime `json:"build_finished_at"`
|
||||
BuildDuration float64 `json:"build_duration"`
|
||||
BuildAllowFailure bool `json:"build_allow_failure"`
|
||||
BuildFailureReason string `json:"build_failure_reason"`
|
||||
PipelineID int64 `json:"pipeline_id"`
|
||||
ProjectID int64 `json:"project_id"`
|
||||
ProjectName string `json:"project_name"`
|
||||
User User `json:"user"`
|
||||
Commit BuildCommit `json:"commit"`
|
||||
Repository Repository `json:"repository"`
|
||||
Runner Runner `json:"runner"`
|
||||
}
|
||||
|
||||
// SystemHookPayload contains the ObjectKind to match with real hook events
|
||||
type SystemHookPayload struct {
|
||||
ObjectKind string `json:"object_kind"`
|
||||
EventName string `json:"event_name"`
|
||||
}
|
||||
|
||||
// Issue contains all of the GitLab issue information
|
||||
type Issue struct {
|
||||
ID int64 `json:"id"`
|
||||
@@ -165,7 +201,7 @@ type Issue struct {
|
||||
IID int64 `json:"iid"`
|
||||
}
|
||||
|
||||
// Build contains all of the GitLab build information
|
||||
// Build contains all of the GitLab Build information
|
||||
type Build struct {
|
||||
ID int64 `json:"id"`
|
||||
Stage string `json:"stage"`
|
||||
@@ -208,6 +244,7 @@ type Wiki struct {
|
||||
type Commit struct {
|
||||
ID string `json:"id"`
|
||||
Message string `json:"message"`
|
||||
Title string `json:"title"`
|
||||
Timestamp customTime `json:"timestamp"`
|
||||
URL string `json:"url"`
|
||||
Author Author `json:"author"`
|
||||
@@ -221,10 +258,10 @@ type BuildCommit struct {
|
||||
ID int64 `json:"id"`
|
||||
SHA string `json:"sha"`
|
||||
Message string `json:"message"`
|
||||
AuthorName string `json:"auuthor_name"`
|
||||
AuthorName string `json:"author_name"`
|
||||
AuthorEmail string `json:"author_email"`
|
||||
Status string `json:"status"`
|
||||
Duration int64 `json:"duration"`
|
||||
Duration float64 `json:"duration"`
|
||||
StartedAt customTime `json:"started_at"`
|
||||
FinishedAt customTime `json:"finished_at"`
|
||||
}
|
||||
@@ -253,11 +290,12 @@ type User struct {
|
||||
|
||||
// Project contains all of the GitLab project information
|
||||
type Project struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
WebURL string `json:"web_url"`
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
GitSSSHURL string `json:"git_ssh_url"`
|
||||
GitSSHURL string `json:"git_ssh_url"`
|
||||
GitHTTPURL string `json:"git_http_url"`
|
||||
Namespace string `json:"namespace"`
|
||||
VisibilityLevel int64 `json:"visibility_level"`
|
||||
@@ -271,59 +309,116 @@ type Project struct {
|
||||
|
||||
// Repository contains all of the GitLab repository information
|
||||
type Repository struct {
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
Description string `json:"description"`
|
||||
Homepage string `json:"homepage"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
Description string `json:"description"`
|
||||
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
|
||||
type ObjectAttributes struct {
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
AssigneeID int64 `json:"assignee_id"`
|
||||
AuthorID int64 `json:"author_id"`
|
||||
ProjectID int64 `json:"project_id"`
|
||||
CreatedAt customTime `json:"created_at"`
|
||||
UpdatedAt customTime `json:"updated_at"`
|
||||
Position int64 `json:"position"`
|
||||
BranchName string `json:"branch_name"`
|
||||
Description string `json:"description"`
|
||||
MilestoneID int64 `json:"milestone_id"`
|
||||
State string `json:"state"`
|
||||
IID int64 `json:"iid"`
|
||||
URL string `json:"url"`
|
||||
Action string `json:"action"`
|
||||
TargetBranch string `json:"target_branch"`
|
||||
SourceBranch string `json:"source_branch"`
|
||||
SourceProjectID int64 `json:"source_project_id"`
|
||||
TargetProjectID int64 `json:"target_project_id"`
|
||||
StCommits string `json:"st_commits"`
|
||||
MergeStatus string `json:"merge_status"`
|
||||
Content string `json:"content"`
|
||||
Format string `json:"format"`
|
||||
Message string `json:"message"`
|
||||
Slug string `json:"slug"`
|
||||
Ref string `json:"ref"`
|
||||
Tag bool `json:"tag"`
|
||||
SHA string `json:"sha"`
|
||||
BeforeSHA string `json:"before_sha"`
|
||||
Status string `json:"status"`
|
||||
Stages []string `json:"stages"`
|
||||
Duration int64 `json:"duration"`
|
||||
Note string `json:"note"`
|
||||
NotebookType string `json:"noteable_type"`
|
||||
At customTime `json:"attachment"`
|
||||
LineCode string `json:"line_code"`
|
||||
CommitID string `json:"commit_id"`
|
||||
NoteableID int64 `json:"noteable_id"`
|
||||
System bool `json:"system"`
|
||||
WorkInProgress bool `json:"work_in_progress"`
|
||||
StDiffs []StDiff `json:"st_diffs"`
|
||||
Source Source `json:"source"`
|
||||
Target Target `json:"target"`
|
||||
LastCommit LastCommit `json:"last_commit"`
|
||||
Assignee Assignee `json:"assignee"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
AssigneeIDS []int64 `json:"assignee_ids"`
|
||||
AssigneeID int64 `json:"assignee_id"`
|
||||
AuthorID int64 `json:"author_id"`
|
||||
ProjectID int64 `json:"project_id"`
|
||||
CreatedAt customTime `json:"created_at"`
|
||||
UpdatedAt customTime `json:"updated_at"`
|
||||
UpdatedByID int64 `json:"updated_by_id"`
|
||||
LastEditedAt customTime `json:"last_edited_at"`
|
||||
LastEditedByID int64 `json:"last_edited_by_id"`
|
||||
RelativePosition int64 `json:"relative_position"`
|
||||
Position Position `json:"position"`
|
||||
BranchName string `json:"branch_name"`
|
||||
Description string `json:"description"`
|
||||
MilestoneID int64 `json:"milestone_id"`
|
||||
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"`
|
||||
URL string `json:"url"`
|
||||
Action string `json:"action"`
|
||||
TargetBranch string `json:"target_branch"`
|
||||
SourceBranch string `json:"source_branch"`
|
||||
SourceProjectID int64 `json:"source_project_id"`
|
||||
TargetProjectID int64 `json:"target_project_id"`
|
||||
StCommits string `json:"st_commits"`
|
||||
MergeStatus string `json:"merge_status"`
|
||||
Content string `json:"content"`
|
||||
Format string `json:"format"`
|
||||
Message string `json:"message"`
|
||||
Slug string `json:"slug"`
|
||||
Ref string `json:"ref"`
|
||||
Tag bool `json:"tag"`
|
||||
SHA string `json:"sha"`
|
||||
BeforeSHA string `json:"before_sha"`
|
||||
Status string `json:"status"`
|
||||
Stages []string `json:"stages"`
|
||||
Duration int64 `json:"duration"`
|
||||
Note string `json:"note"`
|
||||
NotebookType string `json:"noteable_type"` // nolint:misspell
|
||||
At customTime `json:"attachment"`
|
||||
LineCode string `json:"line_code"`
|
||||
CommitID string `json:"commit_id"`
|
||||
NoteableID int64 `json:"noteable_id"` // nolint: misspell
|
||||
System bool `json:"system"`
|
||||
WorkInProgress bool `json:"work_in_progress"`
|
||||
StDiffs []StDiff `json:"st_diffs"`
|
||||
Source Source `json:"source"`
|
||||
Target Target `json:"target"`
|
||||
LastCommit LastCommit `json:"last_commit"`
|
||||
Assignee Assignee `json:"assignee"`
|
||||
}
|
||||
|
||||
// PipelineObjectAttributes contains pipeline specific GitLab object attributes information
|
||||
type PipelineObjectAttributes struct {
|
||||
ID int64 `json:"id"`
|
||||
Ref string `json:"ref"`
|
||||
Tag bool `json:"tag"`
|
||||
SHA string `json:"sha"`
|
||||
BeforeSHA string `json:"before_sha"`
|
||||
Source string `json:"source"`
|
||||
Status string `json:"status"`
|
||||
Stages []string `json:"stages"`
|
||||
CreatedAt customTime `json:"created_at"`
|
||||
FinishedAt customTime `json:"finished_at"`
|
||||
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
|
||||
// image coordinates, within a specific diff, identified by start, head and
|
||||
// base commit ids.
|
||||
//
|
||||
// Text position will have: new_line and old_line
|
||||
// Image position will have: width, height, x, y
|
||||
type Position struct {
|
||||
BaseSHA string `json:"base_sha"`
|
||||
StartSHA string `json:"start_sha"`
|
||||
HeadSHA string `json:"head_sha"`
|
||||
OldPath string `json:"old_path"`
|
||||
NewPath string `json:"new_path"`
|
||||
PositionType string `json:"position_type"`
|
||||
OldLine int64 `json:"old_line"`
|
||||
NewLine int64 `json:"new_line"`
|
||||
Width int64 `json:"width"`
|
||||
Height int64 `json:"height"`
|
||||
X int64 `json:"x"`
|
||||
Y int64 `json:"y"`
|
||||
}
|
||||
|
||||
// MergeRequest contains all of the GitLab merge request information
|
||||
@@ -350,13 +445,16 @@ type MergeRequest struct {
|
||||
LastCommit LastCommit `json:"last_commit"`
|
||||
WorkInProgress bool `json:"work_in_progress"`
|
||||
Assignee Assignee `json:"assignee"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
// Assignee contains all of the GitLab assignee information
|
||||
type Assignee struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Username string `json:"username"`
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
// 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=
|
||||
+213
@@ -0,0 +1,213 @@
|
||||
{
|
||||
"eventKey": "pr:comment:added",
|
||||
"date": "2019-03-01T10:08:35+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 2,
|
||||
"version": 20,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1550436762919,
|
||||
"updatedDate": 1551366080055,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"properties": {
|
||||
"repositoryId": 4
|
||||
},
|
||||
"id": 167,
|
||||
"version": 0,
|
||||
"text": "test",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551431315592,
|
||||
"updatedDate": 1551431315592,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"commentParentId": 164
|
||||
}
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
{
|
||||
"eventKey": "pr:comment:deleted",
|
||||
"date": "2019-03-01T10:09:09+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 2,
|
||||
"version": 20,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1550436762919,
|
||||
"updatedDate": 1551366080055,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"id": 166,
|
||||
"version": 0,
|
||||
"text": "test",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551431209893,
|
||||
"updatedDate": 1551431209893,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"commentParentId": 165
|
||||
}
|
||||
+213
@@ -0,0 +1,213 @@
|
||||
{
|
||||
"eventKey": "pr:comment:edited",
|
||||
"date": "2019-03-01T10:06:11+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 2,
|
||||
"version": 20,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1550436762919,
|
||||
"updatedDate": 1551366080055,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"properties": {
|
||||
"repositoryId": 4
|
||||
},
|
||||
"id": 165,
|
||||
"version": 3,
|
||||
"text": "yada edit comment",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551430363669,
|
||||
"updatedDate": 1551431171528,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"previousComment": "yada yada yada"
|
||||
}
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
{
|
||||
"eventKey": "pr:declined",
|
||||
"date": "2019-03-01T10:12:35+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 2,
|
||||
"version": 23,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "DECLINED",
|
||||
"open": false,
|
||||
"closed": true,
|
||||
"createdDate": 1550436762919,
|
||||
"updatedDate": 1551431555605,
|
||||
"closedDate": 1551431555605,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+184
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"eventKey": "pr:deleted",
|
||||
"date": "2019-03-01T10:17:10+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 2,
|
||||
"version": 26,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1550436762919,
|
||||
"updatedDate": 1551431770064,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+214
@@ -0,0 +1,214 @@
|
||||
{
|
||||
"eventKey": "pr:merged",
|
||||
"date": "2019-03-01T10:37:14+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 5,
|
||||
"version": 2,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "MERGED",
|
||||
"open": false,
|
||||
"closed": true,
|
||||
"createdDate": 1551432675860,
|
||||
"updatedDate": 1551433034286,
|
||||
"closedDate": 1551433034286,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": true,
|
||||
"status": "APPROVED"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"properties": {
|
||||
"mergeCommit": {
|
||||
"displayId": "cbf26be7bfc",
|
||||
"id": "cbf26be7bfc8394906abbd571498fb8d28888b58"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+215
@@ -0,0 +1,215 @@
|
||||
{
|
||||
"eventKey": "pr:modified",
|
||||
"date": "2019-03-01T10:19:48+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 3,
|
||||
"version": 1,
|
||||
"title": "Feature/wip",
|
||||
"description": "Update README",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1551431949625,
|
||||
"updatedDate": 1551431988769,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "591f702354b3abf1faaca4d23811620d1b2ac984",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bibucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bibucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bibucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bibucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bibucket.local/users/gopher/repos/webhook-test/pull-requests/3"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"previousTitle": "Feature/wip",
|
||||
"previousDescription": "wip",
|
||||
"previousTarget": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"type": "BRANCH",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"latestChangeset": "038e7b67735e54f6de8f1c5d533c6751df524f6c"
|
||||
}
|
||||
}
|
||||
+206
@@ -0,0 +1,206 @@
|
||||
{
|
||||
"eventKey": "pr:opened",
|
||||
"date": "2019-03-01T10:31:15+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 5,
|
||||
"version": 0,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1551432675860,
|
||||
"updatedDate": 1551432675860,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
{
|
||||
"eventKey": "pr:reviewer:approved",
|
||||
"date": "2019-03-01T10:35:38+0100",
|
||||
"actor": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 5,
|
||||
"version": 0,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1551432675860,
|
||||
"updatedDate": 1551432675860,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": true,
|
||||
"status": "APPROVED"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"participant": {
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": true,
|
||||
"status": "APPROVED"
|
||||
},
|
||||
"previousStatus": "NEEDS_WORK"
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
{
|
||||
"eventKey": "pr:reviewer:needs_work",
|
||||
"date": "2019-03-01T10:34:53+0100",
|
||||
"actor": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 5,
|
||||
"version": 0,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1551432675860,
|
||||
"updatedDate": 1551432675860,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "NEEDS_WORK"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"participant": {
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "NEEDS_WORK"
|
||||
},
|
||||
"previousStatus": "UNAPPROVED"
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
{
|
||||
"eventKey": "pr:reviewer:unapproved",
|
||||
"date": "2019-03-01T10:34:15+0100",
|
||||
"actor": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 5,
|
||||
"version": 0,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1551432675860,
|
||||
"updatedDate": 1551432675860,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"participant": {
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"previousStatus": "NEEDS_WORK"
|
||||
}
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
{
|
||||
"eventKey": "pr:reviewer:updated",
|
||||
"date": "2019-03-01T10:19:48+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 3,
|
||||
"version": 1,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1551431949625,
|
||||
"updatedDate": 1551431988769,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "591f702354b3abf1faaca4d23811620d1b2ac984",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [
|
||||
{
|
||||
"user": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "REVIEWER",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
}
|
||||
],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/3"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"addedReviewers": [
|
||||
{
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"removedReviewers": []
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"eventKey": "repo:comment:added",
|
||||
"date": "2019-02-28T16:17:06+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"properties": {
|
||||
"repositoryId": 4
|
||||
},
|
||||
"id": 146,
|
||||
"version": 0,
|
||||
"text": "test",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551367026162,
|
||||
"updatedDate": 1551367026162,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"commit": "038e7b67735e54f6de8f1c5d533c6751df524f6c"
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"eventKey": "repo:comment:deleted",
|
||||
"date": "2019-03-01T09:40:51+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"id": 145,
|
||||
"version": 1,
|
||||
"text": "Test commit comment editing comment",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551366857036,
|
||||
"updatedDate": 1551429525155,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"commit": "038e7b67735e54f6de8f1c5d533c6751df524f6c"
|
||||
}
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"eventKey": "repo:comment:edited",
|
||||
"date": "2019-03-01T09:38:45+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"properties": {
|
||||
"repositoryId": 4
|
||||
},
|
||||
"id": 145,
|
||||
"version": 1,
|
||||
"text": "Test commit comment editing comment",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551366857036,
|
||||
"updatedDate": 1551429525155,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"commit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"previousComment": "Test commit comment"
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"eventKey": "repo:forked",
|
||||
"date": "2019-02-28T16:12:04+0100",
|
||||
"actor": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 124,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"origin": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"project": {
|
||||
"key": "~tux",
|
||||
"id": 19,
|
||||
"name": "Cain Piper",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "tux",
|
||||
"emailAddress": "cain.piper@foo.bar",
|
||||
"id": 2125,
|
||||
"displayName": "Cain Piper",
|
||||
"active": true,
|
||||
"slug": "tux",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~tux/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~tux/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/tux/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"eventKey": "repo:modified",
|
||||
"date": "2019-02-28T16:08:46+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "foo@bar.se",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"old": {
|
||||
"slug": "webhook-test-2",
|
||||
"id": 4,
|
||||
"name": "webhook-test-2",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "foo@bar.se",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test-2/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"new": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "foo@bar.se",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"eventKey": "repo:refs_changed",
|
||||
"date": "2019-03-01T10:37:14+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "foo@bar.com",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "foo@bar.com",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"changes": [
|
||||
{
|
||||
"ref": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"type": "BRANCH"
|
||||
},
|
||||
"refId": "refs/heads/feature/wip",
|
||||
"fromHash": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
|
||||
"toHash": "0000000000000000000000000000000000000000",
|
||||
"type": "DELETE"
|
||||
}
|
||||
]
|
||||
}
|
||||
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+24
-18
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -21,15 +22,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -93,15 +95,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +114,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +133,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -177,15 +182,16 @@
|
||||
"approval":{
|
||||
"date":"2015-04-06T16:34:59.195330+00:00",
|
||||
"user":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+24
-18
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -21,15 +22,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -93,15 +95,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +114,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +133,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -177,15 +182,16 @@
|
||||
"approval":{
|
||||
"date":"2015-04-06T16:34:59.195330+00:00",
|
||||
"user":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+20
-15
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -39,15 +40,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +113,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +132,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -147,15 +151,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+20
-15
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -39,15 +40,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +113,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +132,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -147,15 +151,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+20
-15
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -39,15 +40,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +113,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +132,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -147,15 +151,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+20
-15
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -21,15 +22,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -93,15 +95,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +114,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +133,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+20
-15
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -21,15 +22,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -93,15 +95,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +114,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +133,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+18
-14
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -21,15 +22,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -98,10 +100,10 @@
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +113,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +132,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+20
-15
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -21,15 +22,16 @@
|
||||
"description":"Description of pull request",
|
||||
"state":"OPEN|MERGED|DECLINED",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -93,15 +95,16 @@
|
||||
},
|
||||
"participants":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -111,15 +114,16 @@
|
||||
],
|
||||
"reviewers":[
|
||||
{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -129,15 +133,16 @@
|
||||
],
|
||||
"close_source_branch":true,
|
||||
"closed_by":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
Vendored
+4
-3
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
Vendored
+16
-12
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"actor":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -43,15 +44,16 @@
|
||||
"type":"commit",
|
||||
"hash":"709d658dc5b6d6afcd46049c2f332ee3f515a67d",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -102,15 +104,16 @@
|
||||
"type":"commit",
|
||||
"hash":"1e65c05c1d5171631d92438a13901ca7dae9618c",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -174,15 +177,16 @@
|
||||
"type":"commit",
|
||||
"message":"commit message\n",
|
||||
"author":{
|
||||
"username":"emmap1",
|
||||
"nickname":"emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name":"Emma",
|
||||
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links":{
|
||||
"self":{
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html":{
|
||||
"href":"https://api.bitbucket.org/emmap1"
|
||||
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar":{
|
||||
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
Vendored
+8
-6
@@ -1,15 +1,16 @@
|
||||
{
|
||||
"actor": {
|
||||
"type": "user",
|
||||
"username": "emmap1",
|
||||
"nickname": "emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name": "Emma",
|
||||
"uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href": "https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://api.bitbucket.org/emmap1"
|
||||
"href": "https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
@@ -49,15 +50,16 @@
|
||||
"website": "https://mywebsite.com/",
|
||||
"owner": {
|
||||
"type": "user",
|
||||
"username": "emmap1",
|
||||
"nickname": "emmap1",
|
||||
"account_id":"udfy9suggmzpswxc7n200y3c",
|
||||
"display_name": "Emma",
|
||||
"uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/api/2.0/users/emmap1"
|
||||
"href": "https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://api.bitbucket.org/emmap1"
|
||||
"href": "https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"callback_url": "https://registry.hub.docker.com/u/svendowideit/testhook/hook/2141b5bi5i5b02bec211i4eeih0242eg11000a/",
|
||||
"push_data": {
|
||||
"images": [
|
||||
"27d47432a69bca5f2700e4dff7de0388ed65f9d3fb1ec645e2bc24c223dc1cc3",
|
||||
"51a9c7c1f8bb2fa19bcd09789a34e63f35abb80044bc10196e304f6634cc582c",
|
||||
"..."
|
||||
],
|
||||
"pushed_at": 1.417566161e+09,
|
||||
"pusher": "trustedbuilder",
|
||||
"tag": "latest"
|
||||
},
|
||||
"repository": {
|
||||
"comment_count": 0,
|
||||
"date_created": 1.417494799e+09,
|
||||
"description": "",
|
||||
"dockerfile": "#\n# BUILD\u0009\u0009docker build -t svendowideit/apt-cacher .\n# RUN\u0009\u0009docker run -d -p 3142:3142 -name apt-cacher-run apt-cacher\n#\n# and then you can run containers with:\n# \u0009\u0009docker run -t -i -rm -e http_proxy http://192.168.1.2:3142/ debian bash\n#\nFROM\u0009\u0009ubuntu\n\n\nVOLUME\u0009\u0009[/var/cache/apt-cacher-ng]\nRUN\u0009\u0009apt-get update ; apt-get install -yq apt-cacher-ng\n\nEXPOSE \u0009\u00093142\nCMD\u0009\u0009chmod 777 /var/cache/apt-cacher-ng ; /etc/init.d/apt-cacher-ng start ; tail -f /var/log/apt-cacher-ng/*\n",
|
||||
"full_description": "Docker Hub based automated build from a GitHub repo",
|
||||
"is_official": false,
|
||||
"is_private": true,
|
||||
"is_trusted": true,
|
||||
"name": "testhook",
|
||||
"namespace": "svendowideit",
|
||||
"owner": "svendowideit",
|
||||
"repo_name": "svendowideit/testhook",
|
||||
"repo_url": "https://registry.hub.docker.com/u/svendowideit/testhook/",
|
||||
"star_count": 0,
|
||||
"status": "Active"
|
||||
}
|
||||
}
|
||||
Vendored
+230
@@ -0,0 +1,230 @@
|
||||
{
|
||||
"action": "rerequested",
|
||||
"check_run": {
|
||||
"id": 4,
|
||||
"head_sha": "d6fde92930d4715a2b49857d24b940956b26d2d3",
|
||||
"external_id": "",
|
||||
"url": "https://api.github.com/repos/github/hello-world/check-runs/4",
|
||||
"html_url": "http://github.com/github/hello-world/runs/4",
|
||||
"status": "completed",
|
||||
"conclusion": "neutral",
|
||||
"started_at": "2018-05-04T01:14:52Z",
|
||||
"completed_at": "2018-05-04T01:14:52Z",
|
||||
"output": {
|
||||
"title": "Report",
|
||||
"summary": "It's all good.",
|
||||
"text": "Minus odio facilis repudiandae. Soluta odit aut amet magni nobis. Et voluptatibus ex dolorem et eum.",
|
||||
"annotations_count": 2,
|
||||
"annotations_url": "https://api.github.com/repos/github/hello-world/check-runs/4/annotations"
|
||||
},
|
||||
"name": "randscape",
|
||||
"check_suite": {
|
||||
"id": 5,
|
||||
"head_branch": "master",
|
||||
"head_sha": "d6fde92930d4715a2b49857d24b940956b26d2d3",
|
||||
"status": "completed",
|
||||
"conclusion": "neutral",
|
||||
"url": "https://api.github.com/repos/github/hello-world/check-suites/5",
|
||||
"before": "146e867f55c26428e5f9fade55a9bbf5e95a7912",
|
||||
"after": "d6fde92930d4715a2b49857d24b940956b26d2d3",
|
||||
"pull_requests": [
|
||||
|
||||
],
|
||||
"app": {
|
||||
"id": 2,
|
||||
"node_id": "MDExOkludGVncmF0aW9uMQ==",
|
||||
"owner": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github",
|
||||
"html_url": "http://github.com/github",
|
||||
"followers_url": "https://api.github.com/users/github/followers",
|
||||
"following_url": "https://api.github.com/users/github/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github/orgs",
|
||||
"repos_url": "https://api.github.com/users/github/repos",
|
||||
"events_url": "https://api.github.com/users/github/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"name": "Super Duper",
|
||||
"description": null,
|
||||
"external_url": "http://super-duper.example.com",
|
||||
"html_url": "http://github.com/apps/super-duper",
|
||||
"created_at": "2018-04-25 20:42:10",
|
||||
"updated_at": "2018-04-25 20:42:10"
|
||||
},
|
||||
"created_at": "2018-05-04T01:14:52Z",
|
||||
"updated_at": "2018-05-04T01:14:52Z"
|
||||
},
|
||||
"app": {
|
||||
"id": 2,
|
||||
"node_id": "MDExOkludGVncmF0aW9uMQ==",
|
||||
"owner": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github",
|
||||
"html_url": "http://github.com/github",
|
||||
"followers_url": "https://api.github.com/users/github/followers",
|
||||
"following_url": "https://api.github.com/users/github/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github/orgs",
|
||||
"repos_url": "https://api.github.com/users/github/repos",
|
||||
"events_url": "https://api.github.com/users/github/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"name": "Super Duper",
|
||||
"description": null,
|
||||
"external_url": "http://super-duper.example.com",
|
||||
"html_url": "http://github.com/apps/super-duper",
|
||||
"created_at": "2018-04-25 20:42:10",
|
||||
"updated_at": "2018-04-25 20:42:10"
|
||||
},
|
||||
"pull_requests": [
|
||||
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"id": 526,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",
|
||||
"name": "hello-world",
|
||||
"full_name": "github/hello-world",
|
||||
"owner": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github",
|
||||
"html_url": "http://github.com/github",
|
||||
"followers_url": "https://api.github.com/users/github/followers",
|
||||
"following_url": "https://api.github.com/users/github/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github/orgs",
|
||||
"repos_url": "https://api.github.com/users/github/repos",
|
||||
"events_url": "https://api.github.com/users/github/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"private": false,
|
||||
"html_url": "http://github.com/github/hello-world",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/github/hello-world",
|
||||
"forks_url": "https://api.github.com/repos/github/hello-world/forks",
|
||||
"keys_url": "https://api.github.com/repos/github/hello-world/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/github/hello-world/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/github/hello-world/teams",
|
||||
"hooks_url": "https://api.github.com/repos/github/hello-world/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/github/hello-world/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/github/hello-world/events",
|
||||
"assignees_url": "https://api.github.com/repos/github/hello-world/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/github/hello-world/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/github/hello-world/tags",
|
||||
"blobs_url": "https://api.github.com/repos/github/hello-world/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/github/hello-world/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/github/hello-world/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/github/hello-world/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/github/hello-world/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/github/hello-world/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/github/hello-world/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/github/hello-world/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/github/hello-world/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/github/hello-world/subscription",
|
||||
"commits_url": "https://api.github.com/repos/github/hello-world/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/github/hello-world/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/github/hello-world/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/github/hello-world/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/github/hello-world/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/github/hello-world/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/github/hello-world/merges",
|
||||
"archive_url": "https://api.github.com/repos/github/hello-world/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/github/hello-world/downloads",
|
||||
"issues_url": "https://api.github.com/repos/github/hello-world/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/github/hello-world/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/github/hello-world/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/github/hello-world/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/github/hello-world/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/github/hello-world/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/github/hello-world/deployments",
|
||||
"created_at": "2018-04-25T20:42:10Z",
|
||||
"updated_at": "2018-04-25T20:43:34Z",
|
||||
"pushed_at": "2018-05-04T01:14:47Z",
|
||||
"git_url": "git://github.com/github/hello-world.git",
|
||||
"ssh_url": "ssh://git@localhost:3035/github/hello-world.git",
|
||||
"clone_url": "http://github.com/github/hello-world.git",
|
||||
"svn_url": "http://github.com/github/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": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"open_issues_count": 3,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 3,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"organization": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",
|
||||
"url": "https://api.github.com/orgs/github",
|
||||
"repos_url": "https://api.github.com/orgs/github/repos",
|
||||
"events_url": "https://api.github.com/orgs/github/events",
|
||||
"hooks_url": "https://api.github.com/orgs/github/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/github/issues",
|
||||
"members_url": "https://api.github.com/orgs/github/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"description": "How people build software."
|
||||
},
|
||||
"sender": {
|
||||
"login": "octocat",
|
||||
"id": 5346,
|
||||
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/5346?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/octocat",
|
||||
"html_url": "http://github.com/octocat",
|
||||
"followers_url": "https://api.github.com/users/octocat/followers",
|
||||
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
||||
"repos_url": "https://api.github.com/users/octocat/repos",
|
||||
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"installation": {
|
||||
"id": 1
|
||||
}
|
||||
}
|
||||
Vendored
+194
@@ -0,0 +1,194 @@
|
||||
{
|
||||
"action": "requested",
|
||||
"check_suite": {
|
||||
"id": 5,
|
||||
"head_branch": "master",
|
||||
"head_sha": "d6fde92930d4715a2b49857d24b940956b26d2d3",
|
||||
"status": "completed",
|
||||
"conclusion": "neutral",
|
||||
"url": "https://api.github.com/repos/github/hello-world/check-suites/5",
|
||||
"before": "146e867f55c26428e5f9fade55a9bbf5e95a7912",
|
||||
"after": "d6fde92930d4715a2b49857d24b940956b26d2d3",
|
||||
"pull_requests": [
|
||||
|
||||
],
|
||||
"app": {
|
||||
"id": 2,
|
||||
"node_id": "MDExOkludGVncmF0aW9uMQ==",
|
||||
"owner": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github",
|
||||
"html_url": "http://github.com/github",
|
||||
"followers_url": "https://api.github.com/users/github/followers",
|
||||
"following_url": "https://api.github.com/users/github/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github/orgs",
|
||||
"repos_url": "https://api.github.com/users/github/repos",
|
||||
"events_url": "https://api.github.com/users/github/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"name": "Super Duper",
|
||||
"description": null,
|
||||
"external_url": "http://super-duper.example.com",
|
||||
"html_url": "http://github.com/apps/super-duper",
|
||||
"created_at": "2018-04-25 20:42:10",
|
||||
"updated_at": "2018-04-25 20:42:10"
|
||||
},
|
||||
"created_at": "2018-05-04T01:14:52Z",
|
||||
"updated_at": "2018-05-04T01:14:52Z",
|
||||
"latest_check_runs_count": 1,
|
||||
"check_runs_url": "https://api.github.com/repos/github/hello-world/check-suites/5/check-runs",
|
||||
"head_commit": {
|
||||
"id": "d6fde92930d4715a2b49857d24b940956b26d2d3",
|
||||
"tree_id": "41a846c7d878d279f11355e23b348e1bb63b89a8",
|
||||
"message": "Say hello (again) to everybody",
|
||||
"timestamp": "2018-05-04T01:14:46Z",
|
||||
"author": {
|
||||
"name": "octocat",
|
||||
"email": "octocat@github.com"
|
||||
},
|
||||
"committer": {
|
||||
"name": "octocat",
|
||||
"email": "octocat@github.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"id": 526,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMzU0OTMyMzM=",
|
||||
"name": "hello-world",
|
||||
"full_name": "github/hello-world",
|
||||
"owner": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github",
|
||||
"html_url": "http://github.com/github",
|
||||
"followers_url": "https://api.github.com/users/github/followers",
|
||||
"following_url": "https://api.github.com/users/github/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github/orgs",
|
||||
"repos_url": "https://api.github.com/users/github/repos",
|
||||
"events_url": "https://api.github.com/users/github/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"private": false,
|
||||
"html_url": "http://github.com/github/hello-world",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/github/hello-world",
|
||||
"forks_url": "https://api.github.com/repos/github/hello-world/forks",
|
||||
"keys_url": "https://api.github.com/repos/github/hello-world/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/github/hello-world/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/github/hello-world/teams",
|
||||
"hooks_url": "https://api.github.com/repos/github/hello-world/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/github/hello-world/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/github/hello-world/events",
|
||||
"assignees_url": "https://api.github.com/repos/github/hello-world/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/github/hello-world/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/github/hello-world/tags",
|
||||
"blobs_url": "https://api.github.com/repos/github/hello-world/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/github/hello-world/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/github/hello-world/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/github/hello-world/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/github/hello-world/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/github/hello-world/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/github/hello-world/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/github/hello-world/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/github/hello-world/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/github/hello-world/subscription",
|
||||
"commits_url": "https://api.github.com/repos/github/hello-world/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/github/hello-world/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/github/hello-world/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/github/hello-world/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/github/hello-world/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/github/hello-world/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/github/hello-world/merges",
|
||||
"archive_url": "https://api.github.com/repos/github/hello-world/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/github/hello-world/downloads",
|
||||
"issues_url": "https://api.github.com/repos/github/hello-world/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/github/hello-world/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/github/hello-world/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/github/hello-world/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/github/hello-world/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/github/hello-world/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/github/hello-world/deployments",
|
||||
"created_at": "2018-04-25T20:42:10Z",
|
||||
"updated_at": "2018-04-25T20:43:34Z",
|
||||
"pushed_at": "2018-05-04T01:14:47Z",
|
||||
"git_url": "git://github.com/github/hello-world.git",
|
||||
"ssh_url": "ssh://git@localhost:3035/github/hello-world.git",
|
||||
"clone_url": "http://github.com/github/hello-world.git",
|
||||
"svn_url": "http://github.com/github/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": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"open_issues_count": 3,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 3,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"organization": {
|
||||
"login": "github",
|
||||
"id": 340,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",
|
||||
"url": "https://api.github.com/orgs/github",
|
||||
"repos_url": "https://api.github.com/orgs/github/repos",
|
||||
"events_url": "https://api.github.com/orgs/github/events",
|
||||
"hooks_url": "https://api.github.com/orgs/github/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/github/issues",
|
||||
"members_url": "https://api.github.com/orgs/github/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/340?",
|
||||
"description": "How people build software."
|
||||
},
|
||||
"sender": {
|
||||
"login": "octocat",
|
||||
"id": 5346,
|
||||
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||
"avatar_url": "http://alambic.github.com/avatars/u/5346?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/octocat",
|
||||
"html_url": "http://github.com/octocat",
|
||||
"followers_url": "https://api.github.com/users/octocat/followers",
|
||||
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
||||
"repos_url": "https://api.github.com/users/octocat/repos",
|
||||
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"installation": {
|
||||
"id": 1
|
||||
}
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"action": "removed",
|
||||
"installation": {
|
||||
"id": 2,
|
||||
"account": {
|
||||
"login": "octocat",
|
||||
"id": 1,
|
||||
"node_id": "MDQ6VXNlcjE=",
|
||||
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/octocat",
|
||||
"html_url": "https://github.com/octocat",
|
||||
"followers_url": "https://api.github.com/users/octocat/followers",
|
||||
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
||||
"repos_url": "https://api.github.com/users/octocat/repos",
|
||||
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repository_selection": "selected",
|
||||
"access_tokens_url": "https://api.github.com/installations/2/access_tokens",
|
||||
"repositories_url": "https://api.github.com/installation/repositories",
|
||||
"html_url": "https://github.com/settings/installations/2",
|
||||
"app_id": 5725,
|
||||
"target_id": 3880403,
|
||||
"target_type": "User",
|
||||
"permissions": {
|
||||
"metadata": "read",
|
||||
"contents": "read",
|
||||
"issues": "write"
|
||||
},
|
||||
"events": [
|
||||
"push",
|
||||
"pull_request"
|
||||
],
|
||||
"created_at": 1525109898,
|
||||
"updated_at": 1525109899,
|
||||
"single_file_name": "config.yml"
|
||||
},
|
||||
"repository_selection": "selected",
|
||||
"repositories_added": [
|
||||
|
||||
],
|
||||
"repositories_removed": [
|
||||
{
|
||||
"id": 1296269,
|
||||
"name": "Hello-World",
|
||||
"full_name": "octocat/Hello-World",
|
||||
"private": false
|
||||
}
|
||||
],
|
||||
"sender": {
|
||||
"login": "octocat",
|
||||
"id": 1,
|
||||
"node_id": "MDQ6VXNlcjE=",
|
||||
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/octocat",
|
||||
"html_url": "https://github.com/octocat",
|
||||
"followers_url": "https://api.github.com/users/octocat/followers",
|
||||
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
||||
"repos_url": "https://api.github.com/users/octocat/repos",
|
||||
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"action": "removed",
|
||||
"installation": {
|
||||
"id": 2,
|
||||
"account": {
|
||||
"login": "octocat",
|
||||
"id": 1,
|
||||
"node_id": "MDQ6VXNlcjE=",
|
||||
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/octocat",
|
||||
"html_url": "https://github.com/octocat",
|
||||
"followers_url": "https://api.github.com/users/octocat/followers",
|
||||
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
||||
"repos_url": "https://api.github.com/users/octocat/repos",
|
||||
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repository_selection": "selected",
|
||||
"access_tokens_url": "https://api.github.com/installations/2/access_tokens",
|
||||
"repositories_url": "https://api.github.com/installation/repositories",
|
||||
"html_url": "https://github.com/settings/installations/2",
|
||||
"app_id": 5725,
|
||||
"target_id": 3880403,
|
||||
"target_type": "User",
|
||||
"permissions": {
|
||||
"metadata": "read",
|
||||
"contents": "read",
|
||||
"issues": "write"
|
||||
},
|
||||
"events": [
|
||||
"push",
|
||||
"pull_request"
|
||||
],
|
||||
"created_at": 1525109898,
|
||||
"updated_at": 1525109899,
|
||||
"single_file_name": "config.yml"
|
||||
},
|
||||
"repository_selection": "selected",
|
||||
"repositories_added": [],
|
||||
"repositories_removed": [
|
||||
{
|
||||
"id": 1296269,
|
||||
"name": "Hello-World",
|
||||
"full_name": "octocat/Hello-World",
|
||||
"private": false
|
||||
}
|
||||
],
|
||||
"sender": {
|
||||
"login": "octocat",
|
||||
"id": 1,
|
||||
"node_id": "MDQ6VXNlcjE=",
|
||||
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/octocat",
|
||||
"html_url": "https://github.com/octocat",
|
||||
"followers_url": "https://api.github.com/users/octocat/followers",
|
||||
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
||||
"repos_url": "https://api.github.com/users/octocat/repos",
|
||||
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
||||
Vendored
+2
-1
@@ -2,6 +2,7 @@
|
||||
"action": "created",
|
||||
"project_card": {
|
||||
"url": "https://api.github.com/projects/columns/cards/1266091",
|
||||
"project_url": "https://api.github.com/projects/6047634",
|
||||
"column_url": "https://api.github.com/projects/columns/515520",
|
||||
"column_id": 515520,
|
||||
"id": 1266091,
|
||||
@@ -27,7 +28,7 @@
|
||||
},
|
||||
"created_at": 1483569391,
|
||||
"updated_at": 1483569391,
|
||||
"content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2"
|
||||
"content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2"
|
||||
},
|
||||
"repository": {
|
||||
"id": 35129377,
|
||||
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"action": "created",
|
||||
"issue": {
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3",
|
||||
"repository_url": "https://api.github.com/repos/chhsia0/knative-route-demo",
|
||||
"labels_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3/labels{/name}",
|
||||
"comments_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3/comments",
|
||||
"events_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3/events",
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo/pull/3",
|
||||
"id": 494965988,
|
||||
"node_id": "MDExOlB1bGxSZXF1ZXN0MzE4NjEwOTI3",
|
||||
"number": 3,
|
||||
"title": "Updated to v2.",
|
||||
"user": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"labels": [
|
||||
|
||||
],
|
||||
"state": "open",
|
||||
"locked": false,
|
||||
"assignee": null,
|
||||
"assignees": [
|
||||
|
||||
],
|
||||
"milestone": null,
|
||||
"comments": 17,
|
||||
"created_at": "2019-09-18T03:28:04Z",
|
||||
"updated_at": "2019-10-26T16:09:23Z",
|
||||
"closed_at": null,
|
||||
"author_association": "OWNER",
|
||||
"pull_request": {
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo/pulls/3",
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo/pull/3",
|
||||
"diff_url": "https://github.com/chhsia0/knative-route-demo/pull/3.diff",
|
||||
"patch_url": "https://github.com/chhsia0/knative-route-demo/pull/3.patch"
|
||||
},
|
||||
"body": ""
|
||||
},
|
||||
"comment": {
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/comments/546616131",
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo/pull/3#issuecomment-546616131",
|
||||
"issue_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3",
|
||||
"id": 546616131,
|
||||
"node_id": "MDEyOklzc3VlQ29tbWVudDU0NjYxNjEzMQ==",
|
||||
"user": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"created_at": "2019-10-26T16:09:23Z",
|
||||
"updated_at": "2019-10-26T16:09:23Z",
|
||||
"author_association": "OWNER",
|
||||
"body": "/build"
|
||||
},
|
||||
"repository": {
|
||||
"id": 199540710,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkxOTk1NDA3MTA=",
|
||||
"name": "knative-route-demo",
|
||||
"full_name": "chhsia0/knative-route-demo",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo",
|
||||
"description": "Simple knative route demo",
|
||||
"fork": true,
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo",
|
||||
"forks_url": "https://api.github.com/repos/chhsia0/knative-route-demo/forks",
|
||||
"keys_url": "https://api.github.com/repos/chhsia0/knative-route-demo/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/chhsia0/knative-route-demo/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/chhsia0/knative-route-demo/teams",
|
||||
"hooks_url": "https://api.github.com/repos/chhsia0/knative-route-demo/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/chhsia0/knative-route-demo/events",
|
||||
"assignees_url": "https://api.github.com/repos/chhsia0/knative-route-demo/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/chhsia0/knative-route-demo/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/chhsia0/knative-route-demo/tags",
|
||||
"blobs_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/chhsia0/knative-route-demo/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/chhsia0/knative-route-demo/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/chhsia0/knative-route-demo/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/chhsia0/knative-route-demo/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/chhsia0/knative-route-demo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/chhsia0/knative-route-demo/subscription",
|
||||
"commits_url": "https://api.github.com/repos/chhsia0/knative-route-demo/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/chhsia0/knative-route-demo/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/chhsia0/knative-route-demo/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/chhsia0/knative-route-demo/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/chhsia0/knative-route-demo/merges",
|
||||
"archive_url": "https://api.github.com/repos/chhsia0/knative-route-demo/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/chhsia0/knative-route-demo/downloads",
|
||||
"issues_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/chhsia0/knative-route-demo/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/chhsia0/knative-route-demo/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/chhsia0/knative-route-demo/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/chhsia0/knative-route-demo/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/chhsia0/knative-route-demo/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/chhsia0/knative-route-demo/deployments",
|
||||
"created_at": "2019-07-29T23:38:07Z",
|
||||
"updated_at": "2019-10-01T18:07:59Z",
|
||||
"pushed_at": "2019-10-23T23:49:38Z",
|
||||
"git_url": "git://github.com/chhsia0/knative-route-demo.git",
|
||||
"ssh_url": "git@github.com:chhsia0/knative-route-demo.git",
|
||||
"clone_url": "https://github.com/chhsia0/knative-route-demo.git",
|
||||
"svn_url": "https://github.com/chhsia0/knative-route-demo",
|
||||
"homepage": "",
|
||||
"size": 59,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": false,
|
||||
"has_pages": true,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 3,
|
||||
"license": {
|
||||
"key": "apache-2.0",
|
||||
"name": "Apache License 2.0",
|
||||
"spdx_id": "Apache-2.0",
|
||||
"url": "https://api.github.com/licenses/apache-2.0",
|
||||
"node_id": "MDc6TGljZW5zZTI="
|
||||
},
|
||||
"forks": 0,
|
||||
"open_issues": 3,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"sender": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -39,6 +39,7 @@
|
||||
"merge_commit_sha": null,
|
||||
"assignee": null,
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}",
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"action": "dismiss",
|
||||
"alert": {
|
||||
"id": 7649605,
|
||||
"affected_range": "0.2.0",
|
||||
"affected_package_name": "many_versioned_gem",
|
||||
"external_reference": "https://nvd.nist.gov/vuln/detail/CVE-2018-3728",
|
||||
"external_identifier": "CVE-2018-3728",
|
||||
"fixed_in": "0.2.5",
|
||||
"dismisser": {
|
||||
"login":"octocat",
|
||||
"id":1,
|
||||
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
|
||||
"avatar_url":"https://github.com/images/error/octocat_happy.gif",
|
||||
"gravatar_id":"",
|
||||
"url":"https://api.github.com/users/octocat",
|
||||
"html_url":"https://github.com/octocat",
|
||||
"followers_url":"https://api.github.com/users/octocat/followers",
|
||||
"following_url":"https://api.github.com/users/octocat/following{/other_user}",
|
||||
"gists_url":"https://api.github.com/users/octocat/gists{/gist_id}",
|
||||
"starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url":"https://api.github.com/users/octocat/subscriptions",
|
||||
"organizations_url":"https://api.github.com/users/octocat/orgs",
|
||||
"repos_url":"https://api.github.com/users/octocat/repos",
|
||||
"events_url":"https://api.github.com/users/octocat/events{/privacy}",
|
||||
"received_events_url":"https://api.github.com/users/octocat/received_events",
|
||||
"type":"User",
|
||||
"site_admin":true
|
||||
},
|
||||
"dismiss_reason": "No bandwidth to fix this",
|
||||
"dismissed_at": "2017-10-25T00:00:00+00:00"
|
||||
}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"action": "published",
|
||||
"security_advisory": {
|
||||
"ghsa_id": "GHSA-rf4j-j272-fj86",
|
||||
"summary": "Moderate severity vulnerability that affects django",
|
||||
"description": "django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.",
|
||||
"severity": "moderate",
|
||||
"identifiers": [
|
||||
{
|
||||
"value": "GHSA-rf4j-j272-fj86",
|
||||
"type": "GHSA"
|
||||
},
|
||||
{
|
||||
"value": "CVE-2018-6188",
|
||||
"type": "CVE"
|
||||
}
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-6188"
|
||||
}
|
||||
],
|
||||
"published_at": "2018-10-03T21:13:54Z",
|
||||
"updated_at": "2018-10-03T21:13:54Z",
|
||||
"withdrawn_at": null,
|
||||
"vulnerabilities": [
|
||||
{
|
||||
"package": {
|
||||
"ecosystem": "pip",
|
||||
"name": "django"
|
||||
},
|
||||
"severity": "moderate",
|
||||
"vulnerable_version_range": ">= 2.0.0, < 2.0.2",
|
||||
"first_patched_version": {
|
||||
"identifier": "2.0.2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"ecosystem": "pip",
|
||||
"name": "django"
|
||||
},
|
||||
"severity": "moderate",
|
||||
"vulnerable_version_range": ">= 1.11.8, < 1.11.10",
|
||||
"first_patched_version": {
|
||||
"identifier": "1.11.10"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+30
-1
@@ -35,7 +35,36 @@
|
||||
"project_id": 14,
|
||||
"created_at": "2013-12-03T17:15:43Z",
|
||||
"updated_at": "2013-12-03T17:15:43Z",
|
||||
"position": 0,
|
||||
"change_position": {
|
||||
"base_sha": null,
|
||||
"start_sha": null,
|
||||
"head_sha": null,
|
||||
"old_path": null,
|
||||
"new_path": null,
|
||||
"position_type": "text",
|
||||
"old_line": null,
|
||||
"new_line": null
|
||||
},
|
||||
"original_position": {
|
||||
"base_sha": "0a87d409a2d5ffbf586ed3e7ff36396ca59c3c14",
|
||||
"start_sha": "5f7519856cb2a7c05427a8c1e83f941828567923",
|
||||
"head_sha": "562e173be03b8ff2efb05345d12df18815438a4b",
|
||||
"old_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"new_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"position_type": "text",
|
||||
"old_line": null,
|
||||
"new_line": 74
|
||||
},
|
||||
"position": {
|
||||
"base_sha": "0a87d409a2d5ffbf586ed3e7ff36396ca59c3c14",
|
||||
"start_sha": "5f7519856cb2a7c05427a8c1e83f941828567923",
|
||||
"head_sha": "562e173be03b8ff2efb05345d12df18815438a4b",
|
||||
"old_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"new_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"position_type": "text",
|
||||
"old_line": null,
|
||||
"new_line": 74
|
||||
},
|
||||
"branch_name": null,
|
||||
"description": "Create new API for manipulations with repository",
|
||||
"milestone_id": null,
|
||||
|
||||
Vendored
+30
-1
@@ -35,7 +35,36 @@
|
||||
"project_id": 14,
|
||||
"created_at": "2013-12-03T17:15:43Z",
|
||||
"updated_at": "2013-12-03T17:15:43Z",
|
||||
"position": 0,
|
||||
"change_position": {
|
||||
"base_sha": null,
|
||||
"start_sha": null,
|
||||
"head_sha": null,
|
||||
"old_path": null,
|
||||
"new_path": null,
|
||||
"position_type": "text",
|
||||
"old_line": null,
|
||||
"new_line": null
|
||||
},
|
||||
"original_position": {
|
||||
"base_sha": "0a87d409a2d5ffbf586ed3e7ff36396ca59c3c14",
|
||||
"start_sha": "5f7519856cb2a7c05427a8c1e83f941828567923",
|
||||
"head_sha": "562e173be03b8ff2efb05345d12df18815438a4b",
|
||||
"old_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"new_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"position_type": "text",
|
||||
"old_line": null,
|
||||
"new_line": 74
|
||||
},
|
||||
"position": {
|
||||
"base_sha": "0a87d409a2d5ffbf586ed3e7ff36396ca59c3c14",
|
||||
"start_sha": "5f7519856cb2a7c05427a8c1e83f941828567923",
|
||||
"head_sha": "562e173be03b8ff2efb05345d12df18815438a4b",
|
||||
"old_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"new_path": "core/src/main/java/com/example/server/CorbaServer.java",
|
||||
"position_type": "text",
|
||||
"old_line": null,
|
||||
"new_line": 74
|
||||
},
|
||||
"branch_name": null,
|
||||
"description": "Create new API for manipulations with repository",
|
||||
"milestone_id": null,
|
||||
|
||||
Vendored
+50
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"object_kind": "build",
|
||||
"ref": "gitlab-script-trigger",
|
||||
"tag": false,
|
||||
"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",
|
||||
"message": "test\n",
|
||||
"author_name": "User",
|
||||
"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
|
||||
},
|
||||
"runner": {
|
||||
"active": true,
|
||||
"is_shared": false,
|
||||
"id": 380987,
|
||||
"description": "shared-runners-manager-6.gitlab.com"
|
||||
}
|
||||
}
|
||||
+10
-1
@@ -136,5 +136,14 @@
|
||||
"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
-144
@@ -1,153 +1,194 @@
|
||||
{
|
||||
"object_kind": "pipeline",
|
||||
"object_attributes":{
|
||||
"id": 31,
|
||||
"ref": "master",
|
||||
"tag": false,
|
||||
"sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||
"before_sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||
"status": "success",
|
||||
"stages":[
|
||||
"build",
|
||||
"test",
|
||||
"deploy"
|
||||
],
|
||||
"created_at": "2016-08-12 15:23:28 UTC",
|
||||
"finished_at": "2016-08-12 15:26:29 UTC",
|
||||
"duration": 63
|
||||
},
|
||||
"user":{
|
||||
"name": "Administrator",
|
||||
"username": "root",
|
||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||
},
|
||||
"project":{
|
||||
"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": 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",
|
||||
"object_kind": "pipeline",
|
||||
"object_attributes":{
|
||||
"id": 31,
|
||||
"ref": "master",
|
||||
"tag": false,
|
||||
"sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||
"before_sha": "bcbb5ec396a2c0f828686f14fac9b80b780504f2",
|
||||
"source": "merge_request_event",
|
||||
"status": "success",
|
||||
"stages":[
|
||||
"build",
|
||||
"test",
|
||||
"deploy"
|
||||
],
|
||||
"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": null,
|
||||
"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",
|
||||
"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
|
||||
"duration": 63,
|
||||
"variables": [
|
||||
{
|
||||
"key": "NESTOR_PROD_ENVIRONMENT",
|
||||
"value": "us-west-1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"merge_request": {
|
||||
"id": 1,
|
||||
"iid": 1,
|
||||
"title": "Test",
|
||||
"source_branch": "test",
|
||||
"source_project_id": 1,
|
||||
"target_branch": "master",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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,
|
||||
"user":{
|
||||
"name": "Administrator",
|
||||
"username": "root",
|
||||
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon"
|
||||
},
|
||||
"builds":[
|
||||
{
|
||||
"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,
|
||||
"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
|
||||
}
|
||||
},
|
||||
"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"
|
||||
{
|
||||
"id": 377,
|
||||
"stage": "test",
|
||||
"name": "test-image",
|
||||
"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
|
||||
}
|
||||
},
|
||||
"runner": null,
|
||||
"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",
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"object_kind": "merge_request",
|
||||
"user": {
|
||||
"name": "Administrator",
|
||||
"username": "root",
|
||||
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon"
|
||||
},
|
||||
"project": {
|
||||
"name": "Example",
|
||||
"description": "",
|
||||
"web_url": "http://example.com/jsmith/example",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@example.com:jsmith/example.git",
|
||||
"git_http_url": "http://example.com/jsmith/example.git",
|
||||
"namespace": "Jsmith",
|
||||
"visibility_level": 0,
|
||||
"path_with_namespace": "jsmith/example",
|
||||
"default_branch": "master",
|
||||
"ci_config_path": "",
|
||||
"homepage": "http://example.com/jsmith/example",
|
||||
"url": "git@example.com:jsmith/example.git",
|
||||
"ssh_url": "git@example.com:jsmith/example.git",
|
||||
"http_url": "http://example.com/jsmith/example.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"id": 90,
|
||||
"target_branch": "master",
|
||||
"source_branch": "ms-viewport",
|
||||
"source_project_id": 14,
|
||||
"author_id": 51,
|
||||
"assignee_id": 6,
|
||||
"title": "MS-Viewport",
|
||||
"created_at": "2017-09-20T08:31:45.944Z",
|
||||
"updated_at": "2017-09-28T12:23:42.365Z",
|
||||
"milestone_id": null,
|
||||
"state": "opened",
|
||||
"merge_status": "unchecked",
|
||||
"target_project_id": 14,
|
||||
"iid": 1,
|
||||
"description": "",
|
||||
"updated_by_id": 1,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "0"
|
||||
},
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"merge_user_id": null,
|
||||
"merge_commit_sha": null,
|
||||
"deleted_at": null,
|
||||
"in_progress_merge_commit_sha": null,
|
||||
"lock_version": 5,
|
||||
"time_estimate": 0,
|
||||
"last_edited_at": "2017-09-27T12:43:37.558Z",
|
||||
"last_edited_by_id": 1,
|
||||
"head_pipeline_id": 61,
|
||||
"ref_fetched": true,
|
||||
"merge_jid": null,
|
||||
"source": {
|
||||
"name": "Awesome Project",
|
||||
"description": "",
|
||||
"web_url": "http://example.com/awesome_space/awesome_project",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@example.com:awesome_space/awesome_project.git",
|
||||
"git_http_url": "http://example.com/awesome_space/awesome_project.git",
|
||||
"namespace": "root",
|
||||
"visibility_level": 0,
|
||||
"path_with_namespace": "awesome_space/awesome_project",
|
||||
"default_branch": "master",
|
||||
"ci_config_path": "",
|
||||
"homepage": "http://example.com/awesome_space/awesome_project",
|
||||
"url": "http://example.com/awesome_space/awesome_project.git",
|
||||
"ssh_url": "git@example.com:awesome_space/awesome_project.git",
|
||||
"http_url": "http://example.com/awesome_space/awesome_project.git"
|
||||
},
|
||||
"target": {
|
||||
"name": "Awesome Project",
|
||||
"description": "Aut reprehenderit ut est.",
|
||||
"web_url": "http://example.com/awesome_space/awesome_project",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@example.com:awesome_space/awesome_project.git",
|
||||
"git_http_url": "http://example.com/awesome_space/awesome_project.git",
|
||||
"namespace": "Awesome Space",
|
||||
"visibility_level": 0,
|
||||
"path_with_namespace": "awesome_space/awesome_project",
|
||||
"default_branch": "master",
|
||||
"ci_config_path": "",
|
||||
"homepage": "http://example.com/awesome_space/awesome_project",
|
||||
"url": "http://example.com/awesome_space/awesome_project.git",
|
||||
"ssh_url": "git@example.com:awesome_space/awesome_project.git",
|
||||
"http_url": "http://example.com/awesome_space/awesome_project.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "ba3e0d8ff79c80d5b0bbb4f3e2e343e0aaa662b7",
|
||||
"message": "fixed readme",
|
||||
"timestamp": "2017-09-26T16:12:57Z",
|
||||
"url": "http://example.com/awesome_space/awesome_project/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
|
||||
"author": {
|
||||
"name": "GitLab dev user",
|
||||
"email": "gitlabdev@dv6700.(none)"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_estimate": null
|
||||
},
|
||||
"labels": null,
|
||||
"repository": {
|
||||
"name": "git-gpg-test",
|
||||
"url": "git@example.com:awesome_space/awesome_project.git",
|
||||
"description": "",
|
||||
"homepage": "http://example.com/awesome_space/awesome_project"
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"event_name": "push",
|
||||
"before": "95790bf891e76fee5e1747ab589903a6a1f80f22",
|
||||
"after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
|
||||
"ref": "refs/heads/master",
|
||||
"checkout_sha": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
|
||||
"user_id": 4,
|
||||
"user_name": "John Smith",
|
||||
"user_email": "john@example.com",
|
||||
"user_avatar": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80",
|
||||
"project_id": 15,
|
||||
"project":{
|
||||
"name":"Diaspora",
|
||||
"description":"",
|
||||
"web_url":"http://example.com/mike/diaspora",
|
||||
"avatar_url":null,
|
||||
"git_ssh_url":"git@example.com:mike/diaspora.git",
|
||||
"git_http_url":"http://example.com/mike/diaspora.git",
|
||||
"namespace":"Mike",
|
||||
"visibility_level":0,
|
||||
"path_with_namespace":"mike/diaspora",
|
||||
"default_branch":"master",
|
||||
"homepage":"http://example.com/mike/diaspora",
|
||||
"url":"git@example.com:mike/diaspora.git",
|
||||
"ssh_url":"git@example.com:mike/diaspora.git",
|
||||
"http_url":"http://example.com/mike/diaspora.git"
|
||||
},
|
||||
"repository":{
|
||||
"name": "Diaspora",
|
||||
"url": "git@example.com:mike/diaspora.git",
|
||||
"description": "",
|
||||
"homepage": "http://example.com/mike/diaspora",
|
||||
"git_http_url":"http://example.com/mike/diaspora.git",
|
||||
"git_ssh_url":"git@example.com:mike/diaspora.git",
|
||||
"visibility_level":0
|
||||
},
|
||||
"commits": [
|
||||
{
|
||||
"id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428",
|
||||
"message": "Add simple search to projects in public area",
|
||||
"timestamp": "2013-05-13T18:18:08+00:00",
|
||||
"url": "https://dev.gitlab.org/gitlab/gitlabhq/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428",
|
||||
"author": {
|
||||
"name": "Example User",
|
||||
"email": "user@example.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_commits_count": 1
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"event_name": "tag_push",
|
||||
"before": "0000000000000000000000000000000000000000",
|
||||
"after": "82b3d5ae55f7080f1e6022629cdb57bfae7cccc7",
|
||||
"ref": "refs/tags/v1.0.0",
|
||||
"checkout_sha": "5937ac0a7beb003549fc5fd26fc247adbce4a52e",
|
||||
"user_id": 1,
|
||||
"user_name": "John Smith",
|
||||
"user_avatar": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80",
|
||||
"project_id": 1,
|
||||
"project":{
|
||||
"name":"Example",
|
||||
"description":"",
|
||||
"web_url":"http://example.com/jsmith/example",
|
||||
"avatar_url":null,
|
||||
"git_ssh_url":"git@example.com:jsmith/example.git",
|
||||
"git_http_url":"http://example.com/jsmith/example.git",
|
||||
"namespace":"Jsmith",
|
||||
"visibility_level":0,
|
||||
"path_with_namespace":"jsmith/example",
|
||||
"default_branch":"master",
|
||||
"homepage":"http://example.com/jsmith/example",
|
||||
"url":"git@example.com:jsmith/example.git",
|
||||
"ssh_url":"git@example.com:jsmith/example.git",
|
||||
"http_url":"http://example.com/jsmith/example.git"
|
||||
},
|
||||
"repository":{
|
||||
"name": "Example",
|
||||
"url": "ssh://git@example.com/jsmith/example.git",
|
||||
"description": "",
|
||||
"homepage": "http://example.com/jsmith/example",
|
||||
"git_http_url":"http://example.com/jsmith/example.git",
|
||||
"git_ssh_url":"git@example.com:jsmith/example.git",
|
||||
"visibility_level":0
|
||||
},
|
||||
"commits": [],
|
||||
"total_commits_count": 0
|
||||
}
|
||||
Reference in New Issue
Block a user