Skip to content

Instantly share code, notes, and snippets.

@lightdiscord
Last active January 10, 2018 13:38
Show Gist options
  • Select an option

  • Save lightdiscord/82cf935e8f07b37f9bfbfcf3f816169c to your computer and use it in GitHub Desktop.

Select an option

Save lightdiscord/82cf935e8f07b37f9bfbfcf3f816169c to your computer and use it in GitHub Desktop.
Gitlab webhook requests

Gitlab webhooks requests

{"object_kind":"note","user":{"name":"Valentin Burgaud","username":"Xharos","avatar_url":"https://secure.gravatar.com/avatar/d8a883df0cf70b45ea0e00042d70a6b4?s=80&d=identicon"},"project_id":4649251,"project":{"id":4649251,"name":"Api","description":"A simple layer to bridge between network and minecraft servers. Also provided some spigot utilities tools","web_url":"https://gitlab.com/islands-wars/api","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/project/avatar/4649251/gitlab_dev_logo.png","git_ssh_url":"[email protected]:islands-wars/api.git","git_http_url":"https://gitlab.com/islands-wars/api.git","namespace":"Islands Wars","visibility_level":20,"path_with_namespace":"islands-wars/api","default_branch":"master","ci_config_path":null,"homepage":"https://gitlab.com/islands-wars/api","url":"[email protected]:islands-wars/api.git","ssh_url":"[email protected]:islands-wars/api.git","http_url":"https://gitlab.com/islands-wars/api.git"},"object_attributes":{"id":53379912,"note":"We can maybe thinks a little about this issue, which are going to be used a lots.\nWe can wait for release 0.4 before add this issue.","noteable_type":"Issue","author_id":393904,"created_at":"2018-01-04 23:18:22 UTC","updated_at":"2018-01-04 23:18:22 UTC","project_id":4649251,"attachment":null,"line_code":null,"commit_id":null,"noteable_id":8353391,"st_diff":null,"system":false,"updated_by_id":null,"type":null,"position":null,"original_position":null,"resolved_at":null,"resolved_by_id":null,"discussion_id":"913fcc992c8cefc638ca50dae987c005168f4639","change_position":null,"resolved_by_push":null,"url":"https://gitlab.com/islands-wars/api/issues/10#note_53379912"},"repository":{"name":"Api","url":"[email protected]:islands-wars/api.git","description":"A simple layer to bridge between network and minecraft servers. Also provided some spigot utilities tools","homepage":"https://gitlab.com/islands-wars/api"},"issue":{"assignee_id":393904,"author_id":826910,"closed_at":null,"confidential":false,"created_at":"2017-12-27 10:38:52 UTC","deleted_at":null,"description":"Thé easiest way will be to follow the \".schematic\" pattern loading it from an NBTInputStream and paste the block (ignore air block)\n\nA fastest way to deal with huge schems will be to paste block through NMS code to avoid light charge.","due_date":"2018-01-31","id":8353391,"iid":10,"last_edited_at":"2017-12-29 12:51:03 UTC","last_edited_by_id":393904,"milestone_id":434812,"moved_to_id":null,"project_id":4649251,"relative_position":1073746323,"state":"opened","time_estimate":0,"title":"Past block","updated_at":"2018-01-04 23:18:22 UTC","updated_by_id":393904,"url":"https://gitlab.com/islands-wars/api/issues/10","total_time_spent":0,"human_total_time_spent":null,"human_time_estimate":null,"assignee_ids":[393904,826910]}}
{"object_kind":"pipeline","object_attributes":{"id":15827681,"ref":"develop","tag":false,"sha":"e42fdfecfb290e642b0ac13b409fc054bd756bd7","before_sha":"909856cc43a2a68cc65ede84c60d9c17eb586664","status":"failed","stages":["deploy"],"created_at":"2018-01-05 13:42:06 UTC","finished_at":"2018-01-05 13:47:27 UTC","duration":61},"user":{"name":"Valentin Burgaud","username":"Xharos","avatar_url":"https://secure.gravatar.com/avatar/d8a883df0cf70b45ea0e00042d70a6b4?s=80&d=identicon"},"project":{"id":4649251,"name":"Api","description":"A simple layer to bridge between network and minecraft servers. Also provided some spigot utilities tools","web_url":"https://gitlab.com/islands-wars/api","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/project/avatar/4649251/gitlab_dev_logo.png","git_ssh_url":"[email protected]:islands-wars/api.git","git_http_url":"https://gitlab.com/islands-wars/api.git","namespace":"Islands Wars","visibility_level":20,"path_with_namespace":"islands-wars/api","default_branch":"master","ci_config_path":null},"commit":{"id":"e42fdfecfb290e642b0ac13b409fc054bd756bd7","message":"Push version\n","timestamp":"2018-01-05T14:41:56+01:00","url":"https://gitlab.com/islands-wars/api/commit/e42fdfecfb290e642b0ac13b409fc054bd756bd7","author":{"name":"Xharos","email":"[email protected]"}},"builds":[{"id":46830761,"stage":"deploy","name":"deploy","status":"failed","created_at":"2018-01-05 13:42:06 UTC","started_at":"2018-01-05 13:46:24 UTC","finished_at":"2018-01-05 13:47:26 UTC","when":"on_success","manual":false,"user":{"name":"Valentin Burgaud","username":"Xharos","avatar_url":"https://secure.gravatar.com/avatar/d8a883df0cf70b45ea0e00042d70a6b4?s=80&d=identicon"},"runner":{"id":211822,"description":"Runner for IslandsWars - API (master)","active":true,"is_shared":false},"artifacts_file":{"filename":null,"size":0}}]}
{"object_kind":"pipeline","object_attributes":{"id":15860006,"ref":"develop","tag":false,"sha":"45b6e9abe95154f8fb4803293d99a432ad16075c","before_sha":"285c9b5b5c350a60b3c04301850396dbe35f6a47","status":"success","stages":["test","build","deploy"],"created_at":"2018-01-06 17:49:44 UTC","finished_at":"2018-01-06 18:14:08 UTC","duration":1457},"user":{"name":"LightDiscord","username":"LightDiscord","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/1189021/avatar.png"},"project":{"id":5040793,"name":"Crochet","description":"A process in Rust that transforms Webhooks from Gitlab, and sends them to Discord.","web_url":"https://gitlab.com/islands-wars/crochet","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/project/avatar/5040793/CommentPhotos.com_1407352155.jpg","git_ssh_url":"[email protected]:islands-wars/crochet.git","git_http_url":"https://gitlab.com/islands-wars/crochet.git","namespace":"Islands Wars","visibility_level":20,"path_with_namespace":"islands-wars/crochet","default_branch":"master","ci_config_path":null},"commit":{"id":"45b6e9abe95154f8fb4803293d99a432ad16075c","message":"Handle pipeline#success\n","timestamp":"2018-01-06T18:49:33+01:00","url":"https://gitlab.com/islands-wars/crochet/commit/45b6e9abe95154f8fb4803293d99a432ad16075c","author":{"name":"LightDiscord","email":"[email protected]"}},"builds":[{"id":46937991,"stage":"deploy","name":"pages","status":"success","created_at":"2018-01-06 17:49:44 UTC","started_at":"2018-01-06 18:04:05 UTC","finished_at":"2018-01-06 18:14:08 UTC","when":"on_success","manual":false,"user":{"name":"LightDiscord","username":"LightDiscord","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/1189021/avatar.png"},"runner":{"id":44949,"description":"shared-runners-manager-4.gitlab.com","active":true,"is_shared":true},"artifacts_file":{"filename":"artifacts.zip","size":34019337}},{"id":46937990,"stage":"build","name":"build","status":"success","created_at":"2018-01-06 17:49:44 UTC","started_at":"2018-01-06 17:56:40 UTC","finished_at":"2018-01-06 18:04:03 UTC","when":"on_success","manual":false,"user":{"name":"LightDiscord","username":"LightDiscord","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/1189021/avatar.png"},"runner":{"id":44949,"description":"shared-runners-manager-4.gitlab.com","active":true,"is_shared":true},"artifacts_file":{"filename":"artifacts.zip","size":2194745}},{"id":46937989,"stage":"test","name":"test","status":"success","created_at":"2018-01-06 17:49:44 UTC","started_at":"2018-01-06 17:49:47 UTC","finished_at":"2018-01-06 17:56:38 UTC","when":"on_success","manual":false,"user":{"name":"LightDiscord","username":"LightDiscord","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/1189021/avatar.png"},"runner":{"id":44949,"description":"shared-runners-manager-4.gitlab.com","active":true,"is_shared":true},"artifacts_file":{"filename":null,"size":0}}]}
{"object_kind":"pipeline","object_attributes":{"id":15789951,"ref":"master","tag":false,"sha":"640e3f2da020d696548dba7b17e81105365778cf","before_sha":"5cefbd73bb67eb17ddc51c6ce462cdd10484f3c7","status":"success","stages":["deploy","javadoc","deploy"],"created_at":"2018-01-04 16:15:03 UTC","finished_at":"2018-01-04 16:21:51 UTC","duration":24},"user":{"name":"Vinetos","username":"Vinetos","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/826910/avatar.png"},"project":{"id":4649251,"name":"Api","description":"A simple layer to bridge between network and minecraft servers. Also provided some spigot utilities tools","web_url":"https://gitlab.com/islands-wars/api","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/project/avatar/4649251/gitlab_dev_logo.png","git_ssh_url":"[email protected]:islands-wars/api.git","git_http_url":"https://gitlab.com/islands-wars/api.git","namespace":"Islands Wars","visibility_level":20,"path_with_namespace":"islands-wars/api","default_branch":"master","ci_config_path":null},"commit":{"id":"640e3f2da020d696548dba7b17e81105365778cf","message":"Fix test of command\n","timestamp":"2018-01-04T17:14:30+01:00","url":"https://gitlab.com/islands-wars/api/commit/640e3f2da020d696548dba7b17e81105365778cf","author":{"name":"Valentin Chassignol","email":"[email protected]"}},"builds":[{"id":46707820,"stage":"javadoc","name":"pages","status":"success","created_at":"2018-01-04 16:15:03 UTC","started_at":"2018-01-04 16:21:15 UTC","finished_at":"2018-01-04 16:21:27 UTC","when":"on_success","manual":false,"user":{"name":"Vinetos","username":"Vinetos","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/826910/avatar.png"},"runner":{"id":211822,"description":"Runner for IslandsWars - API (master)","active":true,"is_shared":false},"artifacts_file":{"filename":null,"size":0}},{"id":46707819,"stage":"deploy","name":"deploy","status":"success","created_at":"2018-01-04 16:15:03 UTC","started_at":"2018-01-04 16:16:50 UTC","finished_at":"2018-01-04 16:17:02 UTC","when":"on_success","manual":false,"user":{"name":"Vinetos","username":"Vinetos","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/826910/avatar.png"},"runner":{"id":211822,"description":"Runner for IslandsWars - API (master)","active":true,"is_shared":false},"artifacts_file":{"filename":null,"size":0}}]}
{"object_kind":"push","event_name":"push","before":"c6a6d2457b57a8dde4358b89dc5566eacad77d4c","after":"625e47b31a78c8bb260c6d5897cd555da0d0b6cf","ref":"refs/heads/develop","checkout_sha":"625e47b31a78c8bb260c6d5897cd555da0d0b6cf","message":null,"user_id":1189021,"user_name":"LightDiscord","user_username":"LightDiscord","user_email":"[email protected]","user_avatar":"https://assets.gitlab-static.net/uploads/-/system/user/avatar/1189021/avatar.png","project_id":5040793,"project":{"id":5040793,"name":"Crochet","description":"A process in Rust that transforms Webhooks from Gitlab, and sends them to Discord.","web_url":"https://gitlab.com/islands-wars/crochet","avatar_url":"https://assets.gitlab-static.net/uploads/-/system/project/avatar/5040793/CommentPhotos.com_1407352155.jpg","git_ssh_url":"[email protected]:islands-wars/crochet.git","git_http_url":"https://gitlab.com/islands-wars/crochet.git","namespace":"Islands Wars","visibility_level":20,"path_with_namespace":"islands-wars/crochet","default_branch":"master","ci_config_path":null,"homepage":"https://gitlab.com/islands-wars/crochet","url":"[email protected]:islands-wars/crochet.git","ssh_url":"[email protected]:islands-wars/crochet.git","http_url":"https://gitlab.com/islands-wars/crochet.git"},"commits":[{"id":"92692211bc03cfe359049c8c7bdede2aa799c6a2","message":"Use std::fmt::Display on Build object\n","timestamp":"2018-01-07T19:45:20+01:00","url":"https://gitlab.com/islands-wars/crochet/commit/92692211bc03cfe359049c8c7bdede2aa799c6a2","author":{"name":"LightDiscord","email":"[email protected]"},"added":[],"modified":["src/hooks/structures/mod.rs"],"removed":[]},{"id":"625e47b31a78c8bb260c6d5897cd555da0d0b6cf","message":"Move Build struct into a sub-file\n","timestamp":"2018-01-07T20:00:03+01:00","url":"https://gitlab.com/islands-wars/crochet/commit/625e47b31a78c8bb260c6d5897cd555da0d0b6cf","author":{"name":"LightDiscord","email":"[email protected]"},"added":["src/hooks/structures/build.rs"],"modified":["src/hooks/structures/mod.rs"],"removed":[]}],"total_commits_count":2,"repository":{"name":"Crochet","url":"[email protected]:islands-wars/crochet.git","description":"A process in Rust that transforms Webhooks from Gitlab, and sends them to Discord.","homepage":"https://gitlab.com/islands-wars/crochet","git_http_url":"https://gitlab.com/islands-wars/crochet.git","git_ssh_url":"[email protected]:islands-wars/crochet.git","visibility_level":20}}
@lightdiscord
Copy link
Author

All requests here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment