notify_github.lua

 1-- notify_github.lua
 2-- Shows a notification when emails from GitHub arrive.
 3
 4local matcha = require("matcha")
 5
 6matcha.on("email_received", function(email)
 7    if email.from:match("github%.com") then
 8        matcha.notify("GitHub: " .. email.subject, 3)
 9    end
10end)