Skip to content

Commit

Permalink
added avatar url to test
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen committed Jan 31, 2024
1 parent e5f378a commit 02af30a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/action-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
username: MUI Releases
avatar-url: 'https://i.ibb.co/YfMzb7r/logo.png'
separator: '<!--//-->'
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38714,7 +38714,9 @@ async function main() {
.replace(/@(.*?)\s/g, '[@$1](https://github.com/$1)');

const payload = {
content: [mention, highlights, link].join('\r\n\r\n').replace(/\((http.*?)\)/g, '(<$1>)'),
content: [mention, highlights, link]
.join('\r\n\r\n')
.replace(/\((http.*?)\)/g, '(<$1>)'),
username: username || null,
avatar_url: avatar_url || null,
allowed_mentions: {
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ async function main() {
.replace(/@(.*?)\s/g, '[@$1](https://github.com/$1)');

const payload = {
content: [mention, highlights, link].join('\r\n\r\n').replace(/\((http.*?)\)/g, '(<$1>)'),
content: [mention, highlights, link]
.join('\r\n\r\n')
.replace(/\((http.*?)\)/g, '(<$1>)'),
username: username || null,
avatar_url: avatar_url || null,
allowed_mentions: {
Expand Down

0 comments on commit 02af30a

Please sign in to comment.