mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-21 20:13:56 +00:00
Adds usernames to formatDescription (#28)
* Adds usernames to formatDescription * Formatting
This commit is contained in:
@@ -31,6 +31,7 @@ const formatDescription = (description) => {
|
||||
const nlCount = (ws.match(/\n/g) || []).length
|
||||
return nlCount >= 2 ? '\n\n' : '\n'
|
||||
})
|
||||
.replace(/@(\S+)/g, (match, name) => { return `[@${name}](https://github.com/${name})` })
|
||||
.trim()
|
||||
|
||||
if (core.getBooleanInput('reduce_headings')) {
|
||||
|
||||
Reference in New Issue
Block a user