Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord notification script #1052

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/discord-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Notify Discord on PR Merge
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to notify on every PR merge. Sometimes the PR's are to fix typo's and small errors which might add noise


on:
push:
branches: [ "main" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we don't use a main branch for docs, you might have to figure out how to dynamically fetch the default branch for the docs repo...


jobs:
notify-discord:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Send message to Discord
uses: rjstone/discord-webhook-notify@v1
with:
title: "Radius Documentation Update"
severity: info
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
description: |
Hi there! The Radius Documentation has been updated. Check out the recent changes:
[View Recent Commits](https://github.com/jasonviviano/project/commits/main/)
[View Recent PRs](https://github.com/jasonviviano/project/pulls)
Comment on lines +21 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to enumerate the actual commits in the message itself in addition to these links? this might help users decide whether the changes are interesting enough for them to follow through with a click and seem less "spammy"

Loading