Add Matrix integration #101

Merged
n merged 6 commits from matrix-integration into master 1 year ago
n commented 2 years ago
Collaborator

Closes #43.

Closes #43.
n added the
Status: In progress
Kind: Documentation
labels 2 years ago
hw commented 2 years ago
Owner

This looks nice, what is needed to remove the WIP prefix?

This looks nice, what is needed to remove the WIP prefix?
n commented 2 years ago
Poster
Collaborator

I still need to document how to set up the integration on the Codeberg side and polish up the rest of the article. Once that is done, it will be ready for review :)

I still need to document how to set up the integration on the Codeberg side and polish up the rest of the article. Once that is done, it will be ready for review :)
n added 1 commit 1 year ago
n added 2 commits 1 year ago
n added the
Status: Ready for Review
label 1 year ago
n changed title from WIP: Add Matrix integration to Add Matrix integration 1 year ago
n removed the
Status: In progress
label 1 year ago
n commented 1 year ago
Poster
Collaborator

Ready for review! I also added a shortcode which allows to embed Gitea icons on demand.

Ready for review! I also added a shortcode which allows to embed Gitea icons on demand.
fnetX approved these changes 1 year ago
fnetX left a comment
Collaborator

I didn't test it yet (but planning to do so). Nice to see this finished, already wondered if I'll manage to set this up with the incomplete version too :-)

I didn't test it yet (but planning to do so). Nice to see this finished, already wondered if I'll manage to set this up with the incomplete version too :-)
This article will guide you through integrating Codeberg with Matrix, allowing repo updates to be automatically broadcast to your project's Matrix room.
> NOTE: This will only work in unencrypted Matrix rooms.
fnetX commented 1 year ago
Collaborator

Is there a way to use this in encrypted rooms, too? I know that you can send unencrypted events in encrypted rooms, would it be possible to let the webhook broadcast unencrypted news into an otherwise encrypted history?

Just curious ...

Is there a way to use this in encrypted rooms, too? I know that you can send unencrypted events in encrypted rooms, would it be possible to let the webhook broadcast unencrypted news into an otherwise encrypted history? Just curious ...
n commented 1 year ago
Poster
Collaborator

This works! I assumed that because bots don't work on encrypted rooms, neither would webhooks. I'm going to remove the warning.

This works! I assumed that because bots don't work on encrypted rooms, neither would webhooks. I'm going to remove the warning.
n marked this conversation as resolved
n added 2 commits 1 year ago
fnetX approved these changes 1 year ago
n merged commit eec8cabb80 into master 1 year ago
Collaborator

I'm having difficulties with the deployment.
I pulled master, did a npm i because I saw you updated some package stuff, and now npm run deploy does not work with

13:12:09 fnetx ~/—/Projekte/codeberg/documentation master: npm run deploy

> deploy
> ./deploy.sh

+ npm run build

> build
> rm -rf _site/ && eleventy

Problem writing Eleventy templates: (more in DEBUG output)
> Having trouble rendering liquid (and markdown) template ./content/integrations/matrix.md

`TemplateContentRenderError` was thrown
> svg is not defined, file:./content/integrations/matrix.md, line:28

`RenderError` was thrown
> svg is not defined

`ReferenceError` was thrown:
    ReferenceError: svg is not defined
        at Object.<anonymous> (/data/home/Documents/Projekte/codeberg/documentation/.eleventy.js:19:5)
        at Object.<anonymous> (/data/home/Documents/Projekte/codeberg/documentation/node_modules/@11ty/eleventy/src/BenchmarkGroup.js:30:26)
        at Object.render (/data/home/Documents/Projekte/codeberg/documentation/node_modules/@11ty/eleventy/src/Engines/Liquid.js:147:25)
        at Object._callee$ (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:1851:55)
        at tryCatch (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:108:40)
        at Generator.invoke [as _invoke] (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:319:22)
        at Generator.prototype.<computed> [as next] (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:156:21)
        at step (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:25:30)
        at /data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:43:14
        at new Promise (<anonymous>)
