Differential D8798 Diff 31729 swh/web/tests/save_origin_webhooks/data/bitbucket_webhook_payload.json
Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/save_origin_webhooks/data/bitbucket_webhook_payload.json
- This file was added.
{ | |||||
"push": { | |||||
"changes": [ | |||||
{ | |||||
"old": { | |||||
"name": "main", | |||||
"target": { | |||||
"type": "commit", | |||||
"hash": "f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72", | |||||
"date": "2022-10-26T09:57:22+00:00", | |||||
"author": { | |||||
"type": "author", | |||||
"raw": "John Doe <john.doe@example.org>", | |||||
"user": { | |||||
"display_name": "John Doe", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/users/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://secure.gravatar.com/avatar/d522e4a403af0605784d0f7936a506a3?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAL-1.png" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D/" | |||||
} | |||||
}, | |||||
"type": "user", | |||||
"uuid": "{65f18e6c-2e1c-4a89-99c1-f7bad58d5a39}", | |||||
"account_id": "5d1483f6f46aa30c271c968e", | |||||
"nickname": "John Doe" | |||||
} | |||||
}, | |||||
"message": "Initial commit", | |||||
"summary": { | |||||
"type": "rendered", | |||||
"raw": "Initial commit", | |||||
"markup": "markdown", | |||||
"html": "<p>Initial commit</p>" | |||||
}, | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/commits/f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
} | |||||
}, | |||||
"parents": [], | |||||
"rendered": {}, | |||||
"properties": {} | |||||
}, | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/refs/branches/main" | |||||
}, | |||||
"commits": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commits/main" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/branch/main" | |||||
} | |||||
}, | |||||
"type": "branch", | |||||
"merge_strategies": [ | |||||
"merge_commit", | |||||
"squash", | |||||
"fast_forward" | |||||
], | |||||
"default_merge_strategy": "merge_commit" | |||||
}, | |||||
"new": { | |||||
"name": "main", | |||||
"target": { | |||||
"type": "commit", | |||||
"hash": "45ed1aeeb43008b0ec5666ef67242f66639920d7", | |||||
"date": "2022-10-26T10:03:24+00:00", | |||||
"author": { | |||||
"type": "author", | |||||
"raw": "John Doe <john.doe@example.org>", | |||||
"user": { | |||||
"display_name": "John Doe", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/users/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://secure.gravatar.com/avatar/d522e4a403af0605784d0f7936a506a3?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAL-1.png" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D/" | |||||
} | |||||
}, | |||||
"type": "user", | |||||
"uuid": "{65f18e6c-2e1c-4a89-99c1-f7bad58d5a39}", | |||||
"account_id": "5d1483f6f46aa30c271c968e", | |||||
"nickname": "John Doe" | |||||
} | |||||
}, | |||||
"message": "Add new line in README to trigger webhook when pushing commit\n", | |||||
"summary": { | |||||
"type": "rendered", | |||||
"raw": "Add new line in README to trigger webhook when pushing commit\n", | |||||
"markup": "markdown", | |||||
"html": "<p>Add new line in README to trigger webhook when pushing commit</p>" | |||||
}, | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/45ed1aeeb43008b0ec5666ef67242f66639920d7" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/commits/45ed1aeeb43008b0ec5666ef67242f66639920d7" | |||||
} | |||||
}, | |||||
"parents": [ | |||||
{ | |||||
"type": "commit", | |||||
"hash": "f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/commits/f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
} | |||||
} | |||||
} | |||||
], | |||||
"rendered": {}, | |||||
"properties": {} | |||||
}, | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/refs/branches/main" | |||||
}, | |||||
"commits": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commits/main" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/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/johndoe/webhook-test/commits?include=45ed1aeeb43008b0ec5666ef67242f66639920d7&exclude=f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
}, | |||||
"diff": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/diff/45ed1aeeb43008b0ec5666ef67242f66639920d7..f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/branches/compare/45ed1aeeb43008b0ec5666ef67242f66639920d7..f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
} | |||||
}, | |||||
"commits": [ | |||||
{ | |||||
"type": "commit", | |||||
"hash": "45ed1aeeb43008b0ec5666ef67242f66639920d7", | |||||
"date": "2022-10-26T10:03:24+00:00", | |||||
"author": { | |||||
"type": "author", | |||||
"raw": "John Doe <john.doe@example.org>", | |||||
"user": { | |||||
"display_name": "John Doe", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/users/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://secure.gravatar.com/avatar/d522e4a403af0605784d0f7936a506a3?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAL-1.png" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D/" | |||||
} | |||||
}, | |||||
"type": "user", | |||||
"uuid": "{65f18e6c-2e1c-4a89-99c1-f7bad58d5a39}", | |||||
"account_id": "5d1483f6f46aa30c271c968e", | |||||
"nickname": "John Doe" | |||||
} | |||||
}, | |||||
"message": "Add new line in README to trigger webhook when pushing commit\n", | |||||
"summary": { | |||||
"type": "rendered", | |||||
"raw": "Add new line in README to trigger webhook when pushing commit\n", | |||||
"markup": "markdown", | |||||
"html": "<p>Add new line in README to trigger webhook when pushing commit</p>" | |||||
}, | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/45ed1aeeb43008b0ec5666ef67242f66639920d7" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/commits/45ed1aeeb43008b0ec5666ef67242f66639920d7" | |||||
}, | |||||
"diff": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/diff/45ed1aeeb43008b0ec5666ef67242f66639920d7" | |||||
}, | |||||
"approve": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/45ed1aeeb43008b0ec5666ef67242f66639920d7/approve" | |||||
}, | |||||
"comments": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/45ed1aeeb43008b0ec5666ef67242f66639920d7/comments" | |||||
}, | |||||
"statuses": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/45ed1aeeb43008b0ec5666ef67242f66639920d7/statuses" | |||||
}, | |||||
"patch": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/patch/45ed1aeeb43008b0ec5666ef67242f66639920d7" | |||||
} | |||||
}, | |||||
"parents": [ | |||||
{ | |||||
"type": "commit", | |||||
"hash": "f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test/commit/f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test/commits/f069b8b3a68b043cdab1cabd2b3415eaf1b0ef72" | |||||
} | |||||
} | |||||
} | |||||
], | |||||
"rendered": {}, | |||||
"properties": {} | |||||
} | |||||
] | |||||
} | |||||
] | |||||
}, | |||||
"repository": { | |||||
"type": "repository", | |||||
"full_name": "johndoe/webhook-test", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/repositories/johndoe/webhook-test" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/webhook-test" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://bytebucket.org/ravatar/%7Bb5d2882b-effe-4cf8-bb5a-8a757bdbfe28%7D?ts=default" | |||||
} | |||||
}, | |||||
"name": "webhook-test", | |||||
"scm": "git", | |||||
"website": null, | |||||
"owner": { | |||||
"display_name": "John Doe", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/users/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://secure.gravatar.com/avatar/d522e4a403af0605784d0f7936a506a3?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAL-1.png" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D/" | |||||
} | |||||
}, | |||||
"type": "user", | |||||
"uuid": "{65f18e6c-2e1c-4a89-99c1-f7bad58d5a39}", | |||||
"account_id": "5d1483f6f46aa30c271c968e", | |||||
"nickname": "John Doe" | |||||
}, | |||||
"workspace": { | |||||
"type": "workspace", | |||||
"uuid": "{65f18e6c-2e1c-4a89-99c1-f7bad58d5a39}", | |||||
"name": "John Doe", | |||||
"slug": "johndoe", | |||||
"links": { | |||||
"avatar": { | |||||
"href": "https://bitbucket.org/workspaces/johndoe/avatar/?ts=1561625644" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/" | |||||
}, | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/workspaces/johndoe" | |||||
} | |||||
} | |||||
}, | |||||
"is_private": false, | |||||
"project": { | |||||
"type": "project", | |||||
"key": "WEB", | |||||
"uuid": "{4c11da16-a545-45c4-84c2-d0ba937a2e23}", | |||||
"name": "webhook-test", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/workspaces/johndoe/projects/WEB" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/johndoe/workspace/projects/WEB" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://bitbucket.org/account/user/johndoe/projects/WEB/avatar/32?ts=1666778241" | |||||
} | |||||
} | |||||
}, | |||||
"uuid": "{b5d2882b-effe-4cf8-bb5a-8a757bdbfe28}" | |||||
}, | |||||
"actor": { | |||||
"display_name": "John Doe", | |||||
"links": { | |||||
"self": { | |||||
"href": "https://api.bitbucket.org/2.0/users/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D" | |||||
}, | |||||
"avatar": { | |||||
"href": "https://secure.gravatar.com/avatar/d522e4a403af0605784d0f7936a506a3?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FAL-1.png" | |||||
}, | |||||
"html": { | |||||
"href": "https://bitbucket.org/%7B65f18e6c-2e1c-4a89-99c1-f7bad58d5a39%7D/" | |||||
} | |||||
}, | |||||
"type": "user", | |||||
"uuid": "{65f18e6c-2e1c-4a89-99c1-f7bad58d5a39}", | |||||
"account_id": "5d1483f6f46aa30c271c968e", | |||||
"nickname": "John Doe" | |||||
} | |||||
} | |||||
No newline at end of file |