Skip to content

Releases: Sniddl/discord-commits

v1.8

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 30 Dec 18:40
d769a44

remove footer based on note-keywords

- name: Discord Commits
  uses: Sniddl/discord-commits@v1.8
  with:
    webhook: ${{ secrets.DISCORD_WEBHOOK }}
    template: "avatar-with-link"
    include-extras: true
    include-footer: false
    note-keywords: |
      Signed-off-by
      Co-authored-by

v1.7

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 30 Dec 18:39

add include/exclude-commits options

- name: Discord Commits
  uses: Sniddl/discord-commits@v1.7
  with:
    webhook: ${{ secrets.DISCORD_WEBHOOK }}
    template: "avatar-with-link"
    include-extras: true
    exclude-commits: |
      ^fix:
      ^feat:

v1.6

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 29 Jan 23:02

Does not change template building behavior but may contain breaking changes to GitHub context API. For more information see actions/toolkit repo.

Discord Commits - V1.5

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 01 Aug 19:39

Update description to reflect template capabilties

Discord Commits - V1.4

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 01 Aug 19:03

Includes node update, cleaner code, extra embeds and default templates for easier layout composition

Node update

This action now uses Node 16.x so it can make use of top level awaits.

Cleaner code

Removed dependencies lodash and axios. Also moved templating code to an separate file.

New features

Option Description
template The name of a premade template located into the discord-commits/templates folder.
include-extras Boolean - Include extra embeds from templates such as a link to the payload difference.

Use last commit message only instead of all messages.

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 02 Mar 12:21
2da985f

Sometimes there are too many commit messages which spam the discord channel. Use the last-commit-only flag to enable this option.

Example Usage

- name: Discord Commits
        uses: Sniddl/discord-commits@v1.3
        with:
          webhook: ${{ secrets.DISCORD_WEBHOOK }}
          message: "Successful commit to **{{ github.context.payload.repository.owner.name }}/{{ github.context.payload.repository.name}}**.\nDiff: {{ github.context.payload.compare }}"
          embed: '{ "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://avatars.io/gravatar/{{ commit.author.email }}"} }'
          last-commit-only: true

Latest Release

Choose a tag to compare

@ZebTheWizard ZebTheWizard released this 11 Apr 13:52
v1.2

Merge remote-tracking branch 'origin/master'