tchajed / commit-email-bot

GitHub app that sends an email with every commit diff
https://commit-emails.xyz
MIT License
2 stars 0 forks source link
git

GitHub commit-email-bot

commit-email-bot sends emails when changes are pushed to a Git repository on Github.

Getting started

Install the commit-emails GitHub app

In your repo, commit a file called .github/commit-emails.toml that specifies the recipients and the format of the emails (the default is html, text is also supported)

to = "alice@example.com,bob@example.net"

[email]
format = "html"

Every email from commit-email-bot contains the string jD27HVpTX3tELRBjcpGsK6io7 followed by the name of the repo. You can use this to easily filter commit emails in Gmail.

Deploying

Use dotenvx run -f .env.keys -- docker compose up --build. (You need the private key in .env.keys to access the secrets in .env.production.)

A 512MB virtual machine runs out of memory when building, but not when running, so make sure to configure some swap space.

Future work

Acknowledgment

Based on David's git-mailbot.