mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-14 20:13:23 +00:00
feat: updated action description format
This commit is contained in:
@@ -28,13 +28,13 @@ async function run () {
|
|||||||
const content = await getContext()
|
const content = await getContext()
|
||||||
|
|
||||||
const description = content.body
|
const description = content.body
|
||||||
.replace(/## (.*?)\n/g,function (substring) {
|
|
||||||
const newString = substring.slice(3)
|
|
||||||
return `**${newString}**\n`
|
|
||||||
})
|
|
||||||
.replace(/### (.*?)\n/g,function (substring) {
|
.replace(/### (.*?)\n/g,function (substring) {
|
||||||
const newString = substring.slice(4)
|
const newString = substring.slice(4)
|
||||||
return `**__${newString}__**\n`
|
return `**__${newString}__**`
|
||||||
|
})
|
||||||
|
.replace(/## (.*?)\n/g,function (substring) {
|
||||||
|
const newString = substring.slice(3)
|
||||||
|
return `**${newString}**`
|
||||||
})
|
})
|
||||||
|
|
||||||
const embedMsg = {
|
const embedMsg = {
|
||||||
|
|||||||
Reference in New Issue
Block a user