mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-14 20:13:23 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8a34e1c2b | ||
|
|
95e1e3916a | ||
|
|
d9fc7b4fe2 | ||
|
|
6cf9efb8f6 |
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.9.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.8.0...v1.9.0) (2022-08-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* updated action description format ([6cf9efb](https://github.com/SethCohen/github-release-to-discord/commit/6cf9efb8f65526de47e335b56163eef55b6b9a1c))
|
||||||
|
|
||||||
## [1.8.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.7.0...v1.8.0) (2022-08-24)
|
## [1.8.0](https://github.com/SethCohen/github-release-to-discord/compare/v1.7.0...v1.8.0) (2022-08-24)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ async function run () {
|
|||||||
|
|
||||||
const description = content.body
|
const description = content.body
|
||||||
.replace(/### (.*?)\n/g,function (substring) {
|
.replace(/### (.*?)\n/g,function (substring) {
|
||||||
const newString = substring.slice(4)
|
const newString = substring.slice(4).replace(/(\r\n|\n|\r)/gm, "")
|
||||||
return `**__${newString}__**`
|
return `**__${newString}__**`
|
||||||
})
|
})
|
||||||
.replace(/## (.*?)\n/g,function (substring) {
|
.replace(/## (.*?)\n/g,function (substring) {
|
||||||
const newString = substring.slice(3)
|
const newString = substring.slice(3).replace(/(\r\n|\n|\r)/gm, "")
|
||||||
return `**${newString}**`
|
return `**${newString}**`
|
||||||
})
|
})
|
||||||
.replace(/\n\s*\n/g, '\n')
|
.replace(/\n\s*\n/g, '\n')
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "github-release-to-discord",
|
"name": "github-release-to-discord",
|
||||||
"version": "1.8.0",
|
"version": "1.9.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "github-release-to-discord",
|
"name": "github-release-to-discord",
|
||||||
"version": "1.8.0",
|
"version": "1.9.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.9.1",
|
"@actions/core": "^1.9.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "github-release-to-discord",
|
"name": "github-release-to-discord",
|
||||||
"version": "1.8.0",
|
"version": "1.9.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user