Posts a celebratory Discord message when a commit is pushed to a branch. Recognizes co-authors from Co-authored-by trailers.
π₯³ Merged! user-a:
commit messageWith essential contributions from user-b & user-c! π£
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
EMOJIS |
string |
No | π,π₯³,π£,π₯,π«‘,π,π,π,π |
Comma-delimited set of emojis. One is picked at random per message. |
COAUTHOR_TEMPLATES |
string |
No | (see below) | JSON array of co-author recognition templates. Each must contain <names>. |
Default COAUTHOR_TEMPLATES
[
"Thanks for the assist, <names>! π",
"<names> coming in clutchβthank you! π",
"<names> made it happen! πͺ",
"We couldn't have done it without <names>! π",
"With essential contributions from <names>! π£",
"Teamwork makes the dream workβ¦ right <names>?! π",
"feat. <names>! π«‘"
]| Name | Required | Description |
|---|---|---|
DISCORD_WEBHOOK |
Yes | Discord webhook URL. Create one via Channel Settings > Integrations > Webhooks. |
name: mergebot
on:
push:
branches: [main]
jobs:
mergebot:
if: ${{ github.repository_owner == 'bombshell-dev' }}
uses: bombshell-dev/automation/.github/workflows/mergebot.yml@main
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }}jobs:
mergebot:
uses: bombshell-dev/automation/.github/workflows/mergebot.yml@main
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }}
with:
EMOJIS: "π,β¨,π₯"