WIP Try out third-party plugin for Matrix noticiations #103

Merged
benjaoming merged 2 commits from replace-drone-matrix-plugin into main 2023-12-16 22:19:18 +00:00
Owner

Referring to this upstream issue: https://github.com/drone-plugins/drone-matrix/issues/32

...it seems like Drone's matrix plugin has been defunct for a while. Hence, we get strange messages from Buildbot that don't link anywhere.

This is fixed in a plugin that was updated 3 months ago:

https://github.com/SpotlightKid/drone-matrixchat-notify

The plugin is a rewrite in Python, so we need to adjust settings:


  settings:
    homeserver: 'https://matrix.org'
    roomid: '!xxxxxx@matrix.org'
    userid: '@drone-bot@matrix.org'
    password:
      from_secret: drone-bot-pw
    markdown: 'yes'
    template: |
      `${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**

      ${DRONE_PULL_REQUEST_TITLE}](${DRONE_COMMIT_LINK})

We could depend on this directly from the author or fork it into our own repo?

Referring to this upstream issue: https://github.com/drone-plugins/drone-matrix/issues/32 ...it seems like Drone's matrix plugin has been defunct for a while. Hence, we get strange messages from Buildbot that don't link anywhere. This is fixed in a plugin that was updated 3 months ago: https://github.com/SpotlightKid/drone-matrixchat-notify The plugin is a rewrite in Python, so we need to adjust settings: ``` settings: homeserver: 'https://matrix.org' roomid: '!xxxxxx@matrix.org' userid: '@drone-bot@matrix.org' password: from_secret: drone-bot-pw markdown: 'yes' template: | `${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}** ${DRONE_PULL_REQUEST_TITLE}](${DRONE_COMMIT_LINK}) ``` We could depend on this directly from the author or fork it into our own repo?
benjaoming added 1 commit 2023-10-21 10:47:52 +00:00
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details
e82dcb95ed
Try out third-party plugin for Matrix noticiations
benjaoming changed title from Try out third-party plugin for Matrix noticiations to WIP Try out third-party plugin for Matrix noticiations 2023-10-21 10:47:59 +00:00
benjaoming added 1 commit 2023-10-21 10:50:14 +00:00
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
9c15dfa218
Update with settings for the plugin
Author
Owner

Confirming from the Matrix chat that this works 🎉

I'll leave it to someone else to define if we wanna trust this. It'd actually be nice to use a token instead of the password, right?

Confirming from the Matrix chat that this works 🎉 I'll leave it to someone else to define if we wanna trust this. It'd actually be nice to use a token instead of the password, right?
benjaoming merged commit f11ece120b into main 2023-12-16 22:19:18 +00:00
Sign in to join this conversation.
No reviewers
No Label
new-website
ui
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: data.coop/website#103
No description provided.