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: "πŸš€,✨,πŸ”₯"