diff --git a/.drone.yml b/.drone.yml index 265fa3c..5852222 100644 --- a/.drone.yml +++ b/.drone.yml @@ -63,17 +63,18 @@ steps: # event: # - pull_request -- name: matrix-pr -# image: plugins/matrix - image: spotlightkid/drone-matrixchat-notify +- name: webhook-pr + image: plugins/webhook settings: - homeserver: 'https://matrix.skunklab.ch' - roomid: '!riCgKYKseXqVODyuUG:skunklab.ch' - userid: '@rulrich:skunklab.ch' - accesstoken: - from_secret: matrix_accesstoken - device_id: '' + username: + from_secret: mattermost_username + password: + from_secret: mattermost_password + urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr + content_type: application/json template: | - `${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}** - - ${DRONE_PULL_REQUEST_TITLE}](${DRONE_COMMIT_LINK}) \ No newline at end of file + { + "owner": "{{ repo.owner }}", + "repo": "{{ repo.name }}", + "status": "{{ build.status }}", + } \ No newline at end of file