-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
() add update-changelog with template
- Loading branch information
Showing
4 changed files
with
247 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,116 @@ | ||
## [3.X.X] - Month, XX, 202X | ||
|
||
### React | ||
|
||
#### Breaking | ||
|
||
- [Component] What are the breaking changes? | ||
|
||
#### Added | ||
|
||
- [Component] What is added? | ||
|
||
#### Changed | ||
|
||
Changes that are not related to specific components | ||
- [Component] What has been changed | ||
|
||
#### Fixed | ||
|
||
- [Component] What bugs/typos are fixed? | ||
|
||
### Core | ||
|
||
#### Breaking | ||
|
||
- [Component] What are the breaking changes? | ||
|
||
#### Added | ||
|
||
- [Component] What is added? | ||
|
||
#### Changed | ||
|
||
Changes that are not related to specific components | ||
- [Component] What has been changed | ||
|
||
#### Fixed | ||
|
||
- [Component] What bugs/typos are fixed? | ||
|
||
### Documentation | ||
|
||
#### Breaking | ||
|
||
- [Component] What are the breaking changes? | ||
|
||
#### Added | ||
|
||
- [Component] What is added? | ||
|
||
#### Changed | ||
|
||
Changes that are not related to specific components | ||
- [Component] What has been changed | ||
|
||
#### Fixed | ||
|
||
- [Component] What bugs/typos are fixed? | ||
|
||
### Figma | ||
|
||
#### Breaking | ||
|
||
- [Component] What are the breaking changes? | ||
|
||
#### Added | ||
|
||
- [Component] What is added? | ||
|
||
#### Changed | ||
|
||
Changes that are not related to specific components | ||
- [Component] What has been changed | ||
|
||
#### Fixed | ||
|
||
- [Component] What bugs/typos are fixed? | ||
|
||
### Sketch/Abstract | ||
|
||
#### Breaking | ||
|
||
- [Component] What are the breaking changes? | ||
|
||
#### Added | ||
|
||
- [Component] What is added? | ||
|
||
#### Changed | ||
|
||
Changes that are not related to specific components | ||
- [Component] What has been changed | ||
|
||
#### Fixed | ||
|
||
- [Component] What bugs/typos are fixed? | ||
|
||
### Hds-js | ||
|
||
#### Breaking | ||
|
||
- [Component] What are the breaking changes? | ||
|
||
#### Added | ||
|
||
- [Component] What is added? | ||
|
||
#### Changed | ||
|
||
Changes that are not related to specific components | ||
- [Component] What has been changed | ||
|
||
#### Fixed | ||
|
||
- [Component] What bugs/typos are fixed? | ||
|
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,13 @@ | ||
/** | ||
* This takes the CHANGELOG.md and prepends the CHANGELOG.template.md to it. | ||
*/ | ||
|
||
const fs = require('fs'); | ||
const changeLogFile = './CHANGELOG.md'; | ||
|
||
const old = fs.readFileSync(changeLogFile, 'utf8'); | ||
const template = fs.readFileSync('./scripts/changelog/CHANGELOG.template.md', 'utf8'); | ||
const latestVersionPosition = old.indexOf('## ['); | ||
changeLogWithTemplate = old.substring(0, latestVersionPosition) + template + old.substring(latestVersionPosition); | ||
|
||
fs.writeFileSync(changeLogFile, changeLogWithTemplate); |