Wrote 0 files in 0.76 seconds (v0.12.1)
npm ERR! code 1
npm ERR! path /data/home/Documents/Projekte/codeberg/documentation
npm ERR! command failed
npm ERR! command sh -c rm -rf _site/ && eleventy

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/fnetx/.npm/_logs/2021-05-16T11_12_33_621Z-debug.log
npm ERR! code 1
npm ERR! path /data/home/Documents/Projekte/codeberg/documentation
npm ERR! command failed
npm ERR! command sh -c ./deploy.sh

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/fnetx/.npm/_logs/2021-05-16T11_12_33_735Z-debug.log
13:12:33 fnetx ~/—/Projekte/codeberg/documentation master:

Can you make the deployment for now and assist in fixing my setup? 😂

I'm having difficulties with the deployment. I pulled master, did a `npm i` because I saw you updated some package stuff, and now `npm run deploy` does not work with ~~~ 13:12:09 fnetx ~/—/Projekte/codeberg/documentation master: npm run deploy > deploy > ./deploy.sh + npm run build > build > rm -rf _site/ && eleventy Problem writing Eleventy templates: (more in DEBUG output) > Having trouble rendering liquid (and markdown) template ./content/integrations/matrix.md `TemplateContentRenderError` was thrown > svg is not defined, file:./content/integrations/matrix.md, line:28 `RenderError` was thrown > svg is not defined `ReferenceError` was thrown: ReferenceError: svg is not defined at Object.<anonymous> (/data/home/Documents/Projekte/codeberg/documentation/.eleventy.js:19:5) at Object.<anonymous> (/data/home/Documents/Projekte/codeberg/documentation/node_modules/@11ty/eleventy/src/BenchmarkGroup.js:30:26) at Object.render (/data/home/Documents/Projekte/codeberg/documentation/node_modules/@11ty/eleventy/src/Engines/Liquid.js:147:25) at Object._callee$ (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:1851:55) at tryCatch (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:108:40) at Generator.invoke [as _invoke] (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:319:22) at Generator.prototype.<computed> [as next] (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:156:21) at step (/data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:25:30) at /data/home/Documents/Projekte/codeberg/documentation/node_modules/liquidjs/dist/liquid.common.js:43:14 at new Promise (<anonymous>) Wrote 0 files in 0.76 seconds (v0.12.1) npm ERR! code 1 npm ERR! path /data/home/Documents/Projekte/codeberg/documentation npm ERR! command failed npm ERR! command sh -c rm -rf _site/ && eleventy npm ERR! A complete log of this run can be found in: npm ERR! /home/fnetx/.npm/_logs/2021-05-16T11_12_33_621Z-debug.log npm ERR! code 1 npm ERR! path /data/home/Documents/Projekte/codeberg/documentation npm ERR! command failed npm ERR! command sh -c ./deploy.sh npm ERR! A complete log of this run can be found in: npm ERR! /home/fnetx/.npm/_logs/2021-05-16T11_12_33_735Z-debug.log 13:12:33 fnetx ~/—/Projekte/codeberg/documentation master: ~~~ Can you make the deployment for now and assist in fixing my setup? 😂
n commented 1 year ago
Poster
Collaborator

I had the same issue (not sure why it didn't show up earlier). It had to with the Gitea icon shortcode I added in aa5ed02490. I removed it for now. It was a mistake to combine it into this PR.

I had the same issue (not sure why it didn't show up earlier). It had to with the Gitea icon shortcode I added in aa5ed02490. I [removed it](https://codeberg.org/Codeberg/Documentation/commit/48292a3ffbcc99fdc47b6137add453098fd75799) for now. It was a mistake to combine it into this PR.
n deleted branch matrix-integration 1 year ago

Reviewers

fnetX approved these changes 1 year ago
The pull request has been merged as eec8cabb80.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.