Releases: Sniddl/discord-commits
Releases · Sniddl/discord-commits
v1.6
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
Update description to reflect template capabilties
Discord Commits - V1.4
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.
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
v1.2 Merge remote-tracking branch 'origin/master'