Code Monkey home page Code Monkey logo

matrix-hookshot's People

Contributors

andrewferr avatar anoadragon453 avatar arkaniad avatar babolivier avatar chvp avatar dav-is avatar davidegirardi avatar dependabot[bot] avatar frlan avatar half-shot avatar harharlinks avatar hwittenborn avatar jaller94 avatar jaywink avatar justinbot avatar laurencegill avatar minecraftchest1 avatar mtrnord avatar psolyca avatar puffnfresh avatar real-joshua avatar spantaleev avatar spiritcroc avatar srilokhkaruturi avatar tadzik avatar tsimonq2 avatar turt2live avatar twi1ightsparkle avatar weeman1337 avatar zecakeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

matrix-hookshot's Issues

Abstract away GitHub specific components to allow for other providers

Probably something like having a set of Provider classes.

The webhook handler could become a more generic inbound notification processor, which takes a set of notificationstreamproviders.

The GitHubBridge class could become a sort of generic router class which just applies formatting and routing to incoming notifications.

We currently have very little in the way of Matrix interactivity, but presumably that could also be part of the same routing.

Messages multiply in new rooms

image
image

The logs keep adding one of these lines with each new comment:

INFO 03:52:32:392 [GithubBridge] New connected added to !viChOTXZbGFChCWzqi:t2bot.io: GitHubIssue turt2live/test#35
INFO 03:52:32:393 [GithubBridge] New connected added to !viChOTXZbGFChCWzqi:t2bot.io: GitHubIssue turt2live/test#35
INFO 03:52:32:394 [GithubBridge] New connected added to !viChOTXZbGFChCWzqi:t2bot.io: GitHubIssue turt2live/test#35
INFO 03:52:32:396 [GithubBridge] New connected added to !viChOTXZbGFChCWzqi:t2bot.io: GitHubIssue turt2live/test#35

Notification room messages sometimes link to undefined

E.g.

{
  "content": {
    "body": "๐Ÿ“ [Foo Project](undefined) for **[foo-org/Foo-Project](https://github.com/foo-org/Foo-Project)**",
    "format": "org.matrix.custom.html",
    "formatted_body": "<p>๐Ÿ“ <a href=\"undefined\">Foo Project</a> for <strong><a href=\"https://github.com/foo-org/Foo-Project\">foo-org/Foo-Project</a></strong></p>\n",
    "msgtype": "m.text"
  },
  "origin_server_ts": 1605724340009,
  "sender": "@github:half-shot.uk",
  "type": "m.room.message",
  "unsigned": {
    "age": 2095068
  },
  "event_id": "$wERG1gSpnp2iqXI9kTPPITfN5vDseZMwFAM8a5-UtKM",
  "room_id": "!YHwrCintmgybXLkyih:"
}

Support GitHub discussions

Probably fairly important to help moderate the lands. We can wait until there is an actual API though

Notification rooms

I tend to not use emails for GitHub notifications because I tend not to use emails, and integrating notifications in my Matrix client would allow me to avoid switching apps regularly. Being able to specify a room for notifcations (optionally) would be quite cool, and probably easy to do.

Operation mode without installationId

it's not entirely clear what functionality would be lost, but it would be good to operate without a limitation like this. The oauth stuff is a github app that allows someone to send out a link, install the app, and off they go - all without an installation ID.

It seemed to work like this two years ago, but I can believe things have changed.

Per-user option to get invited to issue rooms

Probable conditions:

  • Author of the issue
  • Assigned to the issue

If it was "everything you've subscribed to" then the invite list could be overwhelming. The bridge should take care not to invite someone back if they've left, unless a condition changes (ie: assigned -> left room -> comment added should not re-invite, unless the user was re-assigned)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.