Skip to content

Releases: Sniddl/discord-commits

v1.6

29 Jan 23:02
Compare
Choose a tag to compare

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

01 Aug 19:39
Compare
Choose a tag to compare

Update description to reflect template capabilties

Discord Commits - V1.4

01 Aug 19:03
Compare
Choose a tag to compare

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.

02 Mar 12:21
2da985f
Compare
Choose a tag to compare

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/[email protected]
        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

11 Apr 13:52
Compare
Choose a tag to compare
v1.2

Merge remote-tracking branch 'origin/master'