From 940a1bd2d22d517b5c34d996818e4f3815b61444 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Fri, 4 Oct 2024 05:40:24 -0700 Subject: [PATCH] Adds usernames to formatDescription (#28) * Adds usernames to formatDescription * Formatting --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7cef05d..f215894 100644 --- a/index.js +++ b/index.js @@ -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')) { @@ -174,4 +175,4 @@ async function run () { run() .then(() => {core.info('Action completed successfully')}) - .catch(err => {core.setFailed(err.message)}) \ No newline at end of file + .catch(err => {core.setFailed(err.message)})