Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)ID
Posts
1
Comments
81
Joined
4 mo. ago

  • I have never heard of ActivePieces. I took 30 min now to review it and play with it.

    From that alone, I can say:

    • you can definitely achieve what gossip does using ActivePieces (in other words, Gossip covers a small subset of what ActivityPieces does if you want to create your email manually and plug it into what they call an IMAP Piece)
    • Yep, Gossip is much lighter and reacts instantly thanks to golang concurrency constructs (it's now running on a tiny VPS there are few jobs and it's consuming 22MB of RAM, I will be able to keep it free and scale really really high without much struggle)
    • Gossip is geared more towards tech people (if you can put together a curl query to cover your needs than you can do almost anything you want - trigger a telegram msg, matrix chat, create a Jira ticket, ...)
    • Gossip doesn't handle any complex automations now, it simply connects an email it generates into a webhook you input (that seems to cover all the use cases I needed in my workplace)
  • The last example will be equivalent to the following curl:

     bash
        
    curl -L \
      -X POST \
      -H "Accept: application/vnd.github+json" \
      -H "Authorization: Bearer github_pat_xxxx" \
      -H "X-GitHub-Api-Version: 2022-11-28" \
      https://api.github.com/repos/idrissbellil/cryptomonitor/issues \
      -d '{"title":"Found a bug","body":"I'\''m having a problem with this.","assignees":["idrissbellil"]}'
    
      
  • Thanks for having a look!

    Monitor my email and when I get one that matches the regex it’ll make an API call?

    It's this first one with a slight twist. It generates a random email for you rather than asking you to give your username & password (I don't want to handle securing people's usernames and emails at this stage). It makes an API call when the From Email matches the regex.

    Example from demo:

     
        
    URL: https://api.github.com/repos/idrissbellil/cryptomonitor/issues
    Method: POST   (The HTTP Method: POST, GET, PUT, ..)
    From Regex: .*  (only trigger the call given certain `From` emails so you it doesn't create a thousand tickets if somebody floods you with emails)
    Payload: {"title":"{{ .Subject }}","body":"{{ .Body }}","assignees":["idrissbellil"]}  (the data part of the POST/PUT/even GET query - here you can re-use parts of the email you received like Subject, Body, To, From
    Headers: {"Accept":"application/vnd.github+json","Authorization":"Bearer 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","X-GitHub-Api-Version":"2022-11-28"}