mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-03 12:43:48 +00:00
Move forge webhook fixtures into own files (#5216)
This commit is contained in:
parent
c86b6e4e23
commit
135c4b2428
37 changed files with 5009 additions and 4984 deletions
87
server/forge/bitbucket/fixtures/HookPull.json
Normal file
87
server/forge/bitbucket/fixtures/HookPull.json
Normal file
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"actor": {
|
||||
"username": "emmap1",
|
||||
"links": {
|
||||
"avatar": {
|
||||
"href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pullrequest": {
|
||||
"id": 1,
|
||||
"title": "Title of pull request",
|
||||
"description": "Description of pull request",
|
||||
"state": "OPEN",
|
||||
"author": {
|
||||
"username": "emmap1",
|
||||
"links": {
|
||||
"avatar": {
|
||||
"href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"source": {
|
||||
"branch": {
|
||||
"name": "branch2"
|
||||
},
|
||||
"commit": {
|
||||
"hash": "d3022fc0ca3d"
|
||||
},
|
||||
"repository": {
|
||||
"links": {
|
||||
"html": {
|
||||
"href": "https://api.bitbucket.org/team_name/repo_name"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
|
||||
}
|
||||
},
|
||||
"full_name": "user_name/repo_name",
|
||||
"scm": "git",
|
||||
"is_private": true
|
||||
}
|
||||
},
|
||||
"destination": {
|
||||
"branch": {
|
||||
"name": "main"
|
||||
},
|
||||
"commit": {
|
||||
"hash": "ce5965ddd289"
|
||||
},
|
||||
"repository": {
|
||||
"links": {
|
||||
"html": {
|
||||
"href": "https://api.bitbucket.org/team_name/repo_name"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
|
||||
}
|
||||
},
|
||||
"full_name": "user_name/repo_name",
|
||||
"scm": "git",
|
||||
"is_private": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/api/2.0/pullrequests/pullrequest_id"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://api.bitbucket.org/pullrequest_id"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"links": {
|
||||
"html": {
|
||||
"href": "https://api.bitbucket.org/team_name/repo_name"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
|
||||
}
|
||||
},
|
||||
"full_name": "user_name/repo_name",
|
||||
"scm": "git",
|
||||
"is_private": true
|
||||
}
|
||||
}
|
271
server/forge/bitbucket/fixtures/HookPullRequestDeclined.json
Normal file
271
server/forge/bitbucket/fixtures/HookPullRequestDeclined.json
Normal file
|
@ -0,0 +1,271 @@
|
|||
{
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "anbraten/test-2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B26554729-595f-47d1-aedd-302625cb4a97%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "test-2",
|
||||
"scm": "git",
|
||||
"website": null,
|
||||
"owner": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"workspace": {
|
||||
"type": "workspace",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"name": "Anbraten",
|
||||
"slug": "anbraten",
|
||||
"links": {
|
||||
"avatar": {
|
||||
"href": "https://bitbucket.org/workspaces/anbraten/avatar/?ts=1651865281"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/"
|
||||
},
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/workspaces/anbraten"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_private": true,
|
||||
"project": {
|
||||
"type": "project",
|
||||
"key": "TEST",
|
||||
"uuid": "{3fa6429f-95e1-4c5a-875c-1753abcd8ace}",
|
||||
"name": "test",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/workspaces/anbraten/projects/TEST"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/workspace/projects/TEST"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bitbucket.org/account/user/anbraten/projects/TEST/avatar/32?ts=1690725373"
|
||||
}
|
||||
}
|
||||
},
|
||||
"uuid": "{26554729-595f-47d1-aedd-302625cb4a97}",
|
||||
"parent": null
|
||||
},
|
||||
"actor": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"pullrequest": {
|
||||
"comment_count": 0,
|
||||
"task_count": 0,
|
||||
"type": "pullrequest",
|
||||
"id": 2,
|
||||
"title": "CHANGELOG.md created online with Bitbucket",
|
||||
"description": "CHANGELOG.md created online with Bitbucket",
|
||||
"rendered": {
|
||||
"title": {
|
||||
"type": "rendered",
|
||||
"raw": "CHANGELOG.md created online with Bitbucket",
|
||||
"markup": "markdown",
|
||||
"html": "<p>CHANGELOG.md created online with Bitbucket</p>"
|
||||
},
|
||||
"description": {
|
||||
"type": "rendered",
|
||||
"raw": "CHANGELOG.md created online with Bitbucket",
|
||||
"markup": "markdown",
|
||||
"html": "<p>CHANGELOG.md created online with Bitbucket</p>"
|
||||
}
|
||||
},
|
||||
"state": "DECLINED",
|
||||
"merge_commit": null,
|
||||
"close_source_branch": false,
|
||||
"closed_by": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"author": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"reason": "",
|
||||
"created_on": "2023-12-05T18:36:27.667680+00:00",
|
||||
"updated_on": "2023-12-05T18:36:57.260672+00:00",
|
||||
"destination": {
|
||||
"branch": {
|
||||
"name": "main"
|
||||
},
|
||||
"commit": {
|
||||
"type": "commit",
|
||||
"hash": "006704dbeab2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/commit/006704dbeab2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/commits/006704dbeab2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "anbraten/test-2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B26554729-595f-47d1-aedd-302625cb4a97%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "test-2",
|
||||
"uuid": "{26554729-595f-47d1-aedd-302625cb4a97}"
|
||||
}
|
||||
},
|
||||
"source": {
|
||||
"branch": {
|
||||
"name": "patch-2"
|
||||
},
|
||||
"commit": {
|
||||
"type": "commit",
|
||||
"hash": "f90e18fc9d45",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/commit/f90e18fc9d45"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/commits/f90e18fc9d45"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "anbraten/test-2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B26554729-595f-47d1-aedd-302625cb4a97%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "test-2",
|
||||
"uuid": "{26554729-595f-47d1-aedd-302625cb4a97}"
|
||||
}
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/pull-requests/2"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/commits"
|
||||
},
|
||||
"approve": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/approve"
|
||||
},
|
||||
"request-changes": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/request-changes"
|
||||
},
|
||||
"diff": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/diff/anbraten/test-2:f90e18fc9d45%0D006704dbeab2?from_pullrequest_id=2&topic=true"
|
||||
},
|
||||
"diffstat": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/diffstat/anbraten/test-2:f90e18fc9d45%0D006704dbeab2?from_pullrequest_id=2&topic=true"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/comments"
|
||||
},
|
||||
"activity": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/activity"
|
||||
},
|
||||
"merge": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/merge"
|
||||
},
|
||||
"decline": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/decline"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/2/statuses"
|
||||
}
|
||||
},
|
||||
"summary": {
|
||||
"type": "rendered",
|
||||
"raw": "CHANGELOG.md created online with Bitbucket",
|
||||
"markup": "markdown",
|
||||
"html": "<p>CHANGELOG.md created online with Bitbucket</p>"
|
||||
}
|
||||
}
|
||||
}
|
308
server/forge/bitbucket/fixtures/HookPullRequestMerged.json
Normal file
308
server/forge/bitbucket/fixtures/HookPullRequestMerged.json
Normal file
|
@ -0,0 +1,308 @@
|
|||
{
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "anbraten/test-2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B26554729-595f-47d1-aedd-302625cb4a97%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "test-2",
|
||||
"scm": "git",
|
||||
"website": null,
|
||||
"owner": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"workspace": {
|
||||
"type": "workspace",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"name": "Anbraten",
|
||||
"slug": "anbraten",
|
||||
"links": {
|
||||
"avatar": {
|
||||
"href": "https://bitbucket.org/workspaces/anbraten/avatar/?ts=1651865281"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/"
|
||||
},
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/workspaces/anbraten"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_private": true,
|
||||
"project": {
|
||||
"type": "project",
|
||||
"key": "TEST",
|
||||
"uuid": "{3fa6429f-95e1-4c5a-875c-1753abcd8ace}",
|
||||
"name": "test",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/workspaces/anbraten/projects/TEST"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/workspace/projects/TEST"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bitbucket.org/account/user/anbraten/projects/TEST/avatar/32?ts=1690725373"
|
||||
}
|
||||
}
|
||||
},
|
||||
"uuid": "{26554729-595f-47d1-aedd-302625cb4a97}",
|
||||
"parent": null
|
||||
},
|
||||
"actor": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"pullrequest": {
|
||||
"comment_count": 0,
|
||||
"task_count": 0,
|
||||
"type": "pullrequest",
|
||||
"id": 1,
|
||||
"title": "README.md created online with Bitbucket",
|
||||
"description": "README.md created online with Bitbucket",
|
||||
"rendered": {
|
||||
"title": {
|
||||
"type": "rendered",
|
||||
"raw": "README.md created online with Bitbucket",
|
||||
"markup": "markdown",
|
||||
"html": "<p>README.md created online with Bitbucket</p>"
|
||||
},
|
||||
"description": {
|
||||
"type": "rendered",
|
||||
"raw": "README.md created online with Bitbucket",
|
||||
"markup": "markdown",
|
||||
"html": "<p>README.md created online with Bitbucket</p>"
|
||||
}
|
||||
},
|
||||
"state": "MERGED",
|
||||
"merge_commit": {
|
||||
"type": "commit",
|
||||
"hash": "006704dbeab2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/commit/006704dbeab2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/commits/006704dbeab2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"close_source_branch": true,
|
||||
"closed_by": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"author": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"reason": "",
|
||||
"created_on": "2023-12-05T18:28:16.861881+00:00",
|
||||
"updated_on": "2023-12-05T18:29:44.785393+00:00",
|
||||
"destination": {
|
||||
"branch": {
|
||||
"name": "main"
|
||||
},
|
||||
"commit": {
|
||||
"type": "commit",
|
||||
"hash": "6c5f0bc9b2aa",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/commit/6c5f0bc9b2aa"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/commits/6c5f0bc9b2aa"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "anbraten/test-2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B26554729-595f-47d1-aedd-302625cb4a97%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "test-2",
|
||||
"uuid": "{26554729-595f-47d1-aedd-302625cb4a97}"
|
||||
}
|
||||
},
|
||||
"source": {
|
||||
"branch": {
|
||||
"name": "patch-2"
|
||||
},
|
||||
"commit": {
|
||||
"type": "commit",
|
||||
"hash": "668218c13e04",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/commit/668218c13e04"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/commits/668218c13e04"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "anbraten/test-2",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B26554729-595f-47d1-aedd-302625cb4a97%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "test-2",
|
||||
"uuid": "{26554729-595f-47d1-aedd-302625cb4a97}"
|
||||
}
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [
|
||||
{
|
||||
"type": "participant",
|
||||
"user": {
|
||||
"display_name": "Anbraten",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e/784add1f-95cc-42a5-a562-38a0e12de4fa/128"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bb1b7beef-77ca-452d-b059-fa092504ebd7%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{b1b7beef-77ca-452d-b059-fa092504ebd7}",
|
||||
"account_id": "70121:3046ad5f-946f-48fa-bcb4-a399eef48f0e",
|
||||
"nickname": "Anbraten"
|
||||
},
|
||||
"role": "PARTICIPANT",
|
||||
"approved": true,
|
||||
"state": "approved",
|
||||
"participated_on": "2023-12-05T18:29:25.611876+00:00"
|
||||
}
|
||||
],
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/anbraten/test-2/pull-requests/1"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/commits"
|
||||
},
|
||||
"approve": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/approve"
|
||||
},
|
||||
"request-changes": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/request-changes"
|
||||
},
|
||||
"diff": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/diff/anbraten/test-2:668218c13e04%0D6c5f0bc9b2aa?from_pullrequest_id=1&topic=true"
|
||||
},
|
||||
"diffstat": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/diffstat/anbraten/test-2:668218c13e04%0D6c5f0bc9b2aa?from_pullrequest_id=1&topic=true"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/comments"
|
||||
},
|
||||
"activity": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/activity"
|
||||
},
|
||||
"merge": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/merge"
|
||||
},
|
||||
"decline": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/decline"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/anbraten/test-2/pullrequests/1/statuses"
|
||||
}
|
||||
},
|
||||
"summary": {
|
||||
"type": "rendered",
|
||||
"raw": "README.md created online with Bitbucket",
|
||||
"markup": "markdown",
|
||||
"html": "<p>README.md created online with Bitbucket</p>"
|
||||
}
|
||||
}
|
||||
}
|
325
server/forge/bitbucket/fixtures/HookPush.json
Normal file
325
server/forge/bitbucket/fixtures/HookPush.json
Normal file
|
@ -0,0 +1,325 @@
|
|||
{
|
||||
"actor": {
|
||||
"display_name": "Martin Herren",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://secure.gravatar.com/avatar/37de364488b2ec474b5458ca86442bbb?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMH-2.png"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{c5a0d676-fd27-4bd4-ac69-a7540d7b495b}",
|
||||
"account_id": "5cf8e3a9678ca90f8e7cc8a8",
|
||||
"nickname": "Martin Herren"
|
||||
},
|
||||
"repository": {
|
||||
"type": "repository",
|
||||
"full_name": "martinherren1984/publictestrepo",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bytebucket.org/ravatar/%7B898477b2-a080-4089-b385-597a783db392%7D?ts=default"
|
||||
}
|
||||
},
|
||||
"name": "PublicTestRepo",
|
||||
"scm": "git",
|
||||
"website": null,
|
||||
"owner": {
|
||||
"display_name": "Martin Herren",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://secure.gravatar.com/avatar/37de364488b2ec474b5458ca86442bbb?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMH-2.png"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{c5a0d676-fd27-4bd4-ac69-a7540d7b495b}",
|
||||
"account_id": "5cf8e3a9678ca90f8e7cc8a8",
|
||||
"nickname": "Martin Herren"
|
||||
},
|
||||
"workspace": {
|
||||
"type": "workspace",
|
||||
"uuid": "{c5a0d676-fd27-4bd4-ac69-a7540d7b495b}",
|
||||
"name": "Martin Herren",
|
||||
"slug": "martinherren1984",
|
||||
"links": {
|
||||
"avatar": {
|
||||
"href": "https://bitbucket.org/workspaces/martinherren1984/avatar/?ts=1658761964"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/"
|
||||
},
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/workspaces/martinherren1984"
|
||||
}
|
||||
}
|
||||
},
|
||||
"is_private": false,
|
||||
"project": {
|
||||
"type": "project",
|
||||
"key": "PUB",
|
||||
"uuid": "{2cede481-f59e-49ec-88d0-a85629b7925d}",
|
||||
"name": "PublicTestProject",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/workspaces/martinherren1984/projects/PUB"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/workspace/projects/PUB"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://bitbucket.org/account/user/martinherren1984/projects/PUB/avatar/32?ts=1658768453"
|
||||
}
|
||||
}
|
||||
},
|
||||
"uuid": "{898477b2-a080-4089-b385-597a783db392}"
|
||||
},
|
||||
"push": {
|
||||
"changes": [
|
||||
{
|
||||
"old": {
|
||||
"name": "main",
|
||||
"target": {
|
||||
"type": "commit",
|
||||
"hash": "a51241ae1f00cbe728930db48e890b18fd527f99",
|
||||
"date": "2022-08-17T15:24:29+00:00",
|
||||
"author": {
|
||||
"type": "author",
|
||||
"raw": "Martin Herren <martin.herren@xxx.com>",
|
||||
"user": {
|
||||
"display_name": "Martin Herren",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7B69cc59f2-706b-4a9c-b99c-eac2ace320da%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://secure.gravatar.com/avatar/7b2e50690b4ab7bb9e1db18ea3b8ae95?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMH-5.png"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7B69cc59f2-706b-4a9c-b99c-eac2ace320da%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{69cc59f2-706b-4a9c-b99c-eac2ace320da}",
|
||||
"account_id": "5d286e857133f10c17e026cb",
|
||||
"nickname": "Martin Herren"
|
||||
}
|
||||
},
|
||||
"message": "Add test .woodpecker.yml\n",
|
||||
"summary": {
|
||||
"type": "rendered",
|
||||
"raw": "Add test .woodpecker.yml\n",
|
||||
"markup": "markdown",
|
||||
"html": "<p>Add test .woodpecker.yml</p>"
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/commits/a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
}
|
||||
},
|
||||
"parents": [],
|
||||
"rendered": {},
|
||||
"properties": {}
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/refs/branches/main"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commits/main"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/branch/main"
|
||||
}
|
||||
},
|
||||
"type": "branch",
|
||||
"merge_strategies": ["merge_commit", "squash", "fast_forward"],
|
||||
"default_merge_strategy": "merge_commit"
|
||||
},
|
||||
"new": {
|
||||
"name": "main",
|
||||
"target": {
|
||||
"type": "commit",
|
||||
"hash": "c14c1bb05dfb1fdcdf06b31485fff61b0ea44277",
|
||||
"date": "2022-09-07T20:19:25+00:00",
|
||||
"author": {
|
||||
"type": "author",
|
||||
"raw": "Martin Herren <martin.herren@yyy.com>",
|
||||
"user": {
|
||||
"display_name": "Martin Herren",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://secure.gravatar.com/avatar/37de364488b2ec474b5458ca86442bbb?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMH-2.png"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{c5a0d676-fd27-4bd4-ac69-a7540d7b495b}",
|
||||
"account_id": "5cf8e3a9678ca90f8e7cc8a8",
|
||||
"nickname": "Martin Herren"
|
||||
}
|
||||
},
|
||||
"message": "a\n",
|
||||
"summary": {
|
||||
"type": "rendered",
|
||||
"raw": "a\n",
|
||||
"markup": "markdown",
|
||||
"html": "<p>a</p>"
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/commits/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277"
|
||||
}
|
||||
},
|
||||
"parents": [
|
||||
{
|
||||
"type": "commit",
|
||||
"hash": "a51241ae1f00cbe728930db48e890b18fd527f99",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/commits/a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"rendered": {},
|
||||
"properties": {}
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/refs/branches/main"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commits/main"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/branch/main"
|
||||
}
|
||||
},
|
||||
"type": "branch",
|
||||
"merge_strategies": ["merge_commit", "squash", "fast_forward"],
|
||||
"default_merge_strategy": "merge_commit"
|
||||
},
|
||||
"truncated": false,
|
||||
"created": false,
|
||||
"forced": false,
|
||||
"closed": false,
|
||||
"links": {
|
||||
"commits": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commits?include=c14c1bb05dfb1fdcdf06b31485fff61b0ea44277&exclude=a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
},
|
||||
"diff": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/diff/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277..a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/branches/compare/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277..a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
}
|
||||
},
|
||||
"commits": [
|
||||
{
|
||||
"type": "commit",
|
||||
"hash": "c14c1bb05dfb1fdcdf06b31485fff61b0ea44277",
|
||||
"date": "2022-09-07T20:19:25+00:00",
|
||||
"author": {
|
||||
"type": "author",
|
||||
"raw": "Martin Herren <martin.herren@yyy.com>",
|
||||
"user": {
|
||||
"display_name": "Martin Herren",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/users/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D"
|
||||
},
|
||||
"avatar": {
|
||||
"href": "https://secure.gravatar.com/avatar/37de364488b2ec474b5458ca86442bbb?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FMH-2.png"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/%7Bc5a0d676-fd27-4bd4-ac69-a7540d7b495b%7D/"
|
||||
}
|
||||
},
|
||||
"type": "user",
|
||||
"uuid": "{c5a0d676-fd27-4bd4-ac69-a7540d7b495b}",
|
||||
"account_id": "5cf8e3a9678ca90f8e7cc8a8",
|
||||
"nickname": "Martin Herren"
|
||||
}
|
||||
},
|
||||
"message": "a\n",
|
||||
"summary": {
|
||||
"type": "rendered",
|
||||
"raw": "a\n",
|
||||
"markup": "markdown",
|
||||
"html": "<p>a</p>"
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/commits/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277"
|
||||
},
|
||||
"diff": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/diff/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277"
|
||||
},
|
||||
"approve": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277/approve"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277/comments"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277/statuses"
|
||||
},
|
||||
"patch": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/patch/c14c1bb05dfb1fdcdf06b31485fff61b0ea44277"
|
||||
}
|
||||
},
|
||||
"parents": [
|
||||
{
|
||||
"type": "commit",
|
||||
"hash": "a51241ae1f00cbe728930db48e890b18fd527f99",
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://api.bitbucket.org/2.0/repositories/martinherren1984/publictestrepo/commit/a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://bitbucket.org/martinherren1984/publictestrepo/commits/a51241ae1f00cbe728930db48e890b18fd527f99"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"rendered": {},
|
||||
"properties": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
58
server/forge/forgejo/fixtures/HookPullRequest.json
Normal file
58
server/forge/forgejo/fixtures/HookPullRequest.json
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"action": "opened",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"html_url": "http://forgejo.golang.org/gordon/hello-world/pull/1",
|
||||
"state": "open",
|
||||
"title": "Update the README with new information",
|
||||
"body": "please merge",
|
||||
"user": {
|
||||
"id": 1,
|
||||
"username": "gordon",
|
||||
"login": "gordon",
|
||||
"full_name": "Gordon the Gopher",
|
||||
"email": "gordon@golang.org",
|
||||
"avatar_url": "http://forgejo.golang.org///1.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
|
||||
},
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "9353195a19e45482665306e466c832c46560532d"
|
||||
},
|
||||
"head": {
|
||||
"label": "feature/changes",
|
||||
"ref": "feature/changes",
|
||||
"sha": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"id": 35129377,
|
||||
"name": "hello-world",
|
||||
"full_name": "gordon/hello-world",
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"username": "gordon",
|
||||
"login": "gordon",
|
||||
"full_name": "Gordon the Gopher",
|
||||
"email": "gordon@golang.org",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
|
||||
},
|
||||
"private": true,
|
||||
"html_url": "http://forgejo.golang.org/gordon/hello-world",
|
||||
"clone_url": "https://forgejo.golang.org/gordon/hello-world.git",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
}
|
||||
},
|
||||
"sender": {
|
||||
"id": 1,
|
||||
"login": "gordon",
|
||||
"username": "gordon",
|
||||
"full_name": "Gordon the Gopher",
|
||||
"email": "gordon@golang.org",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
|
||||
}
|
||||
}
|
356
server/forge/forgejo/fixtures/HookPullRequestClosed.json
Normal file
356
server/forge/forgejo/fixtures/HookPullRequestClosed.json
Normal file
|
@ -0,0 +1,356 @@
|
|||
{
|
||||
"action": "closed",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"id": 62112,
|
||||
"url": "https://forgejo.com/anbraten/test-repo/pulls/1",
|
||||
"number": 1,
|
||||
"user": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"title": "Adjust file",
|
||||
"body": "",
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"assignee": null,
|
||||
"assignees": null,
|
||||
"requested_reviewers": null,
|
||||
"state": "closed",
|
||||
"is_locked": false,
|
||||
"comments": 0,
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo/pulls/1",
|
||||
"diff_url": "https://forgejo.com/anbraten/test-repo/pulls/1.diff",
|
||||
"patch_url": "https://forgejo.com/anbraten/test-repo/pulls/1.patch",
|
||||
"mergeable": true,
|
||||
"merged": false,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": null,
|
||||
"merged_by": null,
|
||||
"allow_maintainer_edit": false,
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "068aee163ffd44eef28a7f9ebd43e2c01774f0fa",
|
||||
"repo_id": 46534,
|
||||
"repo": {
|
||||
"id": 46534,
|
||||
"owner": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "test-repo",
|
||||
"full_name": "anbraten/test-repo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "https://forgejo.com/api/v1/repos/anbraten/test-repo/languages",
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo",
|
||||
"url": "https://forgejo.com/api/v1/repos/anbraten/test-repo",
|
||||
"link": "",
|
||||
"ssh_url": "git@forgejo.com:anbraten/test-repo.git",
|
||||
"clone_url": "https://forgejo.com/anbraten/test-repo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-12-05T18:03:55Z",
|
||||
"updated_at": "2023-12-05T18:06:29Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"has_releases": true,
|
||||
"has_packages": false,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_rebase_update": true,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_allow_maintainer_edit": false,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
}
|
||||
},
|
||||
"head": {
|
||||
"label": "anbraten-patch-1",
|
||||
"ref": "anbraten-patch-1",
|
||||
"sha": "d555a5dd07f4d0148a58d4686ec381502ae6a2d4",
|
||||
"repo_id": 46534,
|
||||
"repo": {
|
||||
"id": 46534,
|
||||
"owner": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "test-repo",
|
||||
"full_name": "anbraten/test-repo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "https://forgejo.com/api/v1/repos/anbraten/test-repo/languages",
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo",
|
||||
"url": "https://forgejo.com/api/v1/repos/anbraten/test-repo",
|
||||
"link": "",
|
||||
"ssh_url": "git@forgejo.com:anbraten/test-repo.git",
|
||||
"clone_url": "https://forgejo.com/anbraten/test-repo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-12-05T18:03:55Z",
|
||||
"updated_at": "2023-12-05T18:06:29Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"has_releases": true,
|
||||
"has_packages": false,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_rebase_update": true,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_allow_maintainer_edit": false,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
}
|
||||
},
|
||||
"merge_base": "068aee163ffd44eef28a7f9ebd43e2c01774f0fa",
|
||||
"due_date": null,
|
||||
"created_at": "2023-12-05T18:06:38Z",
|
||||
"updated_at": "2023-12-05T18:06:43Z",
|
||||
"closed_at": "2023-12-05T18:06:43Z",
|
||||
"pin_order": 0
|
||||
},
|
||||
"requested_reviewer": null,
|
||||
"repository": {
|
||||
"id": 46534,
|
||||
"owner": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@repo.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "test-repo",
|
||||
"full_name": "anbraten/test-repo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "https://forgejo.com/api/v1/repos/anbraten/test-repo/languages",
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo",
|
||||
"url": "https://forgejo.com/api/v1/repos/anbraten/test-repo",
|
||||
"link": "",
|
||||
"ssh_url": "git@forgejo.com:anbraten/test-repo.git",
|
||||
"clone_url": "https://forgejo.com/anbraten/test-repo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-12-05T18:03:55Z",
|
||||
"updated_at": "2023-12-05T18:06:29Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"has_releases": true,
|
||||
"has_packages": false,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_rebase_update": true,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_allow_maintainer_edit": false,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
},
|
||||
"sender": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@sender.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"commit_id": "",
|
||||
"review": null
|
||||
}
|
378
server/forge/forgejo/fixtures/HookPullRequestMerged.json
Normal file
378
server/forge/forgejo/fixtures/HookPullRequestMerged.json
Normal file
|
@ -0,0 +1,378 @@
|
|||
{
|
||||
"action": "closed",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"id": 62112,
|
||||
"url": "https://forgejo.com/anbraten/test-repo/pulls/1",
|
||||
"number": 1,
|
||||
"user": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"title": "Adjust file",
|
||||
"body": "",
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"assignee": null,
|
||||
"assignees": null,
|
||||
"requested_reviewers": null,
|
||||
"state": "closed",
|
||||
"is_locked": false,
|
||||
"comments": 1,
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo/pulls/1",
|
||||
"diff_url": "https://forgejo.com/anbraten/test-repo/pulls/1.diff",
|
||||
"patch_url": "https://forgejo.com/anbraten/test-repo/pulls/1.patch",
|
||||
"mergeable": true,
|
||||
"merged": true,
|
||||
"merged_at": "2023-12-05T18:35:31Z",
|
||||
"merge_commit_sha": "f2440f050054df0f8ecabcace648f1683509064c",
|
||||
"merged_by": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"allow_maintainer_edit": false,
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "f2440f050054df0f8ecabcace648f1683509064c",
|
||||
"repo_id": 46534,
|
||||
"repo": {
|
||||
"id": 46534,
|
||||
"owner": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "test-repo",
|
||||
"full_name": "anbraten/test-repo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "https://forgejo.com/api/v1/repos/anbraten/test-repo/languages",
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo",
|
||||
"url": "https://forgejo.com/api/v1/repos/anbraten/test-repo",
|
||||
"link": "",
|
||||
"ssh_url": "git@forgejo.com:anbraten/test-repo.git",
|
||||
"clone_url": "https://forgejo.com/anbraten/test-repo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-12-05T18:03:55Z",
|
||||
"updated_at": "2023-12-05T18:06:29Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"has_releases": true,
|
||||
"has_packages": false,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_rebase_update": true,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_allow_maintainer_edit": false,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
}
|
||||
},
|
||||
"head": {
|
||||
"label": "anbraten-patch-1",
|
||||
"ref": "anbraten-patch-1",
|
||||
"sha": "d555a5dd07f4d0148a58d4686ec381502ae6a2d4",
|
||||
"repo_id": 46534,
|
||||
"repo": {
|
||||
"id": 46534,
|
||||
"owner": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "test-repo",
|
||||
"full_name": "anbraten/test-repo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "https://forgejo.com/api/v1/repos/anbraten/test-repo/languages",
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo",
|
||||
"url": "https://forgejo.com/api/v1/repos/anbraten/test-repo",
|
||||
"link": "",
|
||||
"ssh_url": "git@forgejo.com:anbraten/test-repo.git",
|
||||
"clone_url": "https://forgejo.com/anbraten/test-repo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-12-05T18:03:55Z",
|
||||
"updated_at": "2023-12-05T18:06:29Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"has_releases": true,
|
||||
"has_packages": false,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_rebase_update": true,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_allow_maintainer_edit": false,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
}
|
||||
},
|
||||
"merge_base": "068aee163ffd44eef28a7f9ebd43e2c01774f0fa",
|
||||
"due_date": null,
|
||||
"created_at": "2023-12-05T18:06:38Z",
|
||||
"updated_at": "2023-12-05T18:35:31Z",
|
||||
"closed_at": "2023-12-05T18:35:31Z",
|
||||
"pin_order": 0
|
||||
},
|
||||
"requested_reviewer": null,
|
||||
"repository": {
|
||||
"id": 46534,
|
||||
"owner": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "test-repo",
|
||||
"full_name": "anbraten/test-repo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 26,
|
||||
"language": "",
|
||||
"languages_url": "https://forgejo.com/api/v1/repos/anbraten/test-repo/languages",
|
||||
"html_url": "https://forgejo.com/anbraten/test-repo",
|
||||
"url": "https://forgejo.com/api/v1/repos/anbraten/test-repo",
|
||||
"link": "",
|
||||
"ssh_url": "git@forgejo.com:anbraten/test-repo.git",
|
||||
"clone_url": "https://forgejo.com/anbraten/test-repo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 1,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-12-05T18:03:55Z",
|
||||
"updated_at": "2023-12-05T18:06:29Z",
|
||||
"archived_at": "1970-01-01T00:00:00Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"has_releases": true,
|
||||
"has_packages": false,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_rebase_update": true,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_allow_maintainer_edit": false,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
},
|
||||
"sender": {
|
||||
"id": 26907,
|
||||
"login": "anbraten",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "anbraten@noreply.forgejo.com",
|
||||
"avatar_url": "https://seccdn.libravatar.org/avatar/fc9b6fe77c6b732a02925a62a81f05a0?d=identicon",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2021-07-19T23:21:52Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"commit_id": "",
|
||||
"review": null
|
||||
}
|
137
server/forge/forgejo/fixtures/HookPullRequestUpdated.json
Normal file
137
server/forge/forgejo/fixtures/HookPullRequestUpdated.json
Normal file
|
@ -0,0 +1,137 @@
|
|||
{
|
||||
"action": "synchronized",
|
||||
"number": 2,
|
||||
"pull_request": {
|
||||
"id": 2,
|
||||
"url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/pulls/2",
|
||||
"number": 2,
|
||||
"user": {
|
||||
"id": 1,
|
||||
"login": "test",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "test@noreply.localhost",
|
||||
"avatar_url": "http://127.0.0.1:3000/avatars/dd46a756faad4727fb679320751f6dea",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2023-07-31T19:13:05+02:00",
|
||||
"visibility": "public",
|
||||
"username": "test"
|
||||
},
|
||||
"title": "New Pull",
|
||||
"body": "create an awesome pull",
|
||||
"labels": [
|
||||
{
|
||||
"id": 8,
|
||||
"name": "Kind/Bug",
|
||||
"exclusive": false,
|
||||
"is_archived": false,
|
||||
"color": "ee0701",
|
||||
"description": "Something is not working",
|
||||
"url": "http://100.106.226.9:3000/api/v1/repos/Test-CI/multi-line-secrets/labels/8"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "Kind/Security",
|
||||
"exclusive": false,
|
||||
"is_archived": false,
|
||||
"color": "9c27b0",
|
||||
"description": "This is security issue",
|
||||
"url": "http://100.106.226.9:3000/api/v1/repos/Test-CI/multi-line-secrets/labels/11"
|
||||
}
|
||||
],
|
||||
"milestone": null,
|
||||
"assignees": null,
|
||||
"requested_reviewers": null,
|
||||
"state": "open",
|
||||
"is_locked": false,
|
||||
"html_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/pulls/2",
|
||||
"diff_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/pulls/2.diff",
|
||||
"patch_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/pulls/2.patch",
|
||||
"mergeable": true,
|
||||
"merged": false,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": null,
|
||||
"merged_by": null,
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"repo_id": 6
|
||||
},
|
||||
"head": {
|
||||
"label": "test-patch-1",
|
||||
"ref": "test-patch-1",
|
||||
"sha": "788ed8d02d3b7fcfcf6386dbcbca696aa1d4dc25",
|
||||
"repo_id": 6
|
||||
},
|
||||
"merge_base": "29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"due_date": null,
|
||||
"created_at": "2024-02-22T01:38:39+01:00",
|
||||
"updated_at": "2024-02-22T01:42:03+01:00",
|
||||
"closed_at": null,
|
||||
"pin_order": 0
|
||||
},
|
||||
"requested_reviewer": null,
|
||||
"repository": {
|
||||
"id": 6,
|
||||
"owner": {
|
||||
"id": 2,
|
||||
"login": "Test-CI",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "",
|
||||
"avatar_url": "http://127.0.0.1:3000/avatars/5b0a83c2185b3cb1ebceb11062d6c2eb",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2023-07-31T19:13:48+02:00",
|
||||
"prohibit_login": false,
|
||||
"visibility": "public",
|
||||
"username": "Test-CI"
|
||||
},
|
||||
"name": "multi-line-secrets",
|
||||
"full_name": "Test-CI/multi-line-secrets",
|
||||
"description": "",
|
||||
"private": false,
|
||||
"languages_url": "http://127.0.0.1:3000/api/v1/repos/Test-CI/multi-line-secrets/languages",
|
||||
"html_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets",
|
||||
"url": "http://127.0.0.1:3000/api/v1/repos/Test-CI/multi-line-secrets",
|
||||
"link": "",
|
||||
"ssh_url": "ssh://git@127.0.0.1:2200/Test-CI/multi-line-secrets.git",
|
||||
"clone_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets.git",
|
||||
"original_url": "",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_pull_requests": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": ""
|
||||
},
|
||||
"sender": {
|
||||
"id": 1,
|
||||
"login": "test",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "test@noreply.localhost",
|
||||
"avatar_url": "http://127.0.0.1:3000/avatars/dd46a756faad4727fb679320751f6dea",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2023-07-31T19:13:05+02:00",
|
||||
"visibility": "public",
|
||||
"username": "test"
|
||||
},
|
||||
"commit_id": "",
|
||||
"review": null
|
||||
}
|
57
server/forge/forgejo/fixtures/HookPush.json
Normal file
57
server/forge/forgejo/fixtures/HookPush.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"ref": "refs/heads/main",
|
||||
"before": "4b2626259b5a97b6b4eab5e6cca66adb986b672b",
|
||||
"after": "ef98532add3b2feb7a137426bba1248724367df5",
|
||||
"compare_url": "http://forgejo.golang.org/gordon/hello-world/compare/4b2626259b5a97b6b4eab5e6cca66adb986b672b...ef98532add3b2feb7a137426bba1248724367df5",
|
||||
"commits": [
|
||||
{
|
||||
"id": "ef98532add3b2feb7a137426bba1248724367df5",
|
||||
"message": "bump\n",
|
||||
"url": "http://forgejo.golang.org/gordon/hello-world/commit/ef98532add3b2feb7a137426bba1248724367df5",
|
||||
"author": {
|
||||
"name": "Gordon the Gopher",
|
||||
"email": "gordon@golang.org",
|
||||
"username": "gordon"
|
||||
},
|
||||
"added": ["CHANGELOG.md"],
|
||||
"removed": [],
|
||||
"modified": ["app/controller/application.rb"]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"id": 1,
|
||||
"name": "hello-world",
|
||||
"full_name": "gordon/hello-world",
|
||||
"html_url": "http://forgejo.golang.org/gordon/hello-world",
|
||||
"ssh_url": "git@forgejo.golang.org:gordon/hello-world.git",
|
||||
"clone_url": "http://forgejo.golang.org/gordon/hello-world.git",
|
||||
"description": "",
|
||||
"website": "",
|
||||
"watchers": 1,
|
||||
"owner": {
|
||||
"name": "gordon",
|
||||
"email": "gordon@golang.org",
|
||||
"login": "gordon",
|
||||
"username": "gordon"
|
||||
},
|
||||
"private": true,
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
}
|
||||
},
|
||||
"pusher": {
|
||||
"name": "gordon",
|
||||
"email": "gordon@golang.org",
|
||||
"username": "gordon",
|
||||
"login": "gordon"
|
||||
},
|
||||
"sender": {
|
||||
"login": "gordon",
|
||||
"id": 1,
|
||||
"username": "gordon",
|
||||
"email": "gordon@golang.org",
|
||||
"avatar_url": "http://forgejo.golang.org///1.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
|
||||
}
|
||||
}
|
148
server/forge/forgejo/fixtures/HookPushBranch.json
Normal file
148
server/forge/forgejo/fixtures/HookPushBranch.json
Normal file
|
@ -0,0 +1,148 @@
|
|||
{
|
||||
"ref": "refs/heads/fdsafdsa",
|
||||
"before": "0000000000000000000000000000000000000000",
|
||||
"after": "28c3613ae62640216bea5e7dc71aa65356e4298b",
|
||||
"compare_url": "https://codeberg.org/meisam/woodpecktester/compare/main...28c3613ae62640216bea5e7dc71aa65356e4298b",
|
||||
"commits": [],
|
||||
"head_commit": {
|
||||
"id": "28c3613ae62640216bea5e7dc71aa65356e4298b",
|
||||
"message": "Delete '.woodpecker/.check.yml'\n",
|
||||
"url": "https://codeberg.org/meisam/woodpecktester/commit/28c3613ae62640216bea5e7dc71aa65356e4298b",
|
||||
"author": {
|
||||
"name": "meisam",
|
||||
"email": "meisam@noreply.codeberg.org",
|
||||
"username": "meisam"
|
||||
},
|
||||
"committer": {
|
||||
"name": "meisam",
|
||||
"email": "meisam@noreply.codeberg.org",
|
||||
"username": "meisam"
|
||||
},
|
||||
"verification": null,
|
||||
"timestamp": "2022-07-12T21:09:27+02:00",
|
||||
"added": [],
|
||||
"removed": [".woodpecker/.check.yml"],
|
||||
"modified": []
|
||||
},
|
||||
"repository": {
|
||||
"id": 50820,
|
||||
"owner": {
|
||||
"id": 14844,
|
||||
"login": "meisam",
|
||||
"full_name": "",
|
||||
"email": "meisam@noreply.codeberg.org",
|
||||
"avatar_url": "https://codeberg.org/avatars/96512da76a14cf44e0bb32d1640e878e",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2020-10-08T11:19:12+02:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "Materials engineer, physics enthusiast, large collection of the bad programming habits, always happy to fix the old ones and make new mistakes!",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "meisam",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
}
|
||||
},
|
||||
"name": "woodpecktester",
|
||||
"full_name": "meisam/woodpecktester",
|
||||
"description": "Just for testing the Woodpecker CI and reporting bugs",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 367,
|
||||
"language": "",
|
||||
"languages_url": "https://codeberg.org/api/v1/repos/meisam/woodpecktester/languages",
|
||||
"html_url": "https://codeberg.org/meisam/woodpecktester",
|
||||
"ssh_url": "git@codeberg.org:meisam/woodpecktester.git",
|
||||
"clone_url": "https://codeberg.org/meisam/woodpecktester.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": "main",
|
||||
"archived": false,
|
||||
"created_at": "2022-07-04T00:34:39+02:00",
|
||||
"updated_at": "2022-07-24T20:31:29+02:00",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"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_updated": "0001-01-01T00:00:00Z",
|
||||
"repo_transfer": null
|
||||
},
|
||||
"pusher": {
|
||||
"id": 2628,
|
||||
"login": "6543",
|
||||
"full_name": "",
|
||||
"email": "6543@obermui.de",
|
||||
"avatar_url": "https://codeberg.org/avatars/09a234c768cb9bca78f6b2f82d6af173",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2019-10-12T05:05:49+02:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 22,
|
||||
"following_count": 16,
|
||||
"starred_repos_count": 55,
|
||||
"username": "6543"
|
||||
},
|
||||
"sender": {
|
||||
"id": 2628,
|
||||
"login": "6543",
|
||||
"full_name": "",
|
||||
"email": "6543@obermui.de",
|
||||
"avatar_url": "https://codeberg.org/avatars/09a234c768cb9bca78f6b2f82d6af173",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2019-10-12T05:05:49+02:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"visibility": "public",
|
||||
"followers_count": 22,
|
||||
"following_count": 16,
|
||||
"starred_repos_count": 55,
|
||||
"username": "6543"
|
||||
}
|
||||
}
|
184
server/forge/forgejo/fixtures/HookPushMulti.json
Normal file
184
server/forge/forgejo/fixtures/HookPushMulti.json
Normal file
|
@ -0,0 +1,184 @@
|
|||
{
|
||||
"ref": "refs/heads/main",
|
||||
"before": "6efcf5b7c98f3e7a491675164b7a2e7acac27941",
|
||||
"after": "29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"compare_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/compare/6efcf5b7c98f3e7a491675164b7a2e7acac27941...29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"commits": [
|
||||
{
|
||||
"id": "29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"message": "add some text\n",
|
||||
"url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/commit/29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"author": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"committer": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"verification": null,
|
||||
"timestamp": "2024-02-22T00:18:07+01:00",
|
||||
"added": [],
|
||||
"removed": [],
|
||||
"modified": ["aaa"]
|
||||
},
|
||||
{
|
||||
"id": "29cd95250404bd007c13b03eabe521196bab98a5",
|
||||
"message": "rm a a file\n",
|
||||
"url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/commit/29cd95250404bd007c13b03eabe521196bab98a5",
|
||||
"author": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"committer": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"verification": null,
|
||||
"timestamp": "2024-02-22T00:17:49+01:00",
|
||||
"added": [],
|
||||
"removed": ["aa"],
|
||||
"modified": []
|
||||
},
|
||||
{
|
||||
"id": "93787b87b3134d0d62c7a24c1ea5b1b6fd17ca91",
|
||||
"message": "add some a files\n",
|
||||
"url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/commit/93787b87b3134d0d62c7a24c1ea5b1b6fd17ca91",
|
||||
"author": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"committer": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"verification": null,
|
||||
"timestamp": "2024-02-22T00:17:33+01:00",
|
||||
"added": ["aa", "aaa"],
|
||||
"removed": [],
|
||||
"modified": []
|
||||
}
|
||||
],
|
||||
"total_commits": 3,
|
||||
"head_commit": {
|
||||
"id": "29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"message": "add some text\n",
|
||||
"url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets/commit/29be01c073851cf0db0c6a466e396b725a670453",
|
||||
"author": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"committer": {
|
||||
"name": "6543",
|
||||
"email": "6543@obermui.de",
|
||||
"username": "test-user"
|
||||
},
|
||||
"verification": null,
|
||||
"timestamp": "2024-02-22T00:18:07+01:00",
|
||||
"added": [],
|
||||
"removed": [],
|
||||
"modified": ["aaa"]
|
||||
},
|
||||
"repository": {
|
||||
"id": 6,
|
||||
"owner": {
|
||||
"id": 2,
|
||||
"login": "Test-CI",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "",
|
||||
"avatar_url": "http://127.0.0.1:3000/avatars/5b0a83c2185b3cb1ebceb11062d6c2eb",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2023-07-31T19:13:48+02:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 0,
|
||||
"username": "Test-CI"
|
||||
},
|
||||
"name": "multi-line-secrets",
|
||||
"full_name": "Test-CI/multi-line-secrets",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 35,
|
||||
"language": "",
|
||||
"languages_url": "http://127.0.0.1:3000/api/v1/repos/Test-CI/multi-line-secrets/languages",
|
||||
"html_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets",
|
||||
"url": "http://127.0.0.1:3000/api/v1/repos/Test-CI/multi-line-secrets",
|
||||
"link": "",
|
||||
"ssh_url": "ssh://git@127.0.0.1:2200/Test-CI/multi-line-secrets.git",
|
||||
"clone_url": "http://127.0.0.1:3000/Test-CI/multi-line-secrets.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"watchers_count": 2,
|
||||
"open_issues_count": 1,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2023-10-31T19:53:15+01:00",
|
||||
"updated_at": "2023-11-02T06:16:34+01:00",
|
||||
"archived_at": "1970-01-01T01:00:00+01:00",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"avatar_url": "",
|
||||
"object_format_name": ""
|
||||
},
|
||||
"pusher": {
|
||||
"id": 1,
|
||||
"login": "test-user",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "test@noreply.localhost",
|
||||
"avatar_url": "http://127.0.0.1:3000/avatars/dd46a756faad4727fb679320751f6dea",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2023-07-31T19:13:05+02:00",
|
||||
"prohibit_login": false,
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"username": "test-user"
|
||||
},
|
||||
"sender": {
|
||||
"id": 1,
|
||||
"login": "test-user",
|
||||
"login_name": "",
|
||||
"full_name": "",
|
||||
"email": "test@noreply.localhost",
|
||||
"avatar_url": "http://127.0.0.1:3000/avatars/dd46a756faad4727fb679320751f6dea",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2023-07-31T19:13:05+02:00",
|
||||
"prohibit_login": false,
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"username": "test-user"
|
||||
}
|
||||
}
|
136
server/forge/forgejo/fixtures/HookRelease.json
Normal file
136
server/forge/forgejo/fixtures/HookRelease.json
Normal file
|
@ -0,0 +1,136 @@
|
|||
{
|
||||
"action": "published",
|
||||
"release": {
|
||||
"id": 48,
|
||||
"tag_name": "0.0.5",
|
||||
"target_commitish": "main",
|
||||
"name": "Version 0.0.5",
|
||||
"body": "",
|
||||
"url": "https://git.xxx/api/v1/repos/anbraten/demo/releases/48",
|
||||
"html_url": "https://git.xxx/anbraten/demo/releases/tag/0.0.5",
|
||||
"tarball_url": "https://git.xxx/anbraten/demo/archive/0.0.5.tar.gz",
|
||||
"zipball_url": "https://git.xxx/anbraten/demo/archive/0.0.5.zip",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
"created_at": "2022-02-09T20:23:05Z",
|
||||
"published_at": "2022-02-09T20:23:05Z",
|
||||
"author": {
|
||||
"id": 1,
|
||||
"login": "anbraten",
|
||||
"full_name": "Anton Bracke",
|
||||
"email": "anbraten@noreply.xxx",
|
||||
"avatar_url": "https://git.xxx/user/avatar/anbraten/-1",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2018-03-21T10:04:48Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "world",
|
||||
"website": "https://xxx",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 1,
|
||||
"following_count": 1,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"assets": []
|
||||
},
|
||||
"repository": {
|
||||
"id": 77,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "anbraten",
|
||||
"full_name": "Anton Bracke",
|
||||
"email": "anbraten@noreply.xxx",
|
||||
"avatar_url": "https://git.xxx/user/avatar/anbraten/-1",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2018-03-21T10:04:48Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "world",
|
||||
"website": "https://xxx",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 1,
|
||||
"following_count": 1,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
},
|
||||
"name": "demo",
|
||||
"full_name": "anbraten/demo",
|
||||
"description": "",
|
||||
"empty": false,
|
||||
"private": true,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"parent": null,
|
||||
"mirror": false,
|
||||
"size": 59,
|
||||
"html_url": "https://git.xxx/anbraten/demo",
|
||||
"ssh_url": "ssh://git@git.xxx:22/anbraten/demo.git",
|
||||
"clone_url": "https://git.xxx/anbraten/demo.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 1,
|
||||
"watchers_count": 1,
|
||||
"open_issues_count": 2,
|
||||
"open_pr_counter": 2,
|
||||
"release_counter": 4,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2021-08-30T20:54:13Z",
|
||||
"updated_at": "2022-01-09T01:29:23Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": false,
|
||||
"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": "squash",
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": ""
|
||||
},
|
||||
"sender": {
|
||||
"id": 1,
|
||||
"login": "anbraten",
|
||||
"full_name": "Anbraten",
|
||||
"email": "anbraten@noreply.xxx",
|
||||
"avatar_url": "https://git.xxx/user/avatar/anbraten/-1",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2018-03-21T10:04:48Z",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "World",
|
||||
"website": "https://xxx",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 1,
|
||||
"following_count": 1,
|
||||
"starred_repos_count": 1,
|
||||
"username": "anbraten"
|
||||
}
|
||||
}
|
41
server/forge/forgejo/fixtures/HookTag.json
Normal file
41
server/forge/forgejo/fixtures/HookTag.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"sha": "ef98532add3b2feb7a137426bba1248724367df5",
|
||||
"secret": "l26Un7G7HXogLAvsyf2hOA4EMARSTsR3",
|
||||
"ref": "v1.0.0",
|
||||
"ref_type": "tag",
|
||||
"repository": {
|
||||
"id": 12,
|
||||
"owner": {
|
||||
"id": 4,
|
||||
"username": "gordon",
|
||||
"login": "gordon",
|
||||
"full_name": "Gordon the Gopher",
|
||||
"email": "gordon@golang.org",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
|
||||
},
|
||||
"name": "hello-world",
|
||||
"full_name": "gordon/hello-world",
|
||||
"description": "a hello world example",
|
||||
"private": true,
|
||||
"fork": false,
|
||||
"html_url": "http://forgejo.golang.org/gordon/hello-world",
|
||||
"ssh_url": "git@forgejo.golang.org:gordon/hello-world.git",
|
||||
"clone_url": "http://forgejo.golang.org/gordon/hello-world.git",
|
||||
"default_branch": "main",
|
||||
"created_at": "2015-10-22T19:32:44Z",
|
||||
"updated_at": "2016-11-24T13:37:16Z",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
}
|
||||
},
|
||||
"sender": {
|
||||
"id": 1,
|
||||
"username": "gordon",
|
||||
"login": "gordon",
|
||||
"full_name": "Gordon the Gopher",
|
||||
"email": "gordon@golang.org",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87"
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
33
server/forge/github/fixtures/HookDeploy.json
Normal file
33
server/forge/github/fixtures/HookDeploy.json
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"deployment": {
|
||||
"url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments/710692",
|
||||
"id": 710692,
|
||||
"sha": "9049f1265b7d61be4a8904a9a27120d2064dab3b",
|
||||
"ref": "main",
|
||||
"task": "deploy",
|
||||
"payload": {},
|
||||
"environment": "production",
|
||||
"description": null,
|
||||
"creator": {
|
||||
"login": "baxterthehacker",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"id": 35129377,
|
||||
"name": "public-repo",
|
||||
"full_name": "baxterthehacker/public-repo",
|
||||
"owner": {
|
||||
"login": "baxterthehacker",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3"
|
||||
},
|
||||
"private": true,
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||
"default_branch": "main"
|
||||
},
|
||||
"sender": {
|
||||
"login": "baxterthehacker",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3"
|
||||
}
|
||||
}
|
42
server/forge/github/fixtures/HookPullRequest.json
Normal file
42
server/forge/github/fixtures/HookPullRequest.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"action": "opened",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1",
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo/pull/1",
|
||||
"number": 1,
|
||||
"state": "open",
|
||||
"title": "Update the README with new information",
|
||||
"user": {
|
||||
"login": "baxterthehacker",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3"
|
||||
},
|
||||
"base": {
|
||||
"label": "baxterthehacker:main",
|
||||
"ref": "main",
|
||||
"sha": "9353195a19e45482665306e466c832c46560532d"
|
||||
},
|
||||
"head": {
|
||||
"label": "baxterthehacker:changes",
|
||||
"ref": "changes",
|
||||
"sha": "0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"id": 35129377,
|
||||
"name": "public-repo",
|
||||
"full_name": "baxterthehacker/public-repo",
|
||||
"owner": {
|
||||
"login": "baxterthehacker",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3"
|
||||
},
|
||||
"private": true,
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||
"default_branch": "main"
|
||||
},
|
||||
"sender": {
|
||||
"login": "octocat",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6752317?v=3"
|
||||
}
|
||||
}
|
506
server/forge/github/fixtures/HookPullRequestClosed.json
Normal file
506
server/forge/github/fixtures/HookPullRequestClosed.json
Normal file
|
@ -0,0 +1,506 @@
|
|||
{
|
||||
"action": "closed",
|
||||
"number": 62,
|
||||
"pull_request": {
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62",
|
||||
"id": 1630965956,
|
||||
"node_id": "PR_kwDOIl-VNc5hNpDE",
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go/pull/62",
|
||||
"diff_url": "https://github.com/anbraten/test-ready-release-go/pull/62.diff",
|
||||
"patch_url": "https://github.com/anbraten/test-ready-release-go/pull/62.patch",
|
||||
"issue_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62",
|
||||
"number": 62,
|
||||
"state": "closed",
|
||||
"locked": false,
|
||||
"title": "Change file",
|
||||
"user": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"body": null,
|
||||
"created_at": "2023-12-05T18:13:16Z",
|
||||
"updated_at": "2023-12-05T18:14:13Z",
|
||||
"closed_at": "2023-12-05T18:14:13Z",
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": "79fd3b2a13c462ef9b3169b9dee9cb39605fda1b",
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"requested_reviewers": [],
|
||||
"requested_teams": [],
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/comments{/number}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62/comments",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/c88b9ee719285134957cbc698c9b7ef9b78007bf",
|
||||
"head": {
|
||||
"label": "anbraten:anbraten-patch-3",
|
||||
"ref": "anbraten-patch-3",
|
||||
"sha": "c88b9ee719285134957cbc698c9b7ef9b78007bf",
|
||||
"user": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 576689461,
|
||||
"node_id": "R_kgDOIl-VNQ",
|
||||
"name": "test-ready-release-go",
|
||||
"full_name": "anbraten/test-ready-release-go",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go",
|
||||
"forks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/forks",
|
||||
"keys_url": "https://api.github.com/repos/anbraten/test-ready-release-go/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/anbraten/test-ready-release-go/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/anbraten/test-ready-release-go/teams",
|
||||
"hooks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/events",
|
||||
"assignees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/anbraten/test-ready-release-go/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/tags",
|
||||
"blobs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/anbraten/test-ready-release-go/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscription",
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/anbraten/test-ready-release-go/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/anbraten/test-ready-release-go/merges",
|
||||
"archive_url": "https://api.github.com/repos/anbraten/test-ready-release-go/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/anbraten/test-ready-release-go/downloads",
|
||||
"issues_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/anbraten/test-ready-release-go/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/anbraten/test-ready-release-go/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/anbraten/test-ready-release-go/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/anbraten/test-ready-release-go/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/deployments",
|
||||
"created_at": "2022-12-10T16:59:42Z",
|
||||
"updated_at": "2023-07-11T17:00:26Z",
|
||||
"pushed_at": "2023-12-05T18:13:17Z",
|
||||
"git_url": "git://github.com/anbraten/test-ready-release-go.git",
|
||||
"ssh_url": "git@github.com:anbraten/test-ready-release-go.git",
|
||||
"clone_url": "https://github.com/anbraten/test-ready-release-go.git",
|
||||
"svn_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"homepage": null,
|
||||
"size": 11198,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"allow_auto_merge": false,
|
||||
"delete_branch_on_merge": false,
|
||||
"allow_update_branch": false,
|
||||
"use_squash_pr_title_as_default": false,
|
||||
"squash_merge_commit_message": "COMMIT_MESSAGES",
|
||||
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
|
||||
"merge_commit_message": "PR_TITLE",
|
||||
"merge_commit_title": "MERGE_MESSAGE"
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "anbraten:main",
|
||||
"ref": "main",
|
||||
"sha": "26fd46e0d1237cdabfe84ec6a0f37466fc716952",
|
||||
"user": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 576689461,
|
||||
"node_id": "R_kgDOIl-VNQ",
|
||||
"name": "test-ready-release-go",
|
||||
"full_name": "anbraten/test-ready-release-go",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go",
|
||||
"forks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/forks",
|
||||
"keys_url": "https://api.github.com/repos/anbraten/test-ready-release-go/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/anbraten/test-ready-release-go/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/anbraten/test-ready-release-go/teams",
|
||||
"hooks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/events",
|
||||
"assignees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/anbraten/test-ready-release-go/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/tags",
|
||||
"blobs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/anbraten/test-ready-release-go/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscription",
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/anbraten/test-ready-release-go/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/anbraten/test-ready-release-go/merges",
|
||||
"archive_url": "https://api.github.com/repos/anbraten/test-ready-release-go/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/anbraten/test-ready-release-go/downloads",
|
||||
"issues_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/anbraten/test-ready-release-go/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/anbraten/test-ready-release-go/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/anbraten/test-ready-release-go/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/anbraten/test-ready-release-go/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/deployments",
|
||||
"created_at": "2022-12-10T16:59:42Z",
|
||||
"updated_at": "2023-07-11T17:00:26Z",
|
||||
"pushed_at": "2023-12-05T18:13:17Z",
|
||||
"git_url": "git://github.com/anbraten/test-ready-release-go.git",
|
||||
"ssh_url": "git@github.com:anbraten/test-ready-release-go.git",
|
||||
"clone_url": "https://github.com/anbraten/test-ready-release-go.git",
|
||||
"svn_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"homepage": null,
|
||||
"size": 11198,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"allow_auto_merge": false,
|
||||
"delete_branch_on_merge": false,
|
||||
"allow_update_branch": false,
|
||||
"use_squash_pr_title_as_default": false,
|
||||
"squash_merge_commit_message": "COMMIT_MESSAGES",
|
||||
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
|
||||
"merge_commit_message": "PR_TITLE",
|
||||
"merge_commit_title": "MERGE_MESSAGE"
|
||||
}
|
||||
},
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/anbraten/test-ready-release-go/pull/62"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62/comments"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/comments"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/comments{/number}"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/commits"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/c88b9ee719285134957cbc698c9b7ef9b78007bf"
|
||||
}
|
||||
},
|
||||
"author_association": "OWNER",
|
||||
"auto_merge": null,
|
||||
"active_lock_reason": null,
|
||||
"merged": false,
|
||||
"mergeable": true,
|
||||
"rebaseable": false,
|
||||
"mergeable_state": "clean",
|
||||
"merged_by": null,
|
||||
"comments": 0,
|
||||
"review_comments": 0,
|
||||
"maintainer_can_modify": false,
|
||||
"commits": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changed_files": 1
|
||||
},
|
||||
"repository": {
|
||||
"id": 576689461,
|
||||
"node_id": "R_kgDOIl-VNQ",
|
||||
"name": "test-ready-release-go",
|
||||
"full_name": "anbraten/test-ready-release-go",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go",
|
||||
"forks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/forks",
|
||||
"keys_url": "https://api.github.com/repos/anbraten/test-ready-release-go/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/anbraten/test-ready-release-go/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/anbraten/test-ready-release-go/teams",
|
||||
"hooks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/events",
|
||||
"assignees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/anbraten/test-ready-release-go/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/tags",
|
||||
"blobs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/anbraten/test-ready-release-go/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscription",
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/anbraten/test-ready-release-go/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/anbraten/test-ready-release-go/merges",
|
||||
"archive_url": "https://api.github.com/repos/anbraten/test-ready-release-go/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/anbraten/test-ready-release-go/downloads",
|
||||
"issues_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/anbraten/test-ready-release-go/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/anbraten/test-ready-release-go/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/anbraten/test-ready-release-go/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/anbraten/test-ready-release-go/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/deployments",
|
||||
"created_at": "2022-12-10T16:59:42Z",
|
||||
"updated_at": "2023-07-11T17:00:26Z",
|
||||
"pushed_at": "2023-12-05T18:13:17Z",
|
||||
"git_url": "git://github.com/anbraten/test-ready-release-go.git",
|
||||
"ssh_url": "git@github.com:anbraten/test-ready-release-go.git",
|
||||
"clone_url": "https://github.com/anbraten/test-ready-release-go.git",
|
||||
"svn_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"homepage": null,
|
||||
"size": 11198,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main"
|
||||
},
|
||||
"sender": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
525
server/forge/github/fixtures/HookPullRequestMerged.json
Normal file
525
server/forge/github/fixtures/HookPullRequestMerged.json
Normal file
|
@ -0,0 +1,525 @@
|
|||
{
|
||||
"action": "closed",
|
||||
"number": 62,
|
||||
"pull_request": {
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62",
|
||||
"id": 1630965956,
|
||||
"node_id": "PR_kwDOIl-VNc5hNpDE",
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go/pull/62",
|
||||
"diff_url": "https://github.com/anbraten/test-ready-release-go/pull/62.diff",
|
||||
"patch_url": "https://github.com/anbraten/test-ready-release-go/pull/62.patch",
|
||||
"issue_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62",
|
||||
"number": 62,
|
||||
"state": "closed",
|
||||
"locked": false,
|
||||
"title": "Change file",
|
||||
"user": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"body": null,
|
||||
"created_at": "2023-12-05T18:13:16Z",
|
||||
"updated_at": "2023-12-05T18:34:19Z",
|
||||
"closed_at": "2023-12-05T18:34:19Z",
|
||||
"merged_at": "2023-12-05T18:34:19Z",
|
||||
"merge_commit_sha": "473d70eb7c50a54ae62bf9b124efa1c3eb245be8",
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"requested_reviewers": [],
|
||||
"requested_teams": [],
|
||||
"labels": [],
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/comments{/number}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62/comments",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/c88b9ee719285134957cbc698c9b7ef9b78007bf",
|
||||
"head": {
|
||||
"label": "anbraten:anbraten-patch-3",
|
||||
"ref": "anbraten-patch-3",
|
||||
"sha": "c88b9ee719285134957cbc698c9b7ef9b78007bf",
|
||||
"user": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 576689461,
|
||||
"node_id": "R_kgDOIl-VNQ",
|
||||
"name": "test-ready-release-go",
|
||||
"full_name": "anbraten/test-ready-release-go",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go",
|
||||
"forks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/forks",
|
||||
"keys_url": "https://api.github.com/repos/anbraten/test-ready-release-go/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/anbraten/test-ready-release-go/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/anbraten/test-ready-release-go/teams",
|
||||
"hooks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/events",
|
||||
"assignees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/anbraten/test-ready-release-go/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/tags",
|
||||
"blobs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/anbraten/test-ready-release-go/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscription",
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/anbraten/test-ready-release-go/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/anbraten/test-ready-release-go/merges",
|
||||
"archive_url": "https://api.github.com/repos/anbraten/test-ready-release-go/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/anbraten/test-ready-release-go/downloads",
|
||||
"issues_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/anbraten/test-ready-release-go/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/anbraten/test-ready-release-go/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/anbraten/test-ready-release-go/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/anbraten/test-ready-release-go/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/deployments",
|
||||
"created_at": "2022-12-10T16:59:42Z",
|
||||
"updated_at": "2023-07-11T17:00:26Z",
|
||||
"pushed_at": "2023-12-05T18:34:19Z",
|
||||
"git_url": "git://github.com/anbraten/test-ready-release-go.git",
|
||||
"ssh_url": "git@github.com:anbraten/test-ready-release-go.git",
|
||||
"clone_url": "https://github.com/anbraten/test-ready-release-go.git",
|
||||
"svn_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"homepage": null,
|
||||
"size": 11198,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"allow_auto_merge": false,
|
||||
"delete_branch_on_merge": false,
|
||||
"allow_update_branch": false,
|
||||
"use_squash_pr_title_as_default": false,
|
||||
"squash_merge_commit_message": "COMMIT_MESSAGES",
|
||||
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
|
||||
"merge_commit_message": "PR_TITLE",
|
||||
"merge_commit_title": "MERGE_MESSAGE"
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "anbraten:main",
|
||||
"ref": "main",
|
||||
"sha": "26fd46e0d1237cdabfe84ec6a0f37466fc716952",
|
||||
"user": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 576689461,
|
||||
"node_id": "R_kgDOIl-VNQ",
|
||||
"name": "test-ready-release-go",
|
||||
"full_name": "anbraten/test-ready-release-go",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go",
|
||||
"forks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/forks",
|
||||
"keys_url": "https://api.github.com/repos/anbraten/test-ready-release-go/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/anbraten/test-ready-release-go/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/anbraten/test-ready-release-go/teams",
|
||||
"hooks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/events",
|
||||
"assignees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/anbraten/test-ready-release-go/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/tags",
|
||||
"blobs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/anbraten/test-ready-release-go/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscription",
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/anbraten/test-ready-release-go/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/anbraten/test-ready-release-go/merges",
|
||||
"archive_url": "https://api.github.com/repos/anbraten/test-ready-release-go/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/anbraten/test-ready-release-go/downloads",
|
||||
"issues_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/anbraten/test-ready-release-go/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/anbraten/test-ready-release-go/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/anbraten/test-ready-release-go/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/anbraten/test-ready-release-go/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/deployments",
|
||||
"created_at": "2022-12-10T16:59:42Z",
|
||||
"updated_at": "2023-07-11T17:00:26Z",
|
||||
"pushed_at": "2023-12-05T18:34:19Z",
|
||||
"git_url": "git://github.com/anbraten/test-ready-release-go.git",
|
||||
"ssh_url": "git@github.com:anbraten/test-ready-release-go.git",
|
||||
"clone_url": "https://github.com/anbraten/test-ready-release-go.git",
|
||||
"svn_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"homepage": null,
|
||||
"size": 11198,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"allow_auto_merge": false,
|
||||
"delete_branch_on_merge": false,
|
||||
"allow_update_branch": false,
|
||||
"use_squash_pr_title_as_default": false,
|
||||
"squash_merge_commit_message": "COMMIT_MESSAGES",
|
||||
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
|
||||
"merge_commit_message": "PR_TITLE",
|
||||
"merge_commit_title": "MERGE_MESSAGE"
|
||||
}
|
||||
},
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/anbraten/test-ready-release-go/pull/62"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/62/comments"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/comments"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/comments{/number}"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls/62/commits"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/c88b9ee719285134957cbc698c9b7ef9b78007bf"
|
||||
}
|
||||
},
|
||||
"author_association": "OWNER",
|
||||
"auto_merge": null,
|
||||
"active_lock_reason": null,
|
||||
"merged": true,
|
||||
"mergeable": null,
|
||||
"rebaseable": null,
|
||||
"mergeable_state": "unknown",
|
||||
"merged_by": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"comments": 0,
|
||||
"review_comments": 0,
|
||||
"maintainer_can_modify": false,
|
||||
"commits": 1,
|
||||
"additions": 1,
|
||||
"deletions": 0,
|
||||
"changed_files": 1
|
||||
},
|
||||
"repository": {
|
||||
"id": 576689461,
|
||||
"node_id": "R_kgDOIl-VNQ",
|
||||
"name": "test-ready-release-go",
|
||||
"full_name": "anbraten/test-ready-release-go",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/anbraten/test-ready-release-go",
|
||||
"forks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/forks",
|
||||
"keys_url": "https://api.github.com/repos/anbraten/test-ready-release-go/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/anbraten/test-ready-release-go/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/anbraten/test-ready-release-go/teams",
|
||||
"hooks_url": "https://api.github.com/repos/anbraten/test-ready-release-go/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/anbraten/test-ready-release-go/events",
|
||||
"assignees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/anbraten/test-ready-release-go/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/tags",
|
||||
"blobs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/anbraten/test-ready-release-go/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/anbraten/test-ready-release-go/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/anbraten/test-ready-release-go/subscription",
|
||||
"commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/anbraten/test-ready-release-go/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/anbraten/test-ready-release-go/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/anbraten/test-ready-release-go/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/anbraten/test-ready-release-go/merges",
|
||||
"archive_url": "https://api.github.com/repos/anbraten/test-ready-release-go/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/anbraten/test-ready-release-go/downloads",
|
||||
"issues_url": "https://api.github.com/repos/anbraten/test-ready-release-go/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/anbraten/test-ready-release-go/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/anbraten/test-ready-release-go/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/anbraten/test-ready-release-go/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/anbraten/test-ready-release-go/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/anbraten/test-ready-release-go/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/anbraten/test-ready-release-go/deployments",
|
||||
"created_at": "2022-12-10T16:59:42Z",
|
||||
"updated_at": "2023-07-11T17:00:26Z",
|
||||
"pushed_at": "2023-12-05T18:34:19Z",
|
||||
"git_url": "git://github.com/anbraten/test-ready-release-go.git",
|
||||
"ssh_url": "git@github.com:anbraten/test-ready-release-go.git",
|
||||
"clone_url": "https://github.com/anbraten/test-ready-release-go.git",
|
||||
"svn_url": "https://github.com/anbraten/test-ready-release-go",
|
||||
"homepage": null,
|
||||
"size": 11198,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"has_discussions": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"web_commit_signoff_required": false,
|
||||
"topics": [],
|
||||
"visibility": "public",
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main"
|
||||
},
|
||||
"sender": {
|
||||
"login": "anbraten",
|
||||
"id": 6918444,
|
||||
"node_id": "MDQ6VXNlcjY5MTg0NDQ=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6918444?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/anbraten",
|
||||
"html_url": "https://github.com/anbraten",
|
||||
"followers_url": "https://api.github.com/users/anbraten/followers",
|
||||
"following_url": "https://api.github.com/users/anbraten/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/anbraten/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/anbraten/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/anbraten/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/anbraten/orgs",
|
||||
"repos_url": "https://api.github.com/users/anbraten/repos",
|
||||
"events_url": "https://api.github.com/users/anbraten/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/anbraten/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
201
server/forge/github/fixtures/HookPush.json
Normal file
201
server/forge/github/fixtures/HookPush.json
Normal file
|
@ -0,0 +1,201 @@
|
|||
{
|
||||
"ref": "refs/heads/main",
|
||||
"before": "2f780193b136b72bfea4eeb640786a8c4450c7a2",
|
||||
"after": "366701fde727cb7a9e7f21eb88264f59f6f9b89c",
|
||||
"repository": {
|
||||
"id": 179344069,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkxNzkzNDQwNjk=",
|
||||
"name": "woodpecker",
|
||||
"full_name": "woodpecker-ci/woodpecker",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"name": "woodpecker-ci",
|
||||
"email": null,
|
||||
"login": "woodpecker-ci",
|
||||
"id": 84780935,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjg0NzgwOTM1",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/84780935?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/woodpecker-ci",
|
||||
"html_url": "https://github.com/woodpecker-ci",
|
||||
"followers_url": "https://api.github.com/users/woodpecker-ci/followers",
|
||||
"following_url": "https://api.github.com/users/woodpecker-ci/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/woodpecker-ci/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/woodpecker-ci/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/woodpecker-ci/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/woodpecker-ci/orgs",
|
||||
"repos_url": "https://api.github.com/users/woodpecker-ci/repos",
|
||||
"events_url": "https://api.github.com/users/woodpecker-ci/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/woodpecker-ci/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/woodpecker-ci/woodpecker",
|
||||
"description": "Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.",
|
||||
"fork": false,
|
||||
"url": "https://github.com/woodpecker-ci/woodpecker",
|
||||
"forks_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/forks",
|
||||
"keys_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/teams",
|
||||
"hooks_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/events",
|
||||
"assignees_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/tags",
|
||||
"blobs_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/subscription",
|
||||
"commits_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/merges",
|
||||
"archive_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/downloads",
|
||||
"issues_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/woodpecker-ci/woodpecker/deployments",
|
||||
"created_at": 1554314798,
|
||||
"updated_at": "2022-01-16T20:19:33Z",
|
||||
"pushed_at": 1642370257,
|
||||
"git_url": "git://github.com/woodpecker-ci/woodpecker.git",
|
||||
"ssh_url": "git@github.com:woodpecker-ci/woodpecker.git",
|
||||
"clone_url": "https://github.com/woodpecker-ci/woodpecker.git",
|
||||
"svn_url": "https://github.com/woodpecker-ci/woodpecker",
|
||||
"homepage": "https://woodpecker-ci.org",
|
||||
"size": 81324,
|
||||
"stargazers_count": 659,
|
||||
"watchers_count": 659,
|
||||
"language": "Go",
|
||||
"has_issues": true,
|
||||
"has_projects": false,
|
||||
"has_downloads": true,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 84,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 123,
|
||||
"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="
|
||||
},
|
||||
"allow_forking": true,
|
||||
"is_template": false,
|
||||
"topics": ["ci", "devops", "docker", "hacktoberfest", "hacktoberfest2021", "woodpeckerci"],
|
||||
"visibility": "public",
|
||||
"forks": 84,
|
||||
"open_issues": 123,
|
||||
"watchers": 659,
|
||||
"default_branch": "main",
|
||||
"stargazers": 659,
|
||||
"main_branch": "main",
|
||||
"organization": "woodpecker-ci"
|
||||
},
|
||||
"pusher": {
|
||||
"name": "6543",
|
||||
"email": "noreply@6543.de"
|
||||
},
|
||||
"organization": {
|
||||
"login": "woodpecker-ci",
|
||||
"id": 84780935,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjg0NzgwOTM1",
|
||||
"url": "https://api.github.com/orgs/woodpecker-ci",
|
||||
"repos_url": "https://api.github.com/orgs/woodpecker-ci/repos",
|
||||
"events_url": "https://api.github.com/orgs/woodpecker-ci/events",
|
||||
"hooks_url": "https://api.github.com/orgs/woodpecker-ci/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/woodpecker-ci/issues",
|
||||
"members_url": "https://api.github.com/orgs/woodpecker-ci/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/woodpecker-ci/public_members{/member}",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/84780935?v=4",
|
||||
"description": "Woodpecker is a simple, yet powerful CI/CD engine with great extensibility."
|
||||
},
|
||||
"sender": {
|
||||
"login": "6543",
|
||||
"id": 24977596,
|
||||
"node_id": "MDQ6VXNlcjI0OTc3NTk2",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/24977596?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/6543",
|
||||
"html_url": "https://github.com/6543",
|
||||
"followers_url": "https://api.github.com/users/6543/followers",
|
||||
"following_url": "https://api.github.com/users/6543/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/6543/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/6543/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/6543/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/6543/orgs",
|
||||
"repos_url": "https://api.github.com/users/6543/repos",
|
||||
"events_url": "https://api.github.com/users/6543/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/6543/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"created": false,
|
||||
"deleted": false,
|
||||
"forced": false,
|
||||
"base_ref": null,
|
||||
"compare": "https://github.com/woodpecker-ci/woodpecker/compare/2f780193b136...366701fde727",
|
||||
"commits": [
|
||||
{
|
||||
"id": "366701fde727cb7a9e7f21eb88264f59f6f9b89c",
|
||||
"tree_id": "638e046f1e1e15dbed1ddf40f9471bf1af4d64ce",
|
||||
"distinct": true,
|
||||
"message": "Fix multiline secrets replacer (#700)\n\n* Fix multiline secrets replacer\r\n\r\n* Add tests",
|
||||
"timestamp": "2022-01-16T22:57:37+01:00",
|
||||
"url": "https://github.com/woodpecker-ci/woodpecker/commit/366701fde727cb7a9e7f21eb88264f59f6f9b89c",
|
||||
"author": {
|
||||
"name": "Philipp",
|
||||
"email": "noreply@philipp.xzy",
|
||||
"username": "nupplaphil"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"username": "web-flow"
|
||||
},
|
||||
"added": [],
|
||||
"removed": [],
|
||||
"modified": ["pipeline/shared/replace_secrets.go", "pipeline/shared/replace_secrets_test.go"]
|
||||
}
|
||||
],
|
||||
"head_commit": {
|
||||
"id": "366701fde727cb7a9e7f21eb88264f59f6f9b89c",
|
||||
"tree_id": "638e046f1e1e15dbed1ddf40f9471bf1af4d64ce",
|
||||
"distinct": true,
|
||||
"message": "Fix multiline secrets replacer (#700)\n\n* Fix multiline secrets replacer\r\n\r\n* Add tests",
|
||||
"timestamp": "2022-01-16T22:57:37+01:00",
|
||||
"url": "https://github.com/woodpecker-ci/woodpecker/commit/366701fde727cb7a9e7f21eb88264f59f6f9b89c",
|
||||
"author": {
|
||||
"name": "Philipp",
|
||||
"email": "admin@philipp.info",
|
||||
"username": "nupplaphil"
|
||||
},
|
||||
"committer": {
|
||||
"name": "GitHub",
|
||||
"email": "noreply@github.com",
|
||||
"username": "web-flow"
|
||||
},
|
||||
"added": [],
|
||||
"removed": [],
|
||||
"modified": ["pipeline/shared/replace_secrets.go", "pipeline/shared/replace_secrets_test.go"]
|
||||
}
|
||||
}
|
172
server/forge/github/fixtures/HookRelease.json
Normal file
172
server/forge/github/fixtures/HookRelease.json
Normal file
|
@ -0,0 +1,172 @@
|
|||
{
|
||||
"action": "released",
|
||||
"release": {
|
||||
"url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/releases/2",
|
||||
"assets_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/releases/2/assets",
|
||||
"upload_url": "https://octocoders.github.io/api/uploads/repos/Codertocat/Hello-World/releases/2/assets{?name,label}",
|
||||
"html_url": "https://octocoders.github.io/Codertocat/Hello-World/releases/tag/0.0.1",
|
||||
"id": 2,
|
||||
"node_id": "MDc6UmVsZWFzZTI=",
|
||||
"tag_name": "0.0.1",
|
||||
"target_commitish": "master",
|
||||
"name": null,
|
||||
"draft": false,
|
||||
"author": {
|
||||
"login": "Codertocat",
|
||||
"id": 4,
|
||||
"node_id": "MDQ6VXNlcjQ=",
|
||||
"avatar_url": "https://octocoders.github.io/avatars/u/4?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://octocoders.github.io/api/v3/users/Codertocat",
|
||||
"html_url": "https://octocoders.github.io/Codertocat",
|
||||
"followers_url": "https://octocoders.github.io/api/v3/users/Codertocat/followers",
|
||||
"following_url": "https://octocoders.github.io/api/v3/users/Codertocat/following{/other_user}",
|
||||
"gists_url": "https://octocoders.github.io/api/v3/users/Codertocat/gists{/gist_id}",
|
||||
"starred_url": "https://octocoders.github.io/api/v3/users/Codertocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://octocoders.github.io/api/v3/users/Codertocat/subscriptions",
|
||||
"organizations_url": "https://octocoders.github.io/api/v3/users/Codertocat/orgs",
|
||||
"repos_url": "https://octocoders.github.io/api/v3/users/Codertocat/repos",
|
||||
"events_url": "https://octocoders.github.io/api/v3/users/Codertocat/events{/privacy}",
|
||||
"received_events_url": "https://octocoders.github.io/api/v3/users/Codertocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"prerelease": false,
|
||||
"created_at": "2019-05-15T19:37:08Z",
|
||||
"published_at": "2019-05-15T19:38:20Z",
|
||||
"assets": [],
|
||||
"tarball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tarball/0.0.1",
|
||||
"zipball_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/zipball/0.0.1",
|
||||
"body": null
|
||||
},
|
||||
"repository": {
|
||||
"id": 118,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTg=",
|
||||
"name": "Hello-World",
|
||||
"full_name": "Codertocat/Hello-World",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "Codertocat",
|
||||
"id": 4,
|
||||
"node_id": "MDQ6VXNlcjQ=",
|
||||
"avatar_url": "https://octocoders.github.io/avatars/u/4?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://octocoders.github.io/api/v3/users/Codertocat",
|
||||
"html_url": "https://octocoders.github.io/Codertocat",
|
||||
"followers_url": "https://octocoders.github.io/api/v3/users/Codertocat/followers",
|
||||
"following_url": "https://octocoders.github.io/api/v3/users/Codertocat/following{/other_user}",
|
||||
"gists_url": "https://octocoders.github.io/api/v3/users/Codertocat/gists{/gist_id}",
|
||||
"starred_url": "https://octocoders.github.io/api/v3/users/Codertocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://octocoders.github.io/api/v3/users/Codertocat/subscriptions",
|
||||
"organizations_url": "https://octocoders.github.io/api/v3/users/Codertocat/orgs",
|
||||
"repos_url": "https://octocoders.github.io/api/v3/users/Codertocat/repos",
|
||||
"events_url": "https://octocoders.github.io/api/v3/users/Codertocat/events{/privacy}",
|
||||
"received_events_url": "https://octocoders.github.io/api/v3/users/Codertocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://octocoders.github.io/Codertocat/Hello-World",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World",
|
||||
"forks_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/forks",
|
||||
"keys_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/keys{/key_id}",
|
||||
"collaborators_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/collaborators{/collaborator}",
|
||||
"teams_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/teams",
|
||||
"hooks_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/hooks",
|
||||
"issue_events_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/issues/events{/number}",
|
||||
"events_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/events",
|
||||
"assignees_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/assignees{/user}",
|
||||
"branches_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/branches{/branch}",
|
||||
"tags_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/tags",
|
||||
"blobs_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/git/blobs{/sha}",
|
||||
"git_tags_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/git/tags{/sha}",
|
||||
"git_refs_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/git/refs{/sha}",
|
||||
"trees_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/git/trees{/sha}",
|
||||
"statuses_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/statuses/{sha}",
|
||||
"languages_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/languages",
|
||||
"stargazers_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/stargazers",
|
||||
"contributors_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/contributors",
|
||||
"subscribers_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/subscribers",
|
||||
"subscription_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/subscription",
|
||||
"commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/commits{/sha}",
|
||||
"git_commits_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/git/commits{/sha}",
|
||||
"comments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/comments{/number}",
|
||||
"issue_comment_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/issues/comments{/number}",
|
||||
"contents_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/contents/{+path}",
|
||||
"compare_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/compare/{base}...{head}",
|
||||
"merges_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/merges",
|
||||
"archive_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/{archive_format}{/ref}",
|
||||
"downloads_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/downloads",
|
||||
"issues_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/issues{/number}",
|
||||
"pulls_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/pulls{/number}",
|
||||
"milestones_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/milestones{/number}",
|
||||
"notifications_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/notifications{?since,all,participating}",
|
||||
"labels_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/labels{/name}",
|
||||
"releases_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/releases{/id}",
|
||||
"deployments_url": "https://octocoders.github.io/api/v3/repos/Codertocat/Hello-World/deployments",
|
||||
"created_at": "2019-05-15T19:37:07Z",
|
||||
"updated_at": "2019-05-15T19:38:15Z",
|
||||
"pushed_at": "2019-05-15T19:38:19Z",
|
||||
"git_url": "git://octocoders.github.io/Codertocat/Hello-World.git",
|
||||
"ssh_url": "git@octocoders.github.io:Codertocat/Hello-World.git",
|
||||
"clone_url": "https://octocoders.github.io/Codertocat/Hello-World.git",
|
||||
"svn_url": "https://octocoders.github.io/Codertocat/Hello-World",
|
||||
"homepage": null,
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Ruby",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": true,
|
||||
"forks_count": 1,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 2,
|
||||
"license": null,
|
||||
"forks": 1,
|
||||
"open_issues": 2,
|
||||
"watchers": 0,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"enterprise": {
|
||||
"id": 1,
|
||||
"slug": "github",
|
||||
"name": "GitHub",
|
||||
"node_id": "MDg6QnVzaW5lc3Mx",
|
||||
"avatar_url": "https://octocoders.github.io/avatars/b/1?",
|
||||
"description": null,
|
||||
"website_url": null,
|
||||
"html_url": "https://octocoders.github.io/businesses/github",
|
||||
"created_at": "2019-05-14T19:31:12Z",
|
||||
"updated_at": "2019-05-14T19:31:12Z"
|
||||
},
|
||||
"sender": {
|
||||
"login": "Codertocat",
|
||||
"id": 4,
|
||||
"node_id": "MDQ6VXNlcjQ=",
|
||||
"avatar_url": "https://octocoders.github.io/avatars/u/4?",
|
||||
"gravatar_id": "",
|
||||
"url": "https://octocoders.github.io/api/v3/users/Codertocat",
|
||||
"html_url": "https://octocoders.github.io/Codertocat",
|
||||
"followers_url": "https://octocoders.github.io/api/v3/users/Codertocat/followers",
|
||||
"following_url": "https://octocoders.github.io/api/v3/users/Codertocat/following{/other_user}",
|
||||
"gists_url": "https://octocoders.github.io/api/v3/users/Codertocat/gists{/gist_id}",
|
||||
"starred_url": "https://octocoders.github.io/api/v3/users/Codertocat/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://octocoders.github.io/api/v3/users/Codertocat/subscriptions",
|
||||
"organizations_url": "https://octocoders.github.io/api/v3/users/Codertocat/orgs",
|
||||
"repos_url": "https://octocoders.github.io/api/v3/users/Codertocat/repos",
|
||||
"events_url": "https://octocoders.github.io/api/v3/users/Codertocat/events{/privacy}",
|
||||
"received_events_url": "https://octocoders.github.io/api/v3/users/Codertocat/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"installation": {
|
||||
"id": 5,
|
||||
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uNQ=="
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
139
server/forge/gitlab/fixtures/HookPullRequest.json
Normal file
139
server/forge/gitlab/fixtures/HookPullRequest.json
Normal file
|
@ -0,0 +1,139 @@
|
|||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": 2251488,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2022-01-10 15:23:41 UTC",
|
||||
"description": "",
|
||||
"head_pipeline_id": 449733536,
|
||||
"id": 134400602,
|
||||
"iid": 3,
|
||||
"last_edited_at": "2022-01-17 15:46:23 UTC",
|
||||
"last_edited_by_id": 2251488,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "unchecked",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "anbraten-main-patch-05373",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 1,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Update client.go 🎉",
|
||||
"updated_at": "2022-01-17 15:47:39 UTC",
|
||||
"updated_by_id": 2251488,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/merge_requests/3",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"message": "Update folder/todo.txt",
|
||||
"title": "Update folder/todo.txt",
|
||||
"timestamp": "2022-01-17T15:47:38+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/commit/c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [2251488],
|
||||
"state": "opened",
|
||||
"blocking_discussions_resolved": true,
|
||||
"action": "update",
|
||||
"oldrev": "8b641937b7340066d882b9d8a8cc5b0573a207de"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"updated_at": {
|
||||
"previous": "2022-01-17 15:46:23 UTC",
|
||||
"current": "2022-01-17 15:47:39 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker"
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
]
|
||||
}
|
138
server/forge/gitlab/fixtures/HookPullRequestApproved.json
Normal file
138
server/forge/gitlab/fixtures/HookPullRequestApproved.json
Normal file
|
@ -0,0 +1,138 @@
|
|||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": 2251488,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2022-01-10 15:23:41 UTC",
|
||||
"description": "",
|
||||
"head_pipeline_id": 449733536,
|
||||
"id": 134400602,
|
||||
"iid": 3,
|
||||
"last_edited_at": "2022-01-17 15:46:23 UTC",
|
||||
"last_edited_by_id": 2251488,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "unchecked",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "anbraten-main-patch-05373",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 1,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Update client.go 🎉",
|
||||
"updated_at": "2022-01-17 15:47:39 UTC",
|
||||
"updated_by_id": 2251488,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/merge_requests/3",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"message": "Update folder/todo.txt",
|
||||
"title": "Update folder/todo.txt",
|
||||
"timestamp": "2022-01-17T15:47:38+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/commit/c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [2251488],
|
||||
"state": "opened",
|
||||
"blocking_discussions_resolved": true,
|
||||
"action": "approved"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"updated_at": {
|
||||
"previous": "2022-01-17 15:46:23 UTC",
|
||||
"current": "2022-01-17 15:47:39 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker"
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
]
|
||||
}
|
138
server/forge/gitlab/fixtures/HookPullRequestClosed.json
Normal file
138
server/forge/gitlab/fixtures/HookPullRequestClosed.json
Normal file
|
@ -0,0 +1,138 @@
|
|||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "[REDACTED]"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": null,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2023-12-05 18:40:22 UTC",
|
||||
"description": "",
|
||||
"draft": false,
|
||||
"head_pipeline_id": null,
|
||||
"id": 268189426,
|
||||
"iid": 4,
|
||||
"last_edited_at": null,
|
||||
"last_edited_by_id": null,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "can_be_merged",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "patch-1",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 2,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Add new file",
|
||||
"updated_at": "2023-12-05 18:40:34 UTC",
|
||||
"updated_by_id": null,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/merge_requests/4",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"message": "Add new file",
|
||||
"title": "Add new file",
|
||||
"timestamp": "2023-12-05T18:39:57+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/commit/3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "[redacted]"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [],
|
||||
"reviewer_ids": [],
|
||||
"labels": [],
|
||||
"state": "closed",
|
||||
"blocking_discussions_resolved": true,
|
||||
"first_contribution": false,
|
||||
"detailed_merge_status": "not_open",
|
||||
"action": "close"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"state_id": {
|
||||
"previous": 1,
|
||||
"current": 2
|
||||
},
|
||||
"updated_at": {
|
||||
"previous": "2023-12-05 18:40:28 UTC",
|
||||
"current": "2023-12-05 18:40:34 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test"
|
||||
}
|
||||
}
|
138
server/forge/gitlab/fixtures/HookPullRequestMerged.json
Normal file
138
server/forge/gitlab/fixtures/HookPullRequestMerged.json
Normal file
|
@ -0,0 +1,138 @@
|
|||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "[REDACTED]"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": null,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2023-12-05 18:40:22 UTC",
|
||||
"description": "",
|
||||
"draft": false,
|
||||
"head_pipeline_id": null,
|
||||
"id": 268189426,
|
||||
"iid": 4,
|
||||
"last_edited_at": null,
|
||||
"last_edited_by_id": null,
|
||||
"merge_commit_sha": "43411b53d670203e887c4985c4e58e8e6b7c109e",
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "can_be_merged",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "patch-1",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 3,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Add new file",
|
||||
"updated_at": "2023-12-05 18:43:00 UTC",
|
||||
"updated_by_id": null,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/merge_requests/4",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"message": "Add new file",
|
||||
"title": "Add new file",
|
||||
"timestamp": "2023-12-05T18:39:57+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/commit/3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "[redacted]"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [],
|
||||
"reviewer_ids": [],
|
||||
"labels": [],
|
||||
"state": "merged",
|
||||
"blocking_discussions_resolved": true,
|
||||
"first_contribution": false,
|
||||
"detailed_merge_status": "not_open",
|
||||
"action": "merge"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"state_id": {
|
||||
"previous": 4,
|
||||
"current": 3
|
||||
},
|
||||
"updated_at": {
|
||||
"previous": "2023-12-05 18:43:00 UTC",
|
||||
"current": "2023-12-05 18:43:00 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test"
|
||||
}
|
||||
}
|
138
server/forge/gitlab/fixtures/HookPullRequestWithoutChanges.json
Normal file
138
server/forge/gitlab/fixtures/HookPullRequestWithoutChanges.json
Normal file
|
@ -0,0 +1,138 @@
|
|||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": 2251488,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2022-01-10 15:23:41 UTC",
|
||||
"description": "",
|
||||
"head_pipeline_id": 449733536,
|
||||
"id": 134400602,
|
||||
"iid": 3,
|
||||
"last_edited_at": "2022-01-17 15:46:23 UTC",
|
||||
"last_edited_by_id": 2251488,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "unchecked",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "anbraten-main-patch-05373",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 1,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Update client.go 🎉",
|
||||
"updated_at": "2022-01-17 15:47:39 UTC",
|
||||
"updated_by_id": 2251488,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/merge_requests/3",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"message": "Update folder/todo.txt",
|
||||
"title": "Update folder/todo.txt",
|
||||
"timestamp": "2022-01-17T15:47:38+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/commit/c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [2251488],
|
||||
"state": "opened",
|
||||
"blocking_discussions_resolved": true,
|
||||
"action": "update"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"updated_at": {
|
||||
"previous": "2022-01-17 15:46:23 UTC",
|
||||
"current": "2022-01-17 15:47:39 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker"
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
]
|
||||
}
|
60
server/forge/gitlab/fixtures/HookPush.json
Normal file
60
server/forge/gitlab/fixtures/HookPush.json
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"object_kind": "push",
|
||||
"event_name": "push",
|
||||
"before": "ffe8eb4f91d1fe6bc49f1e610e50e4b5767f0104",
|
||||
"after": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"ref": "refs/heads/main",
|
||||
"checkout_sha": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": null,
|
||||
"user_id": 2,
|
||||
"user_name": "the test",
|
||||
"user_username": "test",
|
||||
"user_email": "",
|
||||
"user_avatar": "https://www.gravatar.com/avatar/dd46a756faad4727fb679320751f6dea?s=80&d=identicon",
|
||||
"project_id": 2,
|
||||
"project": {
|
||||
"id": 2,
|
||||
"name": "Woodpecker",
|
||||
"description": "",
|
||||
"web_url": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"namespace": "the test",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "test/woodpecker",
|
||||
"default_branch": "develop",
|
||||
"ci_config_path": null,
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"http_url": "http://10.40.8.5:3200/test/woodpecker.git"
|
||||
},
|
||||
"commits": [
|
||||
{
|
||||
"id": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": "Update main.go",
|
||||
"title": "Update main.go",
|
||||
"timestamp": "2021-09-27T04:46:14+00:00",
|
||||
"url": "http://10.40.8.5:3200/test/woodpecker/-/commit/16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"author": {
|
||||
"name": "the test",
|
||||
"email": "test@test.test"
|
||||
},
|
||||
"added": [],
|
||||
"modified": ["cmd/cli/main.go"],
|
||||
"removed": []
|
||||
}
|
||||
],
|
||||
"total_commits_count": 1,
|
||||
"push_options": {},
|
||||
"repository": {
|
||||
"name": "Woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"visibility_level": 20
|
||||
}
|
||||
}
|
60
server/forge/gitlab/fixtures/HookTag.json
Normal file
60
server/forge/gitlab/fixtures/HookTag.json
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"object_kind": "tag_push",
|
||||
"event_name": "tag_push",
|
||||
"before": "0000000000000000000000000000000000000000",
|
||||
"after": "fabed3d94cd03e6c2b7958afa9569c18a24d301f",
|
||||
"ref": "refs/tags/v22",
|
||||
"checkout_sha": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": "hi",
|
||||
"user_id": 2,
|
||||
"user_name": "the test",
|
||||
"user_username": "test",
|
||||
"user_email": "",
|
||||
"user_avatar": "https://www.gravatar.com/avatar/dd46a756faad4727fb679320751f6dea?s=80&d=identicon",
|
||||
"project_id": 2,
|
||||
"project": {
|
||||
"id": 2,
|
||||
"name": "Woodpecker",
|
||||
"description": "",
|
||||
"web_url": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"namespace": "the test",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "test/woodpecker",
|
||||
"default_branch": "develop",
|
||||
"ci_config_path": null,
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"http_url": "http://10.40.8.5:3200/test/woodpecker.git"
|
||||
},
|
||||
"commits": [
|
||||
{
|
||||
"id": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": "Update main.go",
|
||||
"title": "Update main.go",
|
||||
"timestamp": "2021-09-27T04:46:14+00:00",
|
||||
"url": "http://10.40.8.5:3200/test/woodpecker/-/commit/16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"author": {
|
||||
"name": "the test",
|
||||
"email": "test@test.test"
|
||||
},
|
||||
"added": [],
|
||||
"modified": ["cmd/cli/main.go"],
|
||||
"removed": []
|
||||
}
|
||||
],
|
||||
"total_commits_count": 1,
|
||||
"push_options": {},
|
||||
"repository": {
|
||||
"name": "Woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"visibility_level": 20
|
||||
}
|
||||
}
|
62
server/forge/gitlab/fixtures/WebhookReleaseBody.json
Normal file
62
server/forge/gitlab/fixtures/WebhookReleaseBody.json
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"id": 4268085,
|
||||
"created_at": "2022-02-09 20:19:09 UTC",
|
||||
"description": "new version desc",
|
||||
"name": "Awesome version 0.0.2",
|
||||
"released_at": "2022-02-09 20:19:09 UTC",
|
||||
"tag": "0.0.2",
|
||||
"object_kind": "release",
|
||||
"project": {
|
||||
"id": 32521798,
|
||||
"name": "ci",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbratens-test/ci",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbratens-test/ci.git",
|
||||
"git_http_url": "https://gitlab.com/anbratens-test/ci.git",
|
||||
"namespace": "anbratens-test",
|
||||
"visibility_level": 0,
|
||||
"path_with_namespace": "anbratens-test/ci",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbratens-test/ci",
|
||||
"url": "git@gitlab.com:anbratens-test/ci.git",
|
||||
"ssh_url": "git@gitlab.com:anbratens-test/ci.git",
|
||||
"http_url": "https://gitlab.com/anbratens-test/ci.git"
|
||||
},
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/releases/0.0.2",
|
||||
"action": "create",
|
||||
"assets": {
|
||||
"count": 4,
|
||||
"links": [],
|
||||
"sources": [
|
||||
{
|
||||
"format": "zip",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.zip"
|
||||
},
|
||||
{
|
||||
"format": "tar.gz",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.tar.gz"
|
||||
},
|
||||
{
|
||||
"format": "tar.bz2",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.tar.bz2"
|
||||
},
|
||||
{
|
||||
"format": "tar",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.tar"
|
||||
}
|
||||
]
|
||||
},
|
||||
"commit": {
|
||||
"id": "0b8c02955ba445ea70d22824d9589678852e2b93",
|
||||
"message": "Initial commit",
|
||||
"title": "Initial commit",
|
||||
"timestamp": "2022-01-03T10:39:51+00:00",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/commit/0b8c02955ba445ea70d22824d9589678852e2b93",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "2251488-anbraten@users.noreply.gitlab.com"
|
||||
}
|
||||
}
|
||||
}
|
68
server/forge/gitlab/fixtures/hooks.go
Normal file
68
server/forge/gitlab/fixtures/hooks.go
Normal file
|
@ -0,0 +1,68 @@
|
|||
// Copyright 2025 Woodpecker Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package fixtures
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
var (
|
||||
ServiceHookMethod = http.MethodPost
|
||||
ServiceHookURL, _ = url.Parse(
|
||||
"http://10.40.8.5:8000/hook?owner=test&name=woodpecker&access_token=dummyToken." +
|
||||
"eyJ0ZXh0IjoidGVzdC93b29kcGVja2VyIiwidHlwZSI6Imhvb2sifQ.x3kPnmZtxZQ_9_eMhfQ1HSmj_SLhdT_Lu2hMczWjKh0")
|
||||
ServiceHookHeaders = http.Header{
|
||||
"Content-Type": []string{"application/json"},
|
||||
"User-Agent": []string{"GitLab/14.3.0"},
|
||||
"X-Gitlab-Event": []string{"Service Hook"},
|
||||
}
|
||||
ReleaseHookHeaders = http.Header{
|
||||
"Content-Type": []string{"application/json"},
|
||||
"User-Agent": []string{"GitLab/14.3.0"},
|
||||
"X-Gitlab-Event": []string{"Release Hook"},
|
||||
}
|
||||
)
|
||||
|
||||
// HookPush is payload of a push event
|
||||
//
|
||||
//go:embed HookPush.json
|
||||
var HookPush []byte
|
||||
|
||||
// HookTag is payload of a TAG event
|
||||
//
|
||||
//go:embed HookTag.json
|
||||
var HookTag []byte
|
||||
|
||||
// HookPullRequest is payload of a PULL_REQUEST event
|
||||
//
|
||||
//go:embed HookPullRequest.json
|
||||
var HookPullRequest []byte
|
||||
|
||||
//go:embed HookPullRequestWithoutChanges.json
|
||||
var HookPullRequestWithoutChanges []byte
|
||||
|
||||
//go:embed HookPullRequestApproved.json
|
||||
var HookPullRequestApproved []byte
|
||||
|
||||
//go:embed HookPullRequestClosed.json
|
||||
var HookPullRequestClosed []byte
|
||||
|
||||
//go:embed HookPullRequestMerged.json
|
||||
var HookPullRequestMerged []byte
|
||||
|
||||
//go:embed WebhookReleaseBody.json
|
||||
var WebhookReleaseBody []byte
|
|
@ -12,6 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package testdata
|
||||
package fixtures
|
||||
|
||||
var accessTokenPayload = []byte(`access_token=sekret&scope=api&token_type=bearer`)
|
|
@ -12,9 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package testdata
|
||||
package fixtures
|
||||
|
||||
// sample repository list
|
||||
// sample repository list.
|
||||
var allProjectsPayload = []byte(`
|
||||
[
|
||||
{
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package testdata
|
||||
package fixtures
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -36,25 +36,25 @@ func NewServer(t *testing.T) *httptest.Server {
|
|||
switch r.URL.Path {
|
||||
case "/api/v4/projects":
|
||||
if r.FormValue("archived") == "false" {
|
||||
w.Write(notArchivedProjectsPayload)
|
||||
_, _ = w.Write(notArchivedProjectsPayload)
|
||||
} else {
|
||||
w.Write(allProjectsPayload)
|
||||
_, _ = w.Write(allProjectsPayload)
|
||||
}
|
||||
|
||||
return
|
||||
case "/api/v4/projects/diaspora/diaspora-client":
|
||||
w.Write(project4Payload)
|
||||
_, _ = w.Write(project4Payload)
|
||||
return
|
||||
case "/api/v4/projects/brightbox/puppet":
|
||||
case "/api/v4/projects/6":
|
||||
w.Write(project6Payload)
|
||||
_, _ = w.Write(project6Payload)
|
||||
return
|
||||
case "/api/v4/projects/4/hooks":
|
||||
switch r.Method {
|
||||
case http.MethodGet:
|
||||
w.Write(project4PayloadHooks)
|
||||
_, _ = w.Write(project4PayloadHooks)
|
||||
case http.MethodPost:
|
||||
w.Write(project4PayloadHook)
|
||||
_, _ = w.Write(project4PayloadHook)
|
||||
w.WriteHeader(201)
|
||||
}
|
||||
return
|
||||
|
@ -62,19 +62,19 @@ func NewServer(t *testing.T) *httptest.Server {
|
|||
w.WriteHeader(201)
|
||||
return
|
||||
case "/api/v4/projects/4/members/all/3":
|
||||
w.Write(project4PayloadMembers)
|
||||
_, _ = w.Write(project4PayloadMembers)
|
||||
return
|
||||
case "/api/v4/projects/diaspora/diaspora-client/members/all/3":
|
||||
w.Write(project4PayloadMembers)
|
||||
_, _ = w.Write(project4PayloadMembers)
|
||||
return
|
||||
case "/api/v4/projects/6/members/all/3":
|
||||
w.Write(project6PayloadMembers)
|
||||
_, _ = w.Write(project6PayloadMembers)
|
||||
return
|
||||
case "/oauth/token":
|
||||
w.Write(accessTokenPayload)
|
||||
_, _ = w.Write(accessTokenPayload)
|
||||
return
|
||||
case "/api/v4/user":
|
||||
w.Write(currentUserPayload)
|
||||
_, _ = w.Write(currentUserPayload)
|
||||
return
|
||||
}
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package testdata
|
||||
package fixtures
|
||||
|
||||
var currentUserPayload = []byte(`
|
||||
{
|
|
@ -24,7 +24,7 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"go.woodpecker-ci.org/woodpecker/v3/server/forge/gitlab/testdata"
|
||||
"go.woodpecker-ci.org/woodpecker/v3/server/forge/gitlab/fixtures"
|
||||
"go.woodpecker-ci.org/woodpecker/v3/server/forge/types"
|
||||
"go.woodpecker-ci.org/woodpecker/v3/server/model"
|
||||
)
|
||||
|
@ -49,7 +49,7 @@ func load(config string) *GitLab {
|
|||
|
||||
func Test_GitLab(t *testing.T) {
|
||||
// setup a dummy gitlab server
|
||||
server := testdata.NewServer(t)
|
||||
server := fixtures.NewServer(t)
|
||||
defer server.Close()
|
||||
|
||||
env := server.URL + "?client_id=test&client_secret=test"
|
||||
|
@ -125,11 +125,11 @@ func Test_GitLab(t *testing.T) {
|
|||
// Test hook method
|
||||
t.Run("parse push hook", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookPush),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookPush),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
assert.NoError(t, err)
|
||||
|
@ -147,11 +147,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("tag push hook", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookTag),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookTag),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
assert.NoError(t, err)
|
||||
|
@ -168,11 +168,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("merge request hook", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookPullRequest),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookPullRequest),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
// TODO: insert fake store into context to retrieve user & repo, this will activate fetching of ChangedFiles
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
|
@ -190,11 +190,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("ignore merge request hook without changes", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookPullRequestWithoutChanges),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookPullRequestWithoutChanges),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
// TODO: insert fake store into context to retrieve user & repo, this will activate fetching of ChangedFiles
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
|
@ -205,11 +205,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("ignore merge request approval", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookPullRequestApproved),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookPullRequestApproved),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
// TODO: insert fake store into context to retrieve user & repo, this will activate fetching of ChangedFiles
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
|
@ -220,11 +220,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("parse merge request closed", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookPullRequestClosed),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookPullRequestClosed),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
// TODO: insert fake store into context to retrieve user & repo, this will activate fetching of ChangedFiles
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
|
@ -241,11 +241,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("parse merge request merged", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.HookPullRequestMerged),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.HookPullRequestMerged),
|
||||
)
|
||||
req.Header = testdata.ServiceHookHeaders
|
||||
req.Header = fixtures.ServiceHookHeaders
|
||||
|
||||
// TODO: insert fake store into context to retrieve user & repo, this will activate fetching of ChangedFiles
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
|
@ -262,11 +262,11 @@ func Test_GitLab(t *testing.T) {
|
|||
|
||||
t.Run("release hook", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(
|
||||
testdata.ServiceHookMethod,
|
||||
testdata.ServiceHookURL.String(),
|
||||
bytes.NewReader(testdata.WebhookReleaseBody),
|
||||
fixtures.ServiceHookMethod,
|
||||
fixtures.ServiceHookURL.String(),
|
||||
bytes.NewReader(fixtures.WebhookReleaseBody),
|
||||
)
|
||||
req.Header = testdata.ReleaseHookHeaders
|
||||
req.Header = fixtures.ReleaseHookHeaders
|
||||
|
||||
hookRepo, pipeline, err := client.Hook(ctx, req)
|
||||
assert.NoError(t, err)
|
||||
|
|
962
server/forge/gitlab/testdata/hooks.go
vendored
962
server/forge/gitlab/testdata/hooks.go
vendored
|
@ -1,962 +0,0 @@
|
|||
// Copyright 2021 Woodpecker Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package testdata
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
var (
|
||||
ServiceHookMethod = http.MethodPost
|
||||
ServiceHookURL, _ = url.Parse(
|
||||
"http://10.40.8.5:8000/hook?owner=test&name=woodpecker&access_token=dummyToken." +
|
||||
"eyJ0ZXh0IjoidGVzdC93b29kcGVja2VyIiwidHlwZSI6Imhvb2sifQ.x3kPnmZtxZQ_9_eMhfQ1HSmj_SLhdT_Lu2hMczWjKh0")
|
||||
ServiceHookHeaders = http.Header{
|
||||
"Content-Type": []string{"application/json"},
|
||||
"User-Agent": []string{"GitLab/14.3.0"},
|
||||
"X-Gitlab-Event": []string{"Service Hook"},
|
||||
}
|
||||
ReleaseHookHeaders = http.Header{
|
||||
"Content-Type": []string{"application/json"},
|
||||
"User-Agent": []string{"GitLab/14.3.0"},
|
||||
"X-Gitlab-Event": []string{"Release Hook"},
|
||||
}
|
||||
)
|
||||
|
||||
// HookPush is payload of a push event
|
||||
var HookPush = []byte(`
|
||||
{
|
||||
"object_kind": "push",
|
||||
"event_name": "push",
|
||||
"before": "ffe8eb4f91d1fe6bc49f1e610e50e4b5767f0104",
|
||||
"after": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"ref": "refs/heads/main",
|
||||
"checkout_sha": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": null,
|
||||
"user_id": 2,
|
||||
"user_name": "the test",
|
||||
"user_username": "test",
|
||||
"user_email": "",
|
||||
"user_avatar": "https://www.gravatar.com/avatar/dd46a756faad4727fb679320751f6dea?s=80&d=identicon",
|
||||
"project_id": 2,
|
||||
"project": {
|
||||
"id": 2,
|
||||
"name": "Woodpecker",
|
||||
"description": "",
|
||||
"web_url": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"namespace": "the test",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "test/woodpecker",
|
||||
"default_branch": "develop",
|
||||
"ci_config_path": null,
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"http_url": "http://10.40.8.5:3200/test/woodpecker.git"
|
||||
},
|
||||
"commits": [
|
||||
{
|
||||
"id": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": "Update main.go",
|
||||
"title": "Update main.go",
|
||||
"timestamp": "2021-09-27T04:46:14+00:00",
|
||||
"url": "http://10.40.8.5:3200/test/woodpecker/-/commit/16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"author": {
|
||||
"name": "the test",
|
||||
"email": "test@test.test"
|
||||
},
|
||||
"added": [
|
||||
|
||||
],
|
||||
"modified": [
|
||||
"cmd/cli/main.go"
|
||||
],
|
||||
"removed": [
|
||||
|
||||
]
|
||||
}
|
||||
],
|
||||
"total_commits_count": 1,
|
||||
"push_options": {
|
||||
},
|
||||
"repository": {
|
||||
"name": "Woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"visibility_level": 20
|
||||
}
|
||||
}`)
|
||||
|
||||
// HookTag is payload of a TAG event
|
||||
var HookTag = []byte(`
|
||||
{
|
||||
"object_kind": "tag_push",
|
||||
"event_name": "tag_push",
|
||||
"before": "0000000000000000000000000000000000000000",
|
||||
"after": "fabed3d94cd03e6c2b7958afa9569c18a24d301f",
|
||||
"ref": "refs/tags/v22",
|
||||
"checkout_sha": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": "hi",
|
||||
"user_id": 2,
|
||||
"user_name": "the test",
|
||||
"user_username": "test",
|
||||
"user_email": "",
|
||||
"user_avatar": "https://www.gravatar.com/avatar/dd46a756faad4727fb679320751f6dea?s=80&d=identicon",
|
||||
"project_id": 2,
|
||||
"project": {
|
||||
"id": 2,
|
||||
"name": "Woodpecker",
|
||||
"description": "",
|
||||
"web_url": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"namespace": "the test",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "test/woodpecker",
|
||||
"default_branch": "develop",
|
||||
"ci_config_path": null,
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"http_url": "http://10.40.8.5:3200/test/woodpecker.git"
|
||||
},
|
||||
"commits": [
|
||||
{
|
||||
"id": "16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"message": "Update main.go",
|
||||
"title": "Update main.go",
|
||||
"timestamp": "2021-09-27T04:46:14+00:00",
|
||||
"url": "http://10.40.8.5:3200/test/woodpecker/-/commit/16862e368d8ab812e48833b741dad720d6e2cb7f",
|
||||
"author": {
|
||||
"name": "the test",
|
||||
"email": "test@test.test"
|
||||
},
|
||||
"added": [
|
||||
|
||||
],
|
||||
"modified": [
|
||||
"cmd/cli/main.go"
|
||||
],
|
||||
"removed": [
|
||||
|
||||
]
|
||||
}
|
||||
],
|
||||
"total_commits_count": 1,
|
||||
"push_options": {
|
||||
},
|
||||
"repository": {
|
||||
"name": "Woodpecker",
|
||||
"url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "http://10.40.8.5:3200/test/woodpecker",
|
||||
"git_http_url": "http://10.40.8.5:3200/test/woodpecker.git",
|
||||
"git_ssh_url": "git@10.40.8.5:test/woodpecker.git",
|
||||
"visibility_level": 20
|
||||
}
|
||||
}`)
|
||||
|
||||
// HookPullRequest is payload of a PULL_REQUEST event
|
||||
var HookPullRequest = []byte(`
|
||||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": 2251488,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2022-01-10 15:23:41 UTC",
|
||||
"description": "",
|
||||
"head_pipeline_id": 449733536,
|
||||
"id": 134400602,
|
||||
"iid": 3,
|
||||
"last_edited_at": "2022-01-17 15:46:23 UTC",
|
||||
"last_edited_by_id": 2251488,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "unchecked",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "anbraten-main-patch-05373",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 1,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Update client.go 🎉",
|
||||
"updated_at": "2022-01-17 15:47:39 UTC",
|
||||
"updated_by_id": 2251488,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/merge_requests/3",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"message": "Update folder/todo.txt",
|
||||
"title": "Update folder/todo.txt",
|
||||
"timestamp": "2022-01-17T15:47:38+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/commit/c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [
|
||||
2251488
|
||||
],
|
||||
"state": "opened",
|
||||
"blocking_discussions_resolved": true,
|
||||
"action": "update",
|
||||
"oldrev": "8b641937b7340066d882b9d8a8cc5b0573a207de"
|
||||
},
|
||||
"labels": [
|
||||
|
||||
],
|
||||
"changes": {
|
||||
"updated_at": {
|
||||
"previous": "2022-01-17 15:46:23 UTC",
|
||||
"current": "2022-01-17 15:47:39 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker"
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
]
|
||||
}
|
||||
`)
|
||||
|
||||
var HookPullRequestWithoutChanges = []byte(`
|
||||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": 2251488,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2022-01-10 15:23:41 UTC",
|
||||
"description": "",
|
||||
"head_pipeline_id": 449733536,
|
||||
"id": 134400602,
|
||||
"iid": 3,
|
||||
"last_edited_at": "2022-01-17 15:46:23 UTC",
|
||||
"last_edited_by_id": 2251488,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "unchecked",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "anbraten-main-patch-05373",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 1,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Update client.go 🎉",
|
||||
"updated_at": "2022-01-17 15:47:39 UTC",
|
||||
"updated_by_id": 2251488,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/merge_requests/3",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"message": "Update folder/todo.txt",
|
||||
"title": "Update folder/todo.txt",
|
||||
"timestamp": "2022-01-17T15:47:38+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/commit/c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [
|
||||
2251488
|
||||
],
|
||||
"state": "opened",
|
||||
"blocking_discussions_resolved": true,
|
||||
"action": "update"
|
||||
},
|
||||
"labels": [
|
||||
|
||||
],
|
||||
"changes": {
|
||||
"updated_at": {
|
||||
"previous": "2022-01-17 15:46:23 UTC",
|
||||
"current": "2022-01-17 15:47:39 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker"
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
]
|
||||
}
|
||||
`)
|
||||
|
||||
var HookPullRequestApproved = []byte(`
|
||||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": 2251488,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2022-01-10 15:23:41 UTC",
|
||||
"description": "",
|
||||
"head_pipeline_id": 449733536,
|
||||
"id": 134400602,
|
||||
"iid": 3,
|
||||
"last_edited_at": "2022-01-17 15:46:23 UTC",
|
||||
"last_edited_by_id": 2251488,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "unchecked",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "anbraten-main-patch-05373",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 1,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Update client.go 🎉",
|
||||
"updated_at": "2022-01-17 15:47:39 UTC",
|
||||
"updated_by_id": 2251488,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/merge_requests/3",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker",
|
||||
"avatar_url": "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg",
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"message": "Update folder/todo.txt",
|
||||
"title": "Update folder/todo.txt",
|
||||
"timestamp": "2022-01-17T15:47:38+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker/-/commit/c136499ec574e1034b24c5d306de9acda3005367",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [
|
||||
2251488
|
||||
],
|
||||
"state": "opened",
|
||||
"blocking_discussions_resolved": true,
|
||||
"action": "approved"
|
||||
},
|
||||
"labels": [
|
||||
|
||||
],
|
||||
"changes": {
|
||||
"updated_at": {
|
||||
"previous": "2022-01-17 15:46:23 UTC",
|
||||
"current": "2022-01-17 15:47:39 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker"
|
||||
},
|
||||
"assignees": [
|
||||
{
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "some@mail.info"
|
||||
}
|
||||
]
|
||||
}
|
||||
`)
|
||||
|
||||
var HookPullRequestClosed = []byte(`
|
||||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "[REDACTED]"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": null,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2023-12-05 18:40:22 UTC",
|
||||
"description": "",
|
||||
"draft": false,
|
||||
"head_pipeline_id": null,
|
||||
"id": 268189426,
|
||||
"iid": 4,
|
||||
"last_edited_at": null,
|
||||
"last_edited_by_id": null,
|
||||
"merge_commit_sha": null,
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "can_be_merged",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "patch-1",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 2,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Add new file",
|
||||
"updated_at": "2023-12-05 18:40:34 UTC",
|
||||
"updated_by_id": null,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/merge_requests/4",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"message": "Add new file",
|
||||
"title": "Add new file",
|
||||
"timestamp": "2023-12-05T18:39:57+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/commit/3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "[redacted]"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [],
|
||||
"reviewer_ids": [],
|
||||
"labels": [],
|
||||
"state": "closed",
|
||||
"blocking_discussions_resolved": true,
|
||||
"first_contribution": false,
|
||||
"detailed_merge_status": "not_open",
|
||||
"action": "close"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"state_id": {
|
||||
"previous": 1,
|
||||
"current": 2
|
||||
},
|
||||
"updated_at": {
|
||||
"previous": "2023-12-05 18:40:28 UTC",
|
||||
"current": "2023-12-05 18:40:34 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test"
|
||||
}
|
||||
}
|
||||
`)
|
||||
|
||||
var HookPullRequestMerged = []byte(`
|
||||
{
|
||||
"object_kind": "merge_request",
|
||||
"event_type": "merge_request",
|
||||
"user": {
|
||||
"id": 2251488,
|
||||
"name": "Anbraten",
|
||||
"username": "anbraten",
|
||||
"avatar_url": "https://secure.gravatar.com/avatar/fc9b6fe77c6b732a02925a62a81f05a0?s=80&d=identicon",
|
||||
"email": "[REDACTED]"
|
||||
},
|
||||
"project": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"assignee_id": null,
|
||||
"author_id": 2251488,
|
||||
"created_at": "2023-12-05 18:40:22 UTC",
|
||||
"description": "",
|
||||
"draft": false,
|
||||
"head_pipeline_id": null,
|
||||
"id": 268189426,
|
||||
"iid": 4,
|
||||
"last_edited_at": null,
|
||||
"last_edited_by_id": null,
|
||||
"merge_commit_sha": "43411b53d670203e887c4985c4e58e8e6b7c109e",
|
||||
"merge_error": null,
|
||||
"merge_params": {
|
||||
"force_remove_source_branch": "1"
|
||||
},
|
||||
"merge_status": "can_be_merged",
|
||||
"merge_user_id": null,
|
||||
"merge_when_pipeline_succeeds": false,
|
||||
"milestone_id": null,
|
||||
"source_branch": "patch-1",
|
||||
"source_project_id": 32059612,
|
||||
"state_id": 3,
|
||||
"target_branch": "main",
|
||||
"target_project_id": 32059612,
|
||||
"time_estimate": 0,
|
||||
"title": "Add new file",
|
||||
"updated_at": "2023-12-05 18:43:00 UTC",
|
||||
"updated_by_id": null,
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/merge_requests/4",
|
||||
"source": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"target": {
|
||||
"id": 32059612,
|
||||
"name": "woodpecker-test",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"git_http_url": "https://gitlab.com/anbraten/woodpecker-test.git",
|
||||
"namespace": "Anbraten",
|
||||
"visibility_level": 20,
|
||||
"path_with_namespace": "anbraten/woodpecker-test",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"ssh_url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"http_url": "https://gitlab.com/anbraten/woodpecker-test.git"
|
||||
},
|
||||
"last_commit": {
|
||||
"id": "3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"message": "Add new file",
|
||||
"title": "Add new file",
|
||||
"timestamp": "2023-12-05T18:39:57+00:00",
|
||||
"url": "https://gitlab.com/anbraten/woodpecker-test/-/commit/3e4db3586b65dd401de8c77b3ac343fd24cbf89b",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "[redacted]"
|
||||
}
|
||||
},
|
||||
"work_in_progress": false,
|
||||
"total_time_spent": 0,
|
||||
"time_change": 0,
|
||||
"human_total_time_spent": null,
|
||||
"human_time_change": null,
|
||||
"human_time_estimate": null,
|
||||
"assignee_ids": [],
|
||||
"reviewer_ids": [],
|
||||
"labels": [],
|
||||
"state": "merged",
|
||||
"blocking_discussions_resolved": true,
|
||||
"first_contribution": false,
|
||||
"detailed_merge_status": "not_open",
|
||||
"action": "merge"
|
||||
},
|
||||
"labels": [],
|
||||
"changes": {
|
||||
"state_id": {
|
||||
"previous": 4,
|
||||
"current": 3
|
||||
},
|
||||
"updated_at": {
|
||||
"previous": "2023-12-05 18:43:00 UTC",
|
||||
"current": "2023-12-05 18:43:00 UTC"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"name": "woodpecker-test",
|
||||
"url": "git@gitlab.com:anbraten/woodpecker-test.git",
|
||||
"description": "",
|
||||
"homepage": "https://gitlab.com/anbraten/woodpecker-test"
|
||||
}
|
||||
}
|
||||
`)
|
||||
|
||||
var WebhookReleaseBody = []byte(`
|
||||
{
|
||||
"id": 4268085,
|
||||
"created_at": "2022-02-09 20:19:09 UTC",
|
||||
"description": "new version desc",
|
||||
"name": "Awesome version 0.0.2",
|
||||
"released_at": "2022-02-09 20:19:09 UTC",
|
||||
"tag": "0.0.2",
|
||||
"object_kind": "release",
|
||||
"project": {
|
||||
"id": 32521798,
|
||||
"name": "ci",
|
||||
"description": "",
|
||||
"web_url": "https://gitlab.com/anbratens-test/ci",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@gitlab.com:anbratens-test/ci.git",
|
||||
"git_http_url": "https://gitlab.com/anbratens-test/ci.git",
|
||||
"namespace": "anbratens-test",
|
||||
"visibility_level": 0,
|
||||
"path_with_namespace": "anbratens-test/ci",
|
||||
"default_branch": "main",
|
||||
"ci_config_path": "",
|
||||
"homepage": "https://gitlab.com/anbratens-test/ci",
|
||||
"url": "git@gitlab.com:anbratens-test/ci.git",
|
||||
"ssh_url": "git@gitlab.com:anbratens-test/ci.git",
|
||||
"http_url": "https://gitlab.com/anbratens-test/ci.git"
|
||||
},
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/releases/0.0.2",
|
||||
"action": "create",
|
||||
"assets": {
|
||||
"count": 4,
|
||||
"links": [
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"format": "zip",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.zip"
|
||||
},
|
||||
{
|
||||
"format": "tar.gz",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.tar.gz"
|
||||
},
|
||||
{
|
||||
"format": "tar.bz2",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.tar.bz2"
|
||||
},
|
||||
{
|
||||
"format": "tar",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/archive/0.0.2/ci-0.0.2.tar"
|
||||
}
|
||||
]
|
||||
},
|
||||
"commit": {
|
||||
"id": "0b8c02955ba445ea70d22824d9589678852e2b93",
|
||||
"message": "Initial commit",
|
||||
"title": "Initial commit",
|
||||
"timestamp": "2022-01-03T10:39:51+00:00",
|
||||
"url": "https://gitlab.com/anbratens-test/ci/-/commit/0b8c02955ba445ea70d22824d9589678852e2b93",
|
||||
"author": {
|
||||
"name": "Anbraten",
|
||||
"email": "2251488-anbraten@users.noreply.gitlab.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
`)
|
Loading…
Reference in a new issue