-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(version): upgrade version to v2.0.3 (#1789)
- Loading branch information
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Fixed | ||
|
||
1. Windows sharing screen function is not available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## 修复 | ||
|
||
1. Windows 分享屏幕功能不可用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const semver = require("semver") | ||
const current = require('../desktop/main-app/package.json').version | ||
|
||
const next = process.argv[2]; | ||
if (!next) { | ||
console.log("usage: node scripts/changelog.js", semver.inc(current, "patch")); | ||
process.exit(1); | ||
} | ||
|
||
const today = new Date().toISOString().slice(0, 10); | ||
|
||
const log = require("child_process").execSync('git log --pretty=format:"%h:%H %s" $(git describe --tags --abbrev=0 @^)..@', { encoding: "utf-8" }); | ||
const features = [] | ||
const fixes = [] | ||
const perf = [] | ||
log.trimEnd().split("\n").forEach(line => { | ||
const match = line.match(/^(\w+):(\w+) (\w+)\(([^\)]+)\): (.+)/) | ||
if (match === null) return; | ||
const abbr = match[1]; | ||
const commit = match[2]; | ||
const type = match[3]; | ||
const scope = match[4]; | ||
const message = match[5].replace(/\#(\d+)/, "[#$1](https://github.com/netless-io/flat/issues/$1)"); | ||
const item = `* **${scope}**: ${message} ([${abbr}](https://github.com/netless-io/flat/commit/${commit}))`; | ||
if (type === "feat") features.push(item); | ||
if (type === "fix") fixes.push(item); | ||
if (type === "perf") perf.push(item); | ||
}); | ||
|
||
let result = `## [${next}](https://github.com/netless-io/flat/compare/v${current}...v${next}) (${today}) | ||
`; | ||
|
||
if (features.length > 0) { | ||
result += ` | ||
### Features | ||
${features.join("\n")} | ||
`; | ||
} | ||
|
||
if (fixes.length > 0) { | ||
result += ` | ||
### Bug Fixes | ||
${fixes.join("\n")} | ||
`; | ||
} | ||
|
||
if (perf.length > 0) { | ||
result += ` | ||
### Performance Improvements | ||
${perf.join("\n")} | ||
`; | ||
} | ||
|
||
console.log(result); |