Skip to content

Commit

Permalink
Decode matched SVG title
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Dec 21, 2023
1 parent 7774e32 commit 2f300b4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 4 additions & 3 deletions lib/index.mjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@actions/core": "1.10.1",
"@actions/github": "6.0.0",
"alpha-sort": "5.0.0",
"he": "^1.2.0",
"semver": "7.5.4"
},
"devDependencies": {
Expand Down
7 changes: 4 additions & 3 deletions src/create.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import he from 'he';
import alphaSort from 'alpha-sort';
import semverInc from 'semver/functions/inc.js';

Expand Down Expand Up @@ -256,7 +257,7 @@ async function getChangesFromFile(core, file, client, context, id) {
{
id: id,
changeType: CHANGE_TYPE_ADD,
name: svgTitleMatch[1],
name: he.decode(svgTitleMatch[1]),
path: file.path,
prNumbers: [file.prNumber],
},
Expand All @@ -270,7 +271,7 @@ async function getChangesFromFile(core, file, client, context, id) {
{
id: id,
changeType: CHANGE_TYPE_UPDATE,
name: svgTitleMatch[1],
name: he.decode(svgTitleMatch[1]),
path: file.path,
prNumbers: [file.prNumber],
},
Expand All @@ -283,7 +284,7 @@ async function getChangesFromFile(core, file, client, context, id) {
{
id: id,
changeType: CHANGE_TYPE_REMOVED,
name: svgTitleMatch[1],
name: he.decode(svgTitleMatch[1]),
path: file.path,
prNumbers: [file.prNumber],
},
Expand Down

0 comments on commit 2f300b4

Please sign in to comment.