From 949feb2d1a3aa9c80d2d5c4882edaba597c72dd7 Mon Sep 17 00:00:00 2001 From: Steve Dogiakos Date: Sat, 26 Feb 2022 15:15:13 -0700 Subject: [PATCH] Create discord-commits.yml --- .github/discord-commits.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/discord-commits.yml diff --git a/.github/discord-commits.yml b/.github/discord-commits.yml new file mode 100644 index 0000000..454f209 --- /dev/null +++ b/.github/discord-commits.yml @@ -0,0 +1,7 @@ +- 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: false