Browse Source

Add generator

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 3 weeks ago
parent
commit
cd94939b56
Signed by: jolheiser GPG Key ID: B853ADA5DA7BBF7A
  1. 4
      go.mod
  2. 32
      go.sum
  3. 100
      internal/events/create.json
  4. 100
      internal/events/delete.json
  5. 242
      internal/events/fork.json
  6. 213
      internal/events/issue_assign.json
  7. 246
      internal/events/issue_comment.json
  8. 213
      internal/events/issue_label.json
  9. 213
      internal/events/issue_milestone.json
  10. 213
      internal/events/issues.json
  11. 370
      internal/events/pull_request.json
  12. 370
      internal/events/pull_request_assign.json
  13. 373
      internal/events/pull_request_comment.json
  14. 370
      internal/events/pull_request_label.json
  15. 370
      internal/events/pull_request_milestone.json
  16. 373
      internal/events/pull_request_review_approved.json
  17. 373
      internal/events/pull_request_review_rejected.json
  18. 370
      internal/events/pull_request_sync.json
  19. 169
      internal/events/push.json
  20. 136
      internal/events/release.json
  21. 120
      internal/events/repository.json
  22. 13
      internal/generate.go
  23. 227
      internal/gitea.go
  24. 23
      internal/web.go
  25. 1
      webhook.go

4
go.mod

@ -1,3 +1,7 @@
module go.jolheiser.com/gitea-webhook
go 1.17
require code.gitea.io/sdk/gitea v0.15.0
require github.com/hashicorp/go-version v1.2.1 // indirect

32
go.sum

@ -0,0 +1,32 @@
code.gitea.io/gitea-vet v0.2.1/go.mod h1:zcNbT/aJEmivCAhfmkHOlT645KNOf9W2KnkLgFjGGfE=
code.gitea.io/sdk/gitea v0.15.0 h1:tsNhxDM/2N1Ohv1Xq5UWrht/esg0WmtRj4wsHVHriTg=
code.gitea.io/sdk/gitea v0.15.0/go.mod h1:klY2LVI3s3NChzIk/MzMn7G1FHrfU7qd63iSMVoHRBA=
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/hashicorp/go-version v1.2.1 h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=
github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
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.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200325010219-a49f79bcc224/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

100
internal/events/create.json

@ -0,0 +1,100 @@
{
"sha": "d14f36e0cce9c679142a6312134213ce3945dad4",
"ref": "release",
"ref_type": "tag",
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 0,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": false,
"push": false,
"pull": false
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
}

100
internal/events/delete.json

