Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 1.75 KB

File metadata and controls

65 lines (50 loc) · 1.75 KB

mergebot

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 message With essential contributions from user-b & user-c! 💣

Inputs

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>! 🫡"
]

Secrets

Name Required Description
DISCORD_WEBHOOK Yes Discord webhook URL. Create one via Channel Settings > Integrations > Webhooks.

Usage

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 }}

Custom emojis

jobs:
  mergebot:
    uses: bombshell-dev/automation/.github/workflows/mergebot.yml@main
    secrets:
      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }}
    with:
      EMOJIS: "🚀,✨,🔥"