Skip to content

Commit 940a1bd

Browse files
authored
Adds usernames to formatDescription (#28)
* Adds usernames to formatDescription * Formatting
1 parent 7de2fd1 commit 940a1bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const formatDescription = (description) => {
3131
const nlCount = (ws.match(/\n/g) || []).length
3232
return nlCount >= 2 ? '\n\n' : '\n'
3333
})
34+
.replace(/@(\S+)/g, (match, name) => { return `[@${name}](https://github.com/${name})` })
3435
.trim()
3536

3637
if (core.getBooleanInput('reduce_headings')) {
@@ -174,4 +175,4 @@ async function run () {
174175

175176
run()
176177
.then(() => {core.info('Action completed successfully')})
177-
.catch(err => {core.setFailed(err.message)})
178+
.catch(err => {core.setFailed(err.message)})

0 commit comments

Comments
 (0)