@ -0,0 +1,100 @@
{
"ref": "main",
"ref_type": "branch",
"pusher_type": "user",
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 21,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 1,
"open_pr_counter": 0,
"release_counter": 1,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:53Z",
"permissions": {
"admin": false,
"push": false,
"pull": false
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
}

242
internal/events/fork.json

@ -0,0 +1,242 @@
{
"forkee": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 0,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:47Z",
"permissions": {
"admin": false,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"repository": {
"id": 28316,
"owner": {
"id": 7886,
"login": "Etzelia",
"full_name": "",
"email": "etzelia@hotmail.com",
"avatar_url": "/avatar/3b64e4ed200ebcdb88d592dec69e33a8",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2018-09-12T14:26:52Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": 0,
"username": "Etzelia"
},
"name": "gitea-webhook",
"full_name": "Etzelia/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": true,
"template": false,
"parent": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 0,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:47Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/Etzelia/gitea-webhook",
"ssh_url": "git@try.gitea.io:Etzelia/gitea-webhook.git",
"clone_url": "https://try.gitea.io/Etzelia/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 0,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 0,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:48Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 7886,
"login": "Etzelia",
"full_name": "",
"email": "etzelia@hotmail.com",
"avatar_url": "/avatar/3b64e4ed200ebcdb88d592dec69e33a8",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2018-09-12T14:26:52Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": 0,
"username": "Etzelia"
}
}

213
internal/events/issue_assign.json

@ -0,0 +1,213 @@
{
"action": "assigned",
"number": 1,
"issue": {
"id": 27440,
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/issues/1",
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1",
"number": 1,
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"original_author": "",
"original_author_id": 0,
"title": "Issue 1",
"body": "Issue Body",
"ref": "",
"labels": [
{
"id": 15259,
"name": "bug",
"color": "ee0701",
"description": "Something is not working",
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/labels/15259"
}
],
"milestone": {
"id": 1542,
"title": "Milestone 1",
"description": "Milestone Description",
"state": "open",
"open_issues": 0,
"closed_issues": 0,
"created_at": "2021-10-07T05:10:46Z",
"updated_at": "2021-10-07T05:10:46Z",
"closed_at": null,
"due_on": null
},
"assignee": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"assignees": [
{
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
],
"state": "open",
"is_locked": false,
"comments": 0,
"created_at": "2021-10-07T05:10:48Z",
"updated_at": "2021-10-07T05:10:48Z",
"closed_at": null,
"due_date": null,
"pull_request": null,
"repository": {
"id": 28315,
"name": "gitea-webhook",
"owner": "jolheiser",
"full_name": "jolheiser/gitea-webhook"
}
},
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 1,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
}

246
internal/events/issue_comment.json

@ -0,0 +1,246 @@
{
"action": "created",
"issue": {
"id": 27440,
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/issues/1",
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1",
"number": 1,
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"original_author": "",
"original_author_id": 0,
"title": "Issue 1",
"body": "Issue Body",
"ref": "",
"labels": [
{
"id": 15259,
"name": "bug",
"color": "ee0701",
"description": "Something is not working",
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/labels/15259"
}
],
"milestone": {
"id": 1542,
"title": "Milestone 1",
"description": "Milestone Description",
"state": "open",
"open_issues": 1,
"closed_issues": 0,
"created_at": "2021-10-07T05:10:46Z",
"updated_at": "2021-10-07T05:10:48Z",
"closed_at": null,
"due_on": null
},
"assignee": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"assignees": [
{
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
],
"state": "open",
"is_locked": false,
"comments": 0,
"created_at": "2021-10-07T05:10:48Z",
"updated_at": "2021-10-07T05:10:49Z",
"closed_at": null,
"due_date": null,
"pull_request": null,
"repository": {
"id": 28315,
"name": "gitea-webhook",
"owner": "jolheiser",
"full_name": "jolheiser/gitea-webhook"
}
},
"comment": {
"id": 92781,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1#issuecomment-92781",
"pull_request_url": "",
"issue_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1",
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"original_author": "",
"original_author_id": 0,
"body": "Issue Comment",
"created_at": "2021-10-07T05:10:49Z",
"updated_at": "2021-10-07T05:10:49Z"
},
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 1,
"open_pr_counter": 0,
"release_counter": 1,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"is_pull": false
}

213
internal/events/issue_label.json

@ -0,0 +1,213 @@
{
"action": "label_updated",
"number": 1,
"issue": {
"id": 27440,
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/issues/1",
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1",
"number": 1,
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"original_author": "",
"original_author_id": 0,
"title": "Issue 1",
"body": "Issue Body",
"ref": "",
"labels": [
{
"id": 15259,
"name": "bug",
"color": "ee0701",
"description": "Something is not working",
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/labels/15259"
}
],
"milestone": {
"id": 1542,
"title": "Milestone 1",
"description": "Milestone Description",
"state": "open",
"open_issues": 0,
"closed_issues": 0,
"created_at": "2021-10-07T05:10:46Z",
"updated_at": "2021-10-07T05:10:46Z",
"closed_at": null,
"due_on": null
},
"assignee": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"assignees": [
{
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
],
"state": "open",
"is_locked": false,
"comments": 0,
"created_at": "2021-10-07T05:10:48Z",
"updated_at": "2021-10-07T05:10:48Z",
"closed_at": null,
"due_date": null,
"pull_request": null,
"repository": {
"id": 28315,
"name": "gitea-webhook",
"owner": "jolheiser",
"full_name": "jolheiser/gitea-webhook"
}
},
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 1,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
}

213
internal/events/issue_milestone.json

@ -0,0 +1,213 @@
{
"action": "milestoned",
"number": 1,
"issue": {
"id": 27440,
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/issues/1",
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1",
"number": 1,
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"original_author": "",
"original_author_id": 0,
"title": "Issue 1",
"body": "Issue Body",
"ref": "",
"labels": [
{
"id": 15259,
"name": "bug",
"color": "ee0701",
"description": "Something is not working",
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/labels/15259"
}
],
"milestone": {
"id": 1542,
"title": "Milestone 1",
"description": "Milestone Description",
"state": "open",
"open_issues": 0,
"closed_issues": 0,
"created_at": "2021-10-07T05:10:46Z",
"updated_at": "2021-10-07T05:10:46Z",
"closed_at": null,
"due_on": null
},
"assignee": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"assignees": [
{
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
],
"state": "open",
"is_locked": false,
"comments": 0,
"created_at": "2021-10-07T05:10:48Z",
"updated_at": "2021-10-07T05:10:48Z",
"closed_at": null,
"due_date": null,
"pull_request": null,
"repository": {
"id": 28315,
"name": "gitea-webhook",
"owner": "jolheiser",
"full_name": "jolheiser/gitea-webhook"
}
},
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 1,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
}

213
internal/events/issues.json

@ -0,0 +1,213 @@
{
"action": "opened",
"number": 1,
"issue": {
"id": 27440,
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/issues/1",
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook/issues/1",
"number": 1,
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"original_author": "",
"original_author_id": 0,
"title": "Issue 1",
"body": "Issue Body",
"ref": "",
"labels": [
{
"id": 15259,
"name": "bug",
"color": "ee0701",
"description": "Something is not working",
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/labels/15259"
}
],
"milestone": {
"id": 1542,
"title": "Milestone 1",
"description": "Milestone Description",
"state": "open",
"open_issues": 0,
"closed_issues": 0,
"created_at": "2021-10-07T05:10:46Z",
"updated_at": "2021-10-07T05:10:46Z",
"closed_at": null,
"due_on": null
},
"assignee": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"assignees": [
{
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
],
"state": "open",
"is_locked": false,
"comments": 0,
"created_at": "2021-10-07T05:10:48Z",
"updated_at": "2021-10-07T05:10:48Z",
"closed_at": null,
"due_date": null,
"pull_request": null,
"repository": {
"id": 28315,
"name": "gitea-webhook",
"owner": "jolheiser",
"full_name": "jolheiser/gitea-webhook"
}
},
"repository": {
"id": 28315,
"owner": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"name": "gitea-webhook",
"full_name": "jolheiser/gitea-webhook",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 20,
"html_url": "https://try.gitea.io/jolheiser/gitea-webhook",
"ssh_url": "git@try.gitea.io:jolheiser/gitea-webhook.git",
"clone_url": "https://try.gitea.io/jolheiser/gitea-webhook.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 1,
"watchers_count": 1,
"open_issues_count": 0,
"open_pr_counter": 0,
"release_counter": 1,
"default_branch": "master",
"archived": false,
"created_at": "2021-10-07T05:10:45Z",
"updated_at": "2021-10-07T05:10:48Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": false,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"default_merge_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": ""
},
"sender": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
}
}

370
internal/events/pull_request.json

@ -0,0 +1,370 @@
{
"action": "closed",
"number": 2,
"pull_request": {
"id": 8164,
"url": "https://try.gitea.io/jolheiser/gitea-webhook/pulls/2",
"number": 2,
"user": {
"id": 11280,
"login": "jolheiser",
"full_name": "",
"email": "jolheiser@noreply.try.gitea.io",
"avatar_url": "/avatar/cc498b605dee7b6fb9e6422332691bb4",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2019-02-06T22:20:33Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "F is for friends who do stuff together.",
"visibility": "public",
"followers_count": 0,
"following_count": 1,
"starred_repos_count": -3,
"username": "jolheiser"
},
"title": "Pull Request 1",
"body": "Pull Request Body",
"labels": [
{
"id": 15259,
"name": "bug",
"color": "ee0701",
"description": "Something is not working",
"url": "https://try.gitea.io/api/v1/repos/jolheiser/gitea-webhook/labels/15259"
}
],
"milestone": {
"id": 1542,
"title": "Milestone 1",
"description": "Milestone Description",
"state": "open",
"open_issues": 1,
"closed_issues": 1,
"created_at": "2021-10-07T05:10:46Z",
"updated_at": "2021-10-07T05:10:53Z",
"closed_at": null,
"due_on": null