Compare commits

...

84 Commits

Author SHA1 Message Date
Anton Krivenko 3c382736e0 Merge pull request #128 from juliojimenez/checks-installation-id
fix: Add Installation struct to CheckSuitePayload and CheckRunPayload
2021-05-03 23:42:40 +03:00
Anton Krivenko ec227ef416 Merge pull request #131 from riyadhalnur/fix/gitlab-mr-assignee
FIX: gitlab merge request event assignee payload
2021-05-03 23:40:17 +03:00
Riyadh Al Nur e55d994db5 FIX: gitlab merge request event assignee payload
- gitlab updated their MR payload which adds a parent field
for the list of assignees
- this fix update the Assignee struct to add the missing `Email`
and `ID` field
- adds an array of assignees as part of the MR event payload

Closes #101
2021-05-02 16:10:26 +08:00
Julio Jimenez 66bfeb55b9 fix: Add Installation struct to CheckSuitePayload and CheckRunPayload 2021-03-06 14:15:31 -05:00
Anton Krivenko e1c6b6436c Windows support to be checked... 2021-01-23 04:33:26 +03:00
Anton Krivenko 598a1cf5be Fix CI 2021-01-23 04:28:45 +03:00
Anton Krivenko f3cedb24ac Travis -> GitHub Actions 2021-01-23 04:21:20 +03:00
Anton Krivenko 82e53669b8 Fixed tests & minor changes in Makefile 2021-01-23 03:58:58 +03:00
Anton Krivenko cd70db9922 Merge pull request #107 from zrochler/gitlab-job-hook-build-payload
Add handling for job hooks with build payloads
2021-01-21 19:19:31 +03:00
Anton Krivenko b3a37b9b9a Merge pull request #126 from shaheed121/fix_gitlab_payload
Changing duration types from int64 to float64
2021-01-21 19:17:38 +03:00
Anton Krivenko e5ab838da3 Merge pull request #125 from go-playground/v6-go-modules
Go modules support
2021-01-15 00:10:05 +03:00
Abdul Shaheed 56d9dffd38 Changing duration types from int64 to float64 2021-01-11 20:27:51 +01:00
Anton Krivenko c99be7dbb8 CI fixes 2021-01-10 02:10:23 +03:00
Anton Krivenko 433ece5b7b Preparations for the go modules way of work 2021-01-10 01:30:18 +03:00
Anton Krivenko e6bb8aa4b7 Merge pull request #119 from tjrivera/child-team-payload-support
GitHub child team payload support
2021-01-06 22:23:03 +03:00
Anton Krivenko 8a870336ee Merge pull request #110 from wasphin/patch-1
gitlab: fix a typo
2021-01-06 21:54:58 +03:00
Anton Krivenko b6a30802e2 Merge pull request #123 from shaheed121/fix_gitlab_payload
Modify Gitlab Job and Pipeline events
2021-01-06 21:54:45 +03:00
Zach Rochler a8ff1e82b4 Undo BuildDuration change 2021-01-05 16:23:11 -08:00
Anton Krivenko 5fcf4a6e13 Update README.md 2021-01-06 02:47:13 +03:00
Anton Krivenko 1f79ca202d Preparations for the new v6 branch: some updates for .v6 url 2021-01-06 02:33:31 +03:00
Anton Krivenko 59fb74817c Update README.md 2021-01-05 02:33:20 +03:00
Anton Krivenko aa941874be Merge pull request #115 from yinxulai/v5
Add changes field in to IssuesPayload and  IssueCommentPayload of Github
2021-01-05 02:31:45 +03:00
Anton Krivenko bfd950a988 Merge branch 'v5' into v5 2021-01-04 22:39:52 +03:00
Anton Krivenko 9d685f3a73 Merge pull request #106 from wrewolf/patch-1
Added support draft pull request for github
2021-01-04 22:37:19 +03:00
Anton Krivenko 1f42c84783 Merge pull request #122 from DrMagPie/v5
Added missing field
2021-01-04 22:36:10 +03:00
Abdul Shaheed b79b935d9e Modify Job and Pipeline events as per https://docs.gitlab.com/ee/user/project/integrations/webhooks.html
Also, modified dependent types like Repository, MergeRequest, Commit to reflect the latest payload.
2020-12-24 11:51:07 +01:00
Aleksey Andreyanov ee81f21da7 Add correct X-Hub-Signature for PullRequestEvent test 2020-12-08 14:49:12 +03:00
Dr.MagPie 03cee75fc3 Updated Signature 2020-12-08 00:23:31 +02:00
Dr.MagPie 86c24d8570 added missing field 2020-12-07 23:56:48 +02:00
Anton Krivenko 30fb8f885f Merge pull request #114 from takirala/tga/add-labels-support
gitlab: Add labels array in MergeRequestEventPayload
2020-11-10 23:20:39 +03:00
Anton Krivenko 957d07ee07 Update .travis.yml (#120) 2020-11-10 08:54:38 +03:00
yinxulai a5ce17cac3 format .travis.yaml 2020-07-23 11:29:49 +08:00
yinxulai efae47c3b9 add changes field in to IssuesPayload and IssueCommentPayload of GitHub. 2020-07-23 10:15:12 +08:00
Anton Krivenko b616136c50 Merge pull request #111 from aritas1/v5
handle gitlab system hook inconsistencies
2020-07-17 19:00:12 +03:00
Anton Krivenko 303483bff4 Merge pull request #112 from chhsia0/bitbucketserver-pr-from-ref-updated
Bitbucket Server: Add support for `pr:from_ref_updated` event.
2020-07-17 18:59:46 +03:00
Tarun Gupta Akirala 4156f32687 gitlab: Add labels array in MergeRequestEventPayload 2020-07-14 20:50:27 -07:00
aritas1 b03dc868a0 update system hooks to handle event_name fields 2020-05-31 01:37:42 +02:00
Daniel 9f0c3ac5d7 add system hook example data for merge request 2020-05-31 01:13:00 +02:00
Daniel f4ad678f8e add a system tag push example 2020-05-31 01:11:22 +02:00
Daniel a23062206a add a system push example 2020-05-31 01:10:33 +02:00
chhsia0 7c046447e2 Added support for Bitbucket server pr:from_ref_updated event. 2020-05-27 19:55:08 -07:00
Xiaofeng Wang fafbb08b19 gitlab: fix a typo 2020-05-26 10:51:49 +08:00
Tyler Rivera c31b74320c Support GitHub child teams in team payload 2020-05-14 11:58:05 -04:00
Tyler Rivera 5be09cefe2 Support GitHub child teams 2020-05-13 17:37:18 -04:00
Anton Krivenko 7a4edfce55 Merge pull request #108 from yinxulai/v5
add changes field in to PullRequestPayload of GitHub.
2020-05-02 17:14:57 +03:00
Anton Krivenko bb49f714ae Merge pull request #103 from spacelift-io/v5
Add missing ID for Project
2020-05-02 17:13:22 +03:00
yinxulai 260e9b3afd restructuring 2020-04-28 09:57:19 +08:00
yinxulai e01b0fd664 supplementary annotation 2020-04-28 09:54:53 +08:00
yinxulai ef305446ee add changes field in to GitHub PullRequestPayload. 2020-04-28 09:47:11 +08:00
Zach Rochler cfd9712d30 Fix BuildDuration type 2020-04-15 15:26:28 -07:00
Zach Rochler a7a2c8c856 Add handling for job hooks with build payloads 2020-04-15 14:05:41 -07:00
Grzegorz Korzeniowski 743f78a93d Add missing UserUsername in TagEventPayload 2020-04-15 15:23:23 +02:00
Grzegorz Korzeniowski a4dc35a54d Add missing UserUsername in PushEventPayload 2020-04-09 15:14:43 +02:00
Aleksey Andreyanov 9a9f42e1b8 Added support draft pull request for github 2020-04-05 20:19:13 +03:00
Marcin Wyszynski cc63869891 Add missing ID for Project 2020-03-30 14:52:52 +02:00
Dean Karn cb4aa3d145 Merge pull request #96 from chhsia0/github-pr-comment
Added supported for GitHub pull request comments.
2019-11-11 12:54:33 -08:00
Dean Karn 334436bcc5 Merge pull request #97 from Toshik1978/v5
Fixed pipeline hook for GitLab >= 12.3
2019-11-11 12:53:47 -08:00
chhsia0 3007a7f5c2 Added supported for GitHub pull request comments. 2019-10-26 10:00:18 -07:00
Anton Krivenko f248671aae Fixed pipeline hook for GitLab >= 12.3 2019-09-28 23:17:57 +03:00
Dean Karn 2845fba51e Update README.md 2019-08-24 09:41:18 -07:00
Dean Karn e1f5ba4c3a Merge pull request #88 from luca-moser/github-meta-event
Adds GitHub meta event/payload
2019-08-24 09:31:05 -07:00
Dean Karn ef903a2448 Merge branch 'v5' into github-meta-event 2019-08-24 09:22:16 -07:00
Dean Karn 115b7e49a5 Merge pull request #87 from pavelgnom/v5
Add `Installation` to the `ReleasePayload`
2019-08-24 09:10:12 -07:00
Dean Karn 9ce6db7e53 Merge pull request #86 from BlizzTom/v5
Adding support for github event integration_installation_repositories
2019-08-24 09:00:14 -07:00
Luca Moser dc7efa3fa7 adds GitHub meta event/payload 2019-08-24 11:28:48 +02:00
Pavel Herasimau c3faee81c0 add installation to release payload 2019-08-21 17:41:58 +03:00
Tom Anderson 26af15f0e6 Adding support for event integration_installation_repositories 2019-08-01 14:15:31 -07:00
Dean Karn 2c25dbce5e Update README.md 2019-07-10 08:15:30 -07:00
Dean Karn cc33de46ff Merge pull request #85 from riley-martine/v5
Move node_id field from status to status.commit in StatusEvent
2019-07-10 08:14:05 -07:00
Dean Karn c86c1f184a Merge pull request #84 from ilteristabak/updated-bb-actor
Update BitBucket Owner payload
2019-07-10 08:13:12 -07:00
Dean Karn 2c92b6562c Merge pull request #82 from hatstand/add-installation-id
Add installation ID to pull request payloads
2019-07-10 08:12:17 -07:00
Dean Karn 0c10330052 Merge pull request #79 from maguro/v5
Update position to struct
2019-07-10 08:11:48 -07:00
Riley Martine a9a686f8e5 Reorder field in StatusPayload to match schema 2019-07-08 17:29:19 -04:00
Riley Martine 3534f74a83 Move node_id field from status to status.commit in StatusEvent 2019-07-08 17:11:12 -04:00
ilteriş tabak a740f8cf11 Update BitBucket payload 2019-07-02 10:07:43 +03:00
John Maguire 905cac71c9 Add installation ID to PullRequestReviewComment 2019-06-20 14:38:42 +01:00
John Maguire 71b069e705 Add installation ID to PullRequestReview 2019-06-20 14:38:39 +01:00
Alan D. Cabrera 471fb52f8c Update position to struct
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
2019-06-01 21:19:40 -07:00
Dean Karn 1751865845 Update README.md 2019-05-23 07:51:41 -07:00
Dean Karn 0a9a3aab3e Merge pull request #76 from v4lproik/add-repository-vulnerability-alert
Add repository vulnerability alert event
2019-05-23 07:51:04 -07:00
jrousseau 43ffb318d2 Add repository vulnerability alert event 2019-05-22 14:09:39 +02:00
Dean Karn 6edb377cee Update README.md 2019-05-20 13:34:26 -07:00
Dean Karn c205145bc6 Merge pull request #75 from maguro/v5
Update PipelineEventPayload with Job
2019-05-20 13:33:52 -07:00
Alan D. Cabrera a8ef7768a6 Update Pipeline even with jobs 2019-05-20 06:53:40 -07:00
50 changed files with 1758 additions and 629 deletions
+52
View File
@@ -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
+16
View File
@@ -0,0 +1,16 @@
run:
tests: false
skip-dirs:
- _examples
linters:
enable:
- vet
- vetshadow
- golint
- megacheck
- ineffassign
- misspell
- errcheck
- goconst
- gofmt
-34
View File
@@ -1,34 +0,0 @@
language: go
go:
- 1.12.1
- 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.11.2 ] &&
overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug &&
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
+12 -8
View File
@@ -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
+8 -8
View File
@@ -1,10 +1,10 @@
Library webhooks
================
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.10.0-green.svg)
[![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks)
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5)
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png">![Project status](https://img.shields.io/badge/version-6.0.0-green.svg)
[![Test](https://github.com/go-playground/webhooks/workflows/Test/badge.svg?branch=master)](https://github.com/go-playground/webhooks/actions)
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=master&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=master)
[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)
[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks.v5?status.svg)](https://godoc.org/gopkg.in/go-playground/webhooks.v5)
[![GoDoc](https://godoc.org/github.com/go-playground/webhooks/v6?status.svg)](https://godoc.org/github.com/go-playground/webhooks/v6)
![License](https://img.shields.io/dub/l/vibe-d.svg)
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 (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"gopkg.in/go-playground/webhooks.v5/github"
"github.com/go-playground/webhooks/v6/github"
)
const (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"gopkg.in/go-playground/webhooks.v5/github"
"github.com/go-playground/webhooks/v6/github"
)
const (
+10 -5
View File
@@ -32,11 +32,12 @@ const (
RepositoryCommentEditedEvent Event = "repo:comment:edited"
RepositoryCommentDeletedEvent Event = "repo:comment:deleted"
PullRequestOpenedEvent Event = "pr:opened"
PullRequestModifiedEvent Event = "pr:modified"
PullRequestMergedEvent Event = "pr:merged"
PullRequestDeclinedEvent Event = "pr:declined"
PullRequestDeletedEvent Event = "pr: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"
@@ -168,6 +169,10 @@ func (hook *Webhook) Parse(r *http.Request, events ...Event) (interface{}, error
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)
+14 -6
View File
@@ -66,6 +66,14 @@ type PullRequestOpenedPayload struct {
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"`
@@ -139,7 +147,7 @@ type PullRequestCommentAddedPayload struct {
Actor User `json:"actor"`
PullRequest PullRequest `json:"pullRequest"`
Comment Comment `json:"comment"`
CommentParentId uint64 `json:"commentParentId,omitempty"`
CommentParentID uint64 `json:"commentParentId,omitempty"`
}
type PullRequestCommentEditedPayload struct {
@@ -148,7 +156,7 @@ type PullRequestCommentEditedPayload struct {
Actor User `json:"actor"`
PullRequest PullRequest `json:"pullRequest"`
Comment Comment `json:"comment"`
CommentParentId string `json:"commentParentId,omitempty"`
CommentParentID string `json:"commentParentId,omitempty"`
PreviousComment string `json:"previousComment"`
}
@@ -158,7 +166,7 @@ type PullRequestCommentDeletedPayload struct {
Actor User `json:"actor"`
PullRequest PullRequest `json:"pullRequest"`
Comment Comment `json:"comment"`
CommentParentId uint64 `json:"commentParentId,omitempty"`
CommentParentID uint64 `json:"commentParentId,omitempty"`
}
// -----------------------
@@ -178,7 +186,7 @@ type Repository struct {
ID uint64 `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
ScmId string `json:"scmId"`
ScmID string `json:"scmId"`
State string `json:"state"`
StatusMessage string `json:"statusMessage"`
Forkable bool `json:"forkable"`
@@ -221,7 +229,7 @@ type PullRequest struct {
type RepositoryChange struct {
Reference RepositoryReference `json:"ref"`
ReferenceId string `json:"refId"`
ReferenceID string `json:"refId"`
FromHash string `json:"fromHash"`
ToHash string `json:"toHash"`
Type string `json:"type"`
@@ -229,7 +237,7 @@ type RepositoryChange struct {
type RepositoryReference struct {
ID string `json:"id"`
DisplayId string `json:"displayId"`
DisplayID string `json:"displayId"`
Type string `json:"type,omitempty"`
LatestCommit string `json:"latestCommit,omitempty"`
Repository Repository `json:"repository,omitempty"`
+2 -1
View File
@@ -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 {
+1 -2
View File
@@ -1,6 +1,6 @@
package docker
// this package recieves the Docker Hub Automated Build webhook
// this package receives the Docker Hub Automated Build webhook
// https://docs.docker.com/docker-hub/webhooks/
// NOT the Docker Trusted Registry webhook
// https://docs.docker.com/ee/dtr/user/create-and-manage-webhooks/
@@ -58,7 +58,6 @@ type BuildPayload struct {
// Webhook instance contains all methods needed to process events
type Webhook struct {
secret string
}
// New creates and returns a WebHook instance
+49 -38
View File
@@ -28,43 +28,46 @@ type Event string
// GitHub hook types
const (
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"
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"
SecurityAdvisoryEvent Event = "security_advisory"
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
@@ -205,7 +208,7 @@ 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:
case InstallationRepositoriesEvent, IntegrationInstallationRepositoriesEvent:
var pl InstallationRepositoriesPayload
err = json.Unmarshal([]byte(payload), &pl)
return pl, err
@@ -229,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)
@@ -289,6 +296,10 @@ 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)
+33 -3
View File
@@ -253,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,
@@ -263,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,
@@ -360,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"},
},
},
{
@@ -400,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"},
},
},
{
@@ -453,13 +473,23 @@ 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-Github-Event": []string{"security_advisory"},
"X-Hub-Signature": []string{"sha1=6a71f24fa69f55469843a91dc3a5c3e29714a565"},
},
},
+248 -56
View File
@@ -13,7 +13,7 @@ type CheckRunPayload struct {
Status string `json:"status"`
Conclusion string `json:"conclusion"`
URL string `json:"url"`
HtmlURL string `json:"html_url"`
HTMLURL string `json:"html_url"`
StarterAt time.Time `json:"started_at"`
CompletedAt time.Time `json:"completed_at"`
Output struct {
@@ -59,7 +59,7 @@ type CheckRunPayload struct {
Name string `json:"name"`
Description string `json:"description"`
ExternalURL string `json:"external_url"`
HtmlURL string `json:"html_url"`
HTMLURL string `json:"html_url"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
} `json:"app"`
@@ -92,7 +92,7 @@ type CheckRunPayload struct {
Name string `json:"name"`
Description string `json:"description"`
ExternalURL string `json:"external_url"`
HtmlURL string `json:"html_url"`
HTMLURL string `json:"html_url"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
} `json:"app"`
@@ -187,6 +187,9 @@ type CheckRunPayload struct {
Watchers int64 `json:"watchers"`
DefaultBranch string `json:"default_branch"`
} `json:"repository"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation,omitempty"`
Sender struct {
Login string `json:"login"`
ID int64 `json:"id"`
@@ -249,7 +252,7 @@ type CheckSuitePayload struct {
Name string `json:"name"`
Description string `json:"description"`
ExternalURL string `json:"external_url"`
HtmlURL string `json:"html_url"`
HTMLURL string `json:"html_url"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
} `json:"app"`
@@ -359,6 +362,9 @@ type CheckSuitePayload struct {
Watchers int64 `json:"watchers"`
DefaultBranch string `json:"default_branch"`
} `json:"repository"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation,omitempty"`
Sender struct {
Login string `json:"login"`
ID int64 `json:"id"`
@@ -1614,16 +1620,22 @@ type IssueCommentPayload struct {
Color string `json:"color"`
Default bool `json:"default"`
} `json:"labels"`
State string `json:"state"`
Locked bool `json:"locked"`
Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"`
Comments int64 `json:"comments"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ClosedAt *time.Time `json:"closed_at"`
Body string `json:"body"`
State string `json:"state"`
Locked bool `json:"locked"`
Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"`
Comments int64 `json:"comments"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ClosedAt *time.Time `json:"closed_at"`
PullRequest *struct {
URL string `json:"url"`
HTMLURL string `json:"html_url"`
DiffURL string `json:"diff_url"`
PatchURL string `json:"patch_url"`
} `json:"pull_request"`
Body string `json:"body"`
} `json:"issue"`
Comment struct {
URL string `json:"url"`
@@ -1656,6 +1668,11 @@ type IssueCommentPayload struct {
Body string `json:"body"`
AuthorAssociation string `json:"author_association"`
} `json:"comment"`
Changes *struct {
Body *struct {
From string `json:"from"`
} `json:"body"`
} `json:"changes"`
Repository struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
@@ -1820,6 +1837,14 @@ type IssuesPayload struct {
ClosedAt *time.Time `json:"closed_at"`
Body string `json:"body"`
} `json:"issue"`
Changes *struct {
Title *struct {
From string `json:"from"`
} `json:"title"`
Body *struct {
From string `json:"from"`
} `json:"body"`
} `json:"changes"`
Repository struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
@@ -2248,16 +2273,7 @@ type MembershipPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Team struct {
Name string `json:"name"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Slug string `json:"slug"`
Permission string `json:"permission"`
URL string `json:"url"`
MembersURL string `json:"members_url"`
RepositoriesURL string `json:"repositories_url"`
} `json:"team"`
Team *Team `json:"team"`
Organization struct {
Login string `json:"login"`
ID int64 `json:"id"`
@@ -2271,6 +2287,137 @@ type MembershipPayload struct {
} `json:"organization"`
}
// MetaPayload contains the information for GitHub's meta hook event
type MetaPayload struct {
HookID int `json:"hook_id"`
Hook struct {
Type string `json:"type"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Name string `json:"name"`
Active bool `json:"active"`
Events []string `json:"events"`
AppID int `json:"app_id"`
Config struct {
ContentType string `json:"content_type"`
InsecureSSL string `json:"insecure_ssl"`
Secret string `json:"secret"`
URL string `json:"url"`
} `json:"config"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
} `json:"hook"`
Repository struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Name string `json:"name"`
FullName string `json:"full_name"`
Owner struct {
Login string `json:"login"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
AvatarURL string `json:"avatar_url"`
GravatarID string `json:"gravatar_id"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
FollowersURL string `json:"followers_url"`
FollowingURL string `json:"following_url"`
GistsURL string `json:"gists_url"`
StarredURL string `json:"starred_url"`
SubscriptionsURL string `json:"subscriptions_url"`
OrganizationsURL string `json:"organizations_url"`
ReposURL string `json:"repos_url"`
EventsURL string `json:"events_url"`
ReceivedEventsURL string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"owner"`
Private bool `json:"private"`
HTMLURL string `json:"html_url"`
Description string `json:"description"`
Fork bool `json:"fork"`
URL string `json:"url"`
ForksURL string `json:"forks_url"`
KeysURL string `json:"keys_url"`
CollaboratorsURL string `json:"collaborators_url"`
TeamsURL string `json:"teams_url"`
HooksURL string `json:"hooks_url"`
IssueEventsURL string `json:"issue_events_url"`
EventsURL string `json:"events_url"`
AssigneesURL string `json:"assignees_url"`
BranchesURL string `json:"branches_url"`
TagsURL string `json:"tags_url"`
BlobsURL string `json:"blobs_url"`
GitTagsURL string `json:"git_tags_url"`
GitRefsURL string `json:"git_refs_url"`
TreesURL string `json:"trees_url"`
StatusesURL string `json:"statuses_url"`
LanguagesURL string `json:"languages_url"`
StargazersURL string `json:"stargazers_url"`
ContributorsURL string `json:"contributors_url"`
SubscribersURL string `json:"subscribers_url"`
SubscriptionURL string `json:"subscription_url"`
CommitsURL string `json:"commits_url"`
GitCommitsURL string `json:"git_commits_url"`
CommentsURL string `json:"comments_url"`
IssueCommentURL string `json:"issue_comment_url"`
ContentsURL string `json:"contents_url"`
CompareURL string `json:"compare_url"`
MergesURL string `json:"merges_url"`
ArchiveURL string `json:"archive_url"`
DownloadsURL string `json:"downloads_url"`
IssuesURL string `json:"issues_url"`
PullsURL string `json:"pulls_url"`
MilestonesURL string `json:"milestones_url"`
NotificationsURL string `json:"notifications_url"`
LabelsURL string `json:"labels_url"`
ReleasesURL string `json:"releases_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PushedAt time.Time `json:"pushed_at"`
GitURL string `json:"git_url"`
SSHURL string `json:"ssh_url"`
CloneURL string `json:"clone_url"`
SvnURL string `json:"svn_url"`
Homepage *string `json:"homepage"`
Size int64 `json:"size"`
StargazersCount int64 `json:"stargazers_count"`
WatchersCount int64 `json:"watchers_count"`
Language *string `json:"language"`
HasIssues bool `json:"has_issues"`
HasDownloads bool `json:"has_downloads"`
HasWiki bool `json:"has_wiki"`
HasPages bool `json:"has_pages"`
ForksCount int64 `json:"forks_count"`
MirrorURL *string `json:"mirror_url"`
OpenIssuesCount int64 `json:"open_issues_count"`
Forks int64 `json:"forks"`
OpenIssues int64 `json:"open_issues"`
Watchers int64 `json:"watchers"`
DefaultBranch string `json:"default_branch"`
} `json:"repository"`
Sender struct {
Login string `json:"login"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
AvatarURL string `json:"avatar_url"`
GravatarID string `json:"gravatar_id"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
FollowersURL string `json:"followers_url"`
FollowingURL string `json:"following_url"`
GistsURL string `json:"gists_url"`
StarredURL string `json:"starred_url"`
SubscriptionsURL string `json:"subscriptions_url"`
OrganizationsURL string `json:"organizations_url"`
ReposURL string `json:"repos_url"`
EventsURL string `json:"events_url"`
ReceivedEventsURL string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
}
// MilestonePayload contains the information for GitHub's milestone hook event
type MilestonePayload struct {
Action string `json:"action"`
@@ -2849,13 +2996,14 @@ type PingPayload struct {
type ProjectCardPayload struct {
Action string `json:"action"`
ProjectCard struct {
URL string `json:"url"`
ColumnURL string `json:"column_url"`
ColumnID int64 `json:"column_id"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Note *string `json:"note"`
Creator struct {
URL string `json:"url"`
ProjectURL string `json:"project_url"`
ColumnURL string `json:"column_url"`
ColumnID int64 `json:"column_id"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Note *string `json:"note"`
Creator struct {
Login string `json:"login"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
@@ -3452,6 +3600,7 @@ type PullRequestPayload struct {
Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"`
Draft bool `json:"draft"`
CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"`
ReviewCommentURL string `json:"review_comment_url"`
@@ -3869,6 +4018,14 @@ type PullRequestPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Changes *struct {
Title *struct {
From string `json:"from"`
} `json:"title"`
Body *struct {
From string `json:"from"`
} `json:"body"`
} `json:"changes"`
Assignee *Assignee `json:"assignee"`
RequestedReviewer *Assignee `json:"requested_reviewer"`
RequestedTeam struct {
@@ -4342,6 +4499,9 @@ type PullRequestReviewPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation"`
}
// PullRequestReviewCommentPayload contains the information for GitHub's pull_request_review_comments hook event
@@ -4806,6 +4966,9 @@ type PullRequestReviewCommentPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation struct {
ID int64 `json:"id"`
} `json:"installation"`
}
// PushPayload contains the information for GitHub's push hook event
@@ -5133,6 +5296,9 @@ type ReleasePayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Installation struct {
ID int `json:"id"`
} `json:"installation"`
}
// RepositoryPayload contains the information for GitHub's repository hook event
@@ -5260,6 +5426,40 @@ type RepositoryPayload struct {
} `json:"sender"`
}
// RepositoryVulnerabilityAlertEvent contains the information for GitHub's repository_vulnerability_alert hook event.
type RepositoryVulnerabilityAlertPayload struct {
Action string `json:"action"`
Alert struct {
ID int64 `json:"id"`
Summary string `json:"summary"`
AffectedRange string `json:"affected_range"`
AffectedPackageName string `json:"affected_package_name"`
ExternalReference string `json:"external_reference"`
ExternalIdentifier string `json:"external_identifier"`
FixedIn string `json:"fixed_in"`
Dismisser struct {
Login string `json:"login"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
AvatarURL string `json:"avatar_url"`
GravatarID string `json:"gravatar_id"`
URL string `json:"url"`
HTMLURL string `json:"html_url"`
FollowersURL string `json:"followers_url"`
FollowingURL string `json:"following_url"`
GistsURL string `json:"gists_url"`
StarredURL string `json:"starred_url"`
SubscriptionsURL string `json:"subscriptions_url"`
OrganizationsURL string `json:"organizations_url"`
ReposURL string `json:"repos_url"`
EventsURL string `json:"events_url"`
ReceivedEventsURL string `json:"received_events_url"`
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `json:"dismisser"`
} `json:"alert"`
}
// SecurityAdvisoryPayload contains the information for GitHub's security_advisory hook event.
type SecurityAdvisoryPayload struct {
Action string `json:"action"`
@@ -5295,7 +5495,6 @@ type SecurityAdvisoryPayload struct {
// StatusPayload contains the information for GitHub's status hook event
type StatusPayload struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Sha string `json:"sha"`
Name string `json:"name"`
TargetURL *string `json:"target_url"`
@@ -5304,6 +5503,7 @@ type StatusPayload struct {
State string `json:"state"`
Commit struct {
Sha string `json:"sha"`
NodeID string `json:"node_id"`
Commit struct {
Author struct {
Name string `json:"name"`
@@ -5490,19 +5690,8 @@ type StatusPayload struct {
// TeamPayload contains the information for GitHub's team hook event
type TeamPayload struct {
Action string `json:"action"`
Team struct {
Name string `json:"name"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Slug string `json:"slug"`
Description string `json:"description"`
Privacy string `json:"privacy"`
URL string `json:"url"`
MembersURL string `json:"members_url"`
RepositoriesURL string `json:"repositories_url"`
Permission string `json:"permission"`
} `json:"team"`
Action string `json:"action"`
Team *Team `json:"team"`
Organization struct {
Login string `json:"login"`
ID int64 `json:"id"`
@@ -5541,17 +5730,7 @@ type TeamPayload struct {
// TeamAddPayload contains the information for GitHub's team_add hook event
type TeamAddPayload struct {
Team struct {
Name string `json:"name"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Slug string `json:"slug"`
Description string `json:"description"`
Permission string `json:"permission"`
URL string `json:"url"`
MembersURL string `json:"members_url"`
RepositoriesURL string `json:"repositories_url"`
} `json:"team"`
Team *Team `json:"team"`
Repository struct {
ID int64 `json:"id"`
NodeID string `json:"node_id"`
@@ -5923,3 +6102,16 @@ type Label struct {
Color string `json:"color"`
Default bool `json:"default"`
}
// Team contains GitHub's Team information
type Team struct {
Name string `json:"name"`
ID int64 `json:"id"`
NodeID string `json:"node_id"`
Slug string `json:"slug"`
Permission string `json:"permission"`
URL string `json:"url"`
MembersURL string `json:"members_url"`
RepositoriesURL string `json:"repositories_url"`
Parent *Team `json:"parent,omitempty"`
}
+20 -4
View File
@@ -38,6 +38,7 @@ const (
objectPush string = "push"
objectTag string = "tag_push"
objectMergeRequest string = "merge_request"
objectBuild string = "build"
)
// Option is a configuration option for the webhook
@@ -173,9 +174,15 @@ func eventParsing(gitLabEvent Event, events []Event, payload []byte) (interface{
err := json.Unmarshal([]byte(payload), &pl)
return pl, err
case JobEvents:
var p1 JobEventPayload
err := json.Unmarshal([]byte(payload), &p1)
return p1, err
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
@@ -191,7 +198,16 @@ func eventParsing(gitLabEvent Event, events []Event, payload []byte) (interface{
case objectMergeRequest:
return eventParsing(MergeRequestEvents, events, payload)
default:
return nil, fmt.Errorf("unknown system hook event %s", gitLabEvent)
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)
+55 -12
View File
@@ -231,15 +231,6 @@ func TestWebhooks(t *testing.T) {
"X-Gitlab-Event": []string{"Build Hook"},
},
},
{
name: "JobEvent",
event: JobEvents,
typ: JobEventPayload{},
filename: "../testdata/gitlab/job-event.json",
headers: http.Header{
"X-Gitlab-Event": []string{"Job Hook"},
},
},
}
for _, tt := range tests {
@@ -274,6 +265,58 @@ 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 {
@@ -286,19 +329,19 @@ func TestSystemHooks(t *testing.T) {
name: "PushEvent",
event: PushEvents,
typ: PushEventPayload{},
filename: "../testdata/gitlab/push-event.json",
filename: "../testdata/gitlab/system-push-event.json",
},
{
name: "TagEvent",
event: TagEvents,
typ: TagEventPayload{},
filename: "../testdata/gitlab/tag-event.json",
filename: "../testdata/gitlab/system-tag-event.json",
},
{
name: "MergeRequestEvent",
event: MergeRequestEvents,
typ: MergeRequestEventPayload{},
filename: "../testdata/gitlab/merge-request-event.json",
filename: "../testdata/gitlab/system-merge-request-event.json",
},
}
for _, tt := range tests {
+149 -79
View File
@@ -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"`
@@ -150,30 +155,33 @@ type BuildEventPayload struct {
// 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"`
JobID int64 `json:"Job_id"`
JobName string `json:"Job_name"`
JobStage string `json:"Job_stage"`
JobStatus string `json:"Job_status"`
JobStartedAt customTime `json:"Job_started_at"`
JobFinishedAt customTime `json:"Job_finished_at"`
JobDuration int64 `json:"Job_duration"`
Job bool `json:"Job"`
JobFailureReason string `json:"job_failure_reason"`
ProjectID int64 `json:"project_id"`
ProjectName string `json:"project_name"`
User User `json:"user"`
Commit BuildCommit `json:"commit"`
Repository Repository `json:"repository"`
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
@@ -193,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"`
@@ -236,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"`
@@ -249,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"`
}
@@ -281,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"`
@@ -299,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
@@ -378,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
+8
View File
@@ -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
)
+13
View File
@@ -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=
+4 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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"
+16 -12
View File
@@ -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"
+8 -6
View File
@@ -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"
@@ -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
}
}
+2 -1
View File
@@ -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
View File
@@ -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
}
}
+1
View File
@@ -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}",
+33
View File
@@ -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"
}
}
+30 -1
View File
@@ -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,
+30 -1
View File
@@ -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,
+47 -39
View File
@@ -1,42 +1,50 @@
{
"object_kind": "job",
"ref": "gitlab-script-trigger",
"tag": false,
"before_sha": "2293ada6b400935a1378653304eaf6221e0fdb8f",
"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",
"job_id": 1977,
"job_name": "test",
"job_stage": "test",
"job_status": "created",
"job_started_at": null,
"job_finished_at": null,
"job_duration": null,
"job_allow_failure": false,
"job_failure_reason": "script_failure",
"project_id": 380,
"project_name": "gitlab-org/gitlab-test",
"user": {
"id": 3,
"name": "User",
"email": "user@gitlab.com"
},
"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
}
"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
View File
@@ -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"
}
]
}
+185 -144
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
}