-
Notifications
You must be signed in to change notification settings - Fork 45
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Notify Discord on PR Merge | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since we don't use a |
||
|
||
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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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" |
There was a problem hiding this comment.
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