Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
ea305cf3
Commit
ea305cf3
authored
Oct 28, 2020
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change convention for unreleased changelog entries
parent
d41102d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
CHANGELOG.md
CHANGELOG.md
+1
-1
update-changelog-release-date.js
scripts/release/update-changelog-release-date.js
+10
-13
No files found.
CHANGELOG.md
View file @
ea305cf3
# Changelog
# Changelog
##
3.2.2-solc-0.7 (unreleased)
##
Unreleased
*
Resolve warnings introduced by Solidity 0.7.4. (
[
#2396
](
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2396
)
)
*
Resolve warnings introduced by Solidity 0.7.4. (
[
#2396
](
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2396
)
)
## 3.2.1-solc-0.7 (2020-09-15)
## 3.2.1-solc-0.7 (2020-09-15)
...
...
scripts/release/update-changelog-release-date.js
View file @
ea305cf3
...
@@ -6,27 +6,24 @@
...
@@ -6,27 +6,24 @@
const
fs
=
require
(
'fs'
);
const
fs
=
require
(
'fs'
);
const
cp
=
require
(
'child_process'
);
const
cp
=
require
(
'child_process'
);
const
pkg
=
require
(
'../../package.json'
);
const
suffix
=
process
.
env
.
PRERELEASE_SUFFIX
||
'rc'
;
if
(
pkg
.
version
.
indexOf
(
'-'
+
suffix
)
!==
-
1
)
{
process
.
exit
(
0
);
}
const
version
=
pkg
.
version
.
replace
(
/-.*/
,
''
);
// Remove the rc suffix
const
changelog
=
fs
.
readFileSync
(
'CHANGELOG.md'
,
'utf8'
);
const
changelog
=
fs
.
readFileSync
(
'CHANGELOG.md'
,
'utf8'
);
// The changelog entry to be updated looks like this:
// The changelog entry to be updated looks like this:
// ##
2.5.3 (unreleased)
// ##
Unreleased
// We need to add the date in a YYYY-MM-DD format, so that it looks like this:
// We need to add the
version and release
date in a YYYY-MM-DD format, so that it looks like this:
// ## 2.5.3 (2019-04-25)
// ## 2.5.3 (2019-04-25)
if
(
changelog
.
indexOf
(
`##
${
version
}
(unreleased)`
)
===
-
1
)
{
const
unreleased
=
/^## Unreleased$/im
;
throw
Error
(
`Found no changelog entry for version
${
version
}
`
);
if
(
!
unreleased
.
test
(
changelog
))
{
console
.
error
(
'Missing changelog entry'
);
process
.
exit
(
1
);
}
}
const
{
version
}
=
require
(
'../../package.json'
);
fs
.
writeFileSync
(
'CHANGELOG.md'
,
changelog
.
replace
(
fs
.
writeFileSync
(
'CHANGELOG.md'
,
changelog
.
replace
(
`##
${
version
}
(unreleased)`
,
unreleased
,
`##
${
version
}
(
${
new
Date
().
toISOString
().
split
(
'T'
)[
0
]}
)`
)
`##
${
version
}
(
${
new
Date
().
toISOString
().
split
(
'T'
)[
0
]}
)`
)
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment