Code Monkey home page Code Monkey logo

gitgram's People

Contributors

aldy505 avatar arnoldart avatar dependabot[bot] avatar elianiva avatar lgtm-com[bot] avatar nblfikr avatar slowlife01 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gitgram's Issues

Discussion notification support

@TokoBapak is using gitgram (of course) and Github Discussion to talk all things regarding the project. Most people don't get the notification unless mentioned. It didn't appeared on the Telegram channel anyway.

A few actions that most likely will help us:

  • discussion_comment.created -> <user> left a comment on <discussion title>
  • discussion.created -> <user> started a discussion on <category>: <discussion title>
  • discussion.closed -> <user> closed discussion on <category>: <discussion title>
  • discussion.answered -> <user> marked <category>: <discussion title> as answered
  • discussion.pinned -> <user> pinned a discussion on <category>: <discussion title>
  • discussion.reopened -> <user> reopened a discussion on <category>: <discussion title>

Documentations:

Generate docker container image on push to master

After somebody push a commit to master, the CI would run. After that succeeds, a container image should be created.

Should create two variants:

  • alpine
  • bullseye (or latest Debian)

For each variant, should create multiple tags:

  • latest (synonymous with latest-bullseye)
  • latest-alpine
  • Git SHA commit

Not sending any message if too much notification get sent

Try spamming on GitHub doing some activities that activates the webhook for 15 minutes, and see if you get any notification.

This is a bug that can be fixed by checking the length of the text for each webhook item to be send on Telegram before sending it.

handle edited comment properly

currently it sends the wrong body which results in an empty body, it should send changes.body.from (old) and comments.body (new)

Write more unit tests

Initial setup has been done in #26, but it only covers a single function. We need more unit tests.

use lossless throttle operator

currently it uses throttle which ignores events that occured too frequent, what we actually want is something like this:

Current Condition

--1-2-3-4-5-6--> // every 500ms

turned into:

--1---3---5----> // every 1s

we lost some events

What We Want

--1-2-3-4-5-6--> // every 500ms

turned into:

--1---2---3----> // every 1s

we no longer losing some events because we buffered past events and then send it based on the configured interval

References

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.