fleaz / go-gitlab-irc

IRC Bot for Gitlab
2 stars 2 forks source link

Note Hook #23

Open mweinelt opened 6 years ago

mweinelt commented 6 years ago

Header

Content-Type: application/json
X-Gitlab-Event: Note Hook

Body

{
  "object_kind": "note",
  "user": {
    "name": "fluxx",
    "username": "fluxx",
    "avatar_url": null
  },
  "project_id": 75,
  "project": {
    "id": 75,
    "name": "salt",
    "description": "",
    "web_url": "https://git.darmstadt.ccc.de/ffda/salt",
    "avatar_url": "https://git.darmstadt.ccc.de/uploads/-/system/project/avatar/75/SaltStack.jpg",
    "git_ssh_url": "git@git.darmstadt.ccc.de:ffda/salt.git",
    "git_http_url": "https://git.darmstadt.ccc.de/ffda/salt.git",
    "namespace": "ffda",
    "visibility_level": 20,
    "path_with_namespace": "ffda/salt",
    "default_branch": "master",
    "ci_config_path": null,
    "homepage": "https://git.darmstadt.ccc.de/ffda/salt",
    "url": "git@git.darmstadt.ccc.de:ffda/salt.git",
    "ssh_url": "git@git.darmstadt.ccc.de:ffda/salt.git",
    "http_url": "https://git.darmstadt.ccc.de/ffda/salt.git"
  },
  "object_attributes": {
    "id": 2109,
    "note": "Sounds great! :+1:",
    "noteable_type": "Issue",
    "author_id": 44,
    "created_at": "2018-03-22 16:54:53 UTC",
    "updated_at": "2018-03-22 16:54:53 UTC",
    "project_id": 75,
    "attachment": null,
    "line_code": null,
    "commit_id": null,
    "noteable_id": 345,
    "system": false,
    "st_diff": null,
    "updated_by_id": null,
    "type": null,
    "position": null,
    "original_position": null,
    "resolved_at": null,
    "resolved_by_id": null,
    "discussion_id": "26934936bee7012f8211414839c9f328daa8727b",
    "change_position": null,
    "resolved_by_push": null,
    "url": "https://git.darmstadt.ccc.de/ffda/salt/issues/15#note_2109"
  },
  "repository": {
    "name": "salt",
    "url": "git@git.darmstadt.ccc.de:ffda/salt.git",
    "description": "",
    "homepage": "https://git.darmstadt.ccc.de/ffda/salt"
  },
  "issue": {
    "author_id": 3,
    "closed_at": null,
    "confidential": false,
    "created_at": "2018-03-21 21:43:59 UTC",
    "description": "We'd like to relicense this repository under AGPLv3. Until now only Copyright applies.\n\nTherefore I'd like the public agreement to the relicensing for the following persons:\n\n- [x] Martin Weinelt\n- [x] Andreas Rammhold\n- [x] Felix Breidenstein @fleaz\n  - 6c7adde Borg: Randomize start of daily borg timer by up to 1h\n  - f1ecb1e prometheus: Used 'description' as generic description for the alert rule\n  - 75a3a15 prometheus: Fixed indentation\n  - 92fad37 prometheus: Set pushovers priority to 0, so they will respect quiet hours\n  - 22122f3 prometheus: Read pushover api tokens from pillar\n  - f3b868f prometheus: Fix alertmanager routing\n  - a3c440f Merge branch 'master' into add_pushover_receiver\n  - 96ca6e4 prometheus: Added pushover receiver to alretmanager\n  - 0465ad0 Merge branch 'master' into fix_retry_intervall_for_checkrestart\n  - 77b7d4e prometheus: Added custom route for CheckRestart to increase repeat_interval\n  - 2cbb902 prometheus: fixed indentation in alertmanager.yml\n  - 3336117 prometheus: cleanup of alertmanager.yml\n  - 2d8b855 prometheus: Remove delays in alertmanager config. Grouping is not needed for the irc bot and causes probably problems\n  - 82804fa nginx: Add logrotate for the custom logfiles of every vhost\n- [x] Magnus Frühling @skorpy\n  - 61fa470 nginx/stats.darmstadt.freifunk.net.conf.j2: remove root dir & index\n1c1ab38 grafana/files/grafana-server-default:PID_FILE_DIR\n  - 54e6514 grafana: correct map.jinja & README.md\n  - 2d25400 prometheus:: add prometheus_grafana_export\n  - 8226706 grafana: add prometheus_grafana_export\n  - 268d951 grafana.ini: remove log to file & router_logging; cookie_secure = true\n  - 13137b6 grafana: add nginx site\n  - adf5cac grafana/README.md: Update\n  - 549c764 grafana/grafana.sls: move grafana/init.sls\n  - 13896be grafana: init\n  - d83f744 grafana: remove datasources and add map.jinja\n  - a8f7c2f grafana: use local gpg key for packagecloud repo\n  - 84fb9e5 grafana-server-default: leerzeilen anzünden\n  - 02c2888 grafana: init\n  - 513b18c yanic@.service change to new upstream usage Switch to cobra for the CLI: https://github.com/FreifunkBremen/yanic/commit/cbb5f2e59b8610b71b29ea00caee86c6fc92300d [BUGFIX] contrib systemd.unit config path: https://github.com/FreifunkBremen/yanic/commit/d0989cf018ece2609dcc7cd2c7b250ae6aa6c30a\n  - a19f77d nginx/updates.services.ffda.io.conf.j2: autoindex on Change behavior to firmware.darmstadt.freifunk.net.conf.j2\n  - 61fa470 nginx/stats.darmstadt.freifunk.net.conf.j2: remove root dir & index\n  - 8226706 grafana: add prometheus_grafana_export\n  - 268d951 grafana.ini: remove log to file & router_logging; cookie_secure = true\n  - adf5cac grafana/README.md: Update\n  - 84fb9e5 grafana-server-default: leerzeilen anzünden\n  - 513b18c yanic@.service change to new upstream usage Switch to cobra for the CLI: https://github.com/FreifunkBremen/yanic/commit/cbb5f2e59b8610b71b29ea00caee86c6fc92300d [BUGFIX] contrib systemd.unit config path: https://github.com/FreifunkBremen/yanic/commit/d0989cf018ece2609dcc7cd2c7b250ae6aa6c30a\n  - a19f77d nginx/updates.services.ffda.io.conf.j2: autoindex on Change behavior to firmware.darmstadt.freifunk.net.conf.j2\n- [ ] Marco Holz @fluxx \n  - 506f9cd Update config file of the firmware selector\n  - 1541f73 Add CHANGELOG to firmware wizard config.js\n  - d769b11 Add firmware wizard version regex\n  - c42f7e5 Add 'community_prefix' property in firmware wizard config file\n  - 2e8a9d5 Update config.js for the firmware wizard\n  - 0172a30 Add config file for the firmware wizard\n\n\nPlease add a comment demonstrating your agreement or refusal.\n\nIf we are in consensus we'll merge the LICENSE file in !26.",
    "due_date": null,
    "id": 345,
    "iid": 15,
    "last_edited_at": "2018-03-21 21:48:01 UTC",
    "last_edited_by_id": 3,
    "milestone_id": null,
    "moved_to_id": null,
    "project_id": 75,
    "relative_position": 1073749323,
    "state": "opened",
    "time_estimate": 0,
    "title": "Relicensing to AGPLv3",
    "updated_at": "2018-03-22 16:54:53 UTC",
    "updated_by_id": 3,
    "url": "https://git.darmstadt.ccc.de/ffda/salt/issues/15",
    "total_time_spent": 0,
    "human_total_time_spent": null,
    "human_time_estimate": null,
    "assignee_ids": [

    ],
    "assignee_id": null
  }
}
fleaz commented 6 years ago

Bau ich hier vermutlich nichtmehr ein sondern kommt dann direkt mit den neuen go-$alles-irc rewrite. Aber danke fürs reporten :)