Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a4edfce55 | |||
| bb49f714ae | |||
| 260e9b3afd | |||
| e01b0fd664 | |||
| ef305446ee | |||
| 743f78a93d | |||
| a4dc35a54d | |||
| cc63869891 | |||
| cb4aa3d145 | |||
| 334436bcc5 | |||
| 3007a7f5c2 | |||
| f248671aae | |||
| 2845fba51e | |||
| e1f5ba4c3a | |||
| ef903a2448 | |||
| 115b7e49a5 | |||
| 9ce6db7e53 | |||
| dc7efa3fa7 | |||
| c3faee81c0 | |||
| 26af15f0e6 |
@@ -1,6 +1,6 @@
|
||||
Library webhooks
|
||||
================
|
||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
||||
[](https://travis-ci.org/go-playground/webhooks)
|
||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v5)
|
||||
[](https://goreportcard.com/report/go-playground/webhooks)
|
||||
|
||||
+45
-39
@@ -28,44 +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"
|
||||
RepositoryVulnerabilityAlertEvent Event = "repository_vulnerability_alert"
|
||||
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
|
||||
@@ -206,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
|
||||
@@ -230,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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
+158
-10
@@ -1614,16 +1614,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"`
|
||||
@@ -2271,6 +2277,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"`
|
||||
@@ -3869,6 +4006,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 {
|
||||
@@ -5139,6 +5284,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
|
||||
|
||||
+24
-6
@@ -67,6 +67,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 +86,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 +106,12 @@ 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"`
|
||||
Jobs []Job `json:"jobs"`
|
||||
ObjectKind string `json:"object_kind"`
|
||||
User User `json:"user"`
|
||||
Project Project `json:"project"`
|
||||
Commit Commit `json:"commit"`
|
||||
ObjectAttributes PipelineObjectAttributes `json:"object_attributes"`
|
||||
Jobs []Job `json:"jobs"`
|
||||
}
|
||||
|
||||
// CommentEventPayload contains the information for GitLab's comment event
|
||||
@@ -281,6 +283,7 @@ 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"`
|
||||
@@ -356,6 +359,21 @@ type ObjectAttributes struct {
|
||||
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"`
|
||||
}
|
||||
|
||||
// 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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"action": "created",
|
||||
"issue": {
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3",
|
||||
"repository_url": "https://api.github.com/repos/chhsia0/knative-route-demo",
|
||||
"labels_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3/labels{/name}",
|
||||
"comments_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3/comments",
|
||||
"events_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3/events",
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo/pull/3",
|
||||
"id": 494965988,
|
||||
"node_id": "MDExOlB1bGxSZXF1ZXN0MzE4NjEwOTI3",
|
||||
"number": 3,
|
||||
"title": "Updated to v2.",
|
||||
"user": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"labels": [
|
||||
|
||||
],
|
||||
"state": "open",
|
||||
"locked": false,
|
||||
"assignee": null,
|
||||
"assignees": [
|
||||
|
||||
],
|
||||
"milestone": null,
|
||||
"comments": 17,
|
||||
"created_at": "2019-09-18T03:28:04Z",
|
||||
"updated_at": "2019-10-26T16:09:23Z",
|
||||
"closed_at": null,
|
||||
"author_association": "OWNER",
|
||||
"pull_request": {
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo/pulls/3",
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo/pull/3",
|
||||
"diff_url": "https://github.com/chhsia0/knative-route-demo/pull/3.diff",
|
||||
"patch_url": "https://github.com/chhsia0/knative-route-demo/pull/3.patch"
|
||||
},
|
||||
"body": ""
|
||||
},
|
||||
"comment": {
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/comments/546616131",
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo/pull/3#issuecomment-546616131",
|
||||
"issue_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/3",
|
||||
"id": 546616131,
|
||||
"node_id": "MDEyOklzc3VlQ29tbWVudDU0NjYxNjEzMQ==",
|
||||
"user": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"created_at": "2019-10-26T16:09:23Z",
|
||||
"updated_at": "2019-10-26T16:09:23Z",
|
||||
"author_association": "OWNER",
|
||||
"body": "/build"
|
||||
},
|
||||
"repository": {
|
||||
"id": 199540710,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkxOTk1NDA3MTA=",
|
||||
"name": "knative-route-demo",
|
||||
"full_name": "chhsia0/knative-route-demo",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/chhsia0/knative-route-demo",
|
||||
"description": "Simple knative route demo",
|
||||
"fork": true,
|
||||
"url": "https://api.github.com/repos/chhsia0/knative-route-demo",
|
||||
"forks_url": "https://api.github.com/repos/chhsia0/knative-route-demo/forks",
|
||||
"keys_url": "https://api.github.com/repos/chhsia0/knative-route-demo/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/chhsia0/knative-route-demo/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/chhsia0/knative-route-demo/teams",
|
||||
"hooks_url": "https://api.github.com/repos/chhsia0/knative-route-demo/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/chhsia0/knative-route-demo/events",
|
||||
"assignees_url": "https://api.github.com/repos/chhsia0/knative-route-demo/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/chhsia0/knative-route-demo/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/chhsia0/knative-route-demo/tags",
|
||||
"blobs_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/chhsia0/knative-route-demo/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/chhsia0/knative-route-demo/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/chhsia0/knative-route-demo/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/chhsia0/knative-route-demo/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/chhsia0/knative-route-demo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/chhsia0/knative-route-demo/subscription",
|
||||
"commits_url": "https://api.github.com/repos/chhsia0/knative-route-demo/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/chhsia0/knative-route-demo/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/chhsia0/knative-route-demo/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/chhsia0/knative-route-demo/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/chhsia0/knative-route-demo/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/chhsia0/knative-route-demo/merges",
|
||||
"archive_url": "https://api.github.com/repos/chhsia0/knative-route-demo/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/chhsia0/knative-route-demo/downloads",
|
||||
"issues_url": "https://api.github.com/repos/chhsia0/knative-route-demo/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/chhsia0/knative-route-demo/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/chhsia0/knative-route-demo/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/chhsia0/knative-route-demo/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/chhsia0/knative-route-demo/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/chhsia0/knative-route-demo/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/chhsia0/knative-route-demo/deployments",
|
||||
"created_at": "2019-07-29T23:38:07Z",
|
||||
"updated_at": "2019-10-01T18:07:59Z",
|
||||
"pushed_at": "2019-10-23T23:49:38Z",
|
||||
"git_url": "git://github.com/chhsia0/knative-route-demo.git",
|
||||
"ssh_url": "git@github.com:chhsia0/knative-route-demo.git",
|
||||
"clone_url": "https://github.com/chhsia0/knative-route-demo.git",
|
||||
"svn_url": "https://github.com/chhsia0/knative-route-demo",
|
||||
"homepage": "",
|
||||
"size": 59,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": false,
|
||||
"has_pages": true,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 3,
|
||||
"license": {
|
||||
"key": "apache-2.0",
|
||||
"name": "Apache License 2.0",
|
||||
"spdx_id": "Apache-2.0",
|
||||
"url": "https://api.github.com/licenses/apache-2.0",
|
||||
"node_id": "MDc6TGljZW5zZTI="
|
||||
},
|
||||
"forks": 0,
|
||||
"open_issues": 3,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"sender": {
|
||||
"login": "chhsia0",
|
||||
"id": 4643017,
|
||||
"node_id": "MDQ6VXNlcjQ2NDMwMTc=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/4643017?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/chhsia0",
|
||||
"html_url": "https://github.com/chhsia0",
|
||||
"followers_url": "https://api.github.com/users/chhsia0/followers",
|
||||
"following_url": "https://api.github.com/users/chhsia0/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/chhsia0/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/chhsia0/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/chhsia0/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/chhsia0/orgs",
|
||||
"repos_url": "https://api.github.com/users/chhsia0/repos",
|
||||
"events_url": "https://api.github.com/users/chhsia0/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/chhsia0/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user