Pārlūkot izejas kodu

chore: polish release template

tophf 4 gadi atpakaļ
vecāks
revīzija
20586f813b
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 1
      .github/workflows/release.yml
  2. 1 0
      scripts/action-helper.js

+ 1 - 1
.github/workflows/release.yml

@@ -11,7 +11,7 @@ jobs:
     steps:
       - uses: actions/checkout@v1 # v1 keeps tags
         with:
-          fetch-depth: 100 # for `action-helper`
+          fetch-depth: 250 # for `action-helper`
           # persist-credentials: false # not implemented in v1
       - uses: actions/setup-node@v2
         with:

+ 1 - 0
scripts/action-helper.js

@@ -47,6 +47,7 @@ function listCommits() {
   const thisTag = exec('git describe --abbrev=0 --tags');
   const prevTag = exec(`git describe --abbrev=0 --tags "${thisTag}^"`);
   return exec(`git log --oneline --skip=1 --reverse "${prevTag}...${thisTag}"`)
+  .replace(/</g, '\\<')
   .split('\n')
   .map((str, i) => `${str.split(/\s/, 2)[1]}${10000 + i}\n* ${str}`)
   .sort()