Make sure prepare-release scripts works when running from another dir
Summary: Yesterday's script failed if prepare-release was invoked from another dir Reviewed By: jknoxville Differential Revision: D20362093 fbshipit-source-id: a0ce877a2f145f320cf346dc86e3d2568279b8b9
This commit is contained in:
committed by
Facebook Github Bot
parent
85cc0d9d88
commit
9dc187cc25
@@ -39,7 +39,7 @@ console.log(
|
|||||||
|
|
||||||
// # get all commit summaries since last release | find all changelog entries, but make sure there is only one line per commit by temporarily replacing newlines
|
// # get all commit summaries since last release | find all changelog entries, but make sure there is only one line per commit by temporarily replacing newlines
|
||||||
const hgLogCommand = `hg log -r "${firstCommit}::${lastCommit} and file('../*')" --template "{phabdiff} - {sub('\n','${newlineMarker}', desc)}\n"`;
|
const hgLogCommand = `hg log -r "${firstCommit}::${lastCommit} and file('../*')" --template "{phabdiff} - {sub('\n','${newlineMarker}', desc)}\n"`;
|
||||||
const hgLog = cp.execSync(hgLogCommand).toString();
|
const hgLog = cp.execSync(hgLogCommand, {cwd: __dirname}).toString();
|
||||||
|
|
||||||
const diffRe = /^D\d+/;
|
const diffRe = /^D\d+/;
|
||||||
const changeLogLineRe = /(^changelog:\s*?)(.*?)$/i;
|
const changeLogLineRe = /(^changelog:\s*?)(.*?)$/i;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ echo "Bumping version number for android related files..."
|
|||||||
"$SONAR_DIR"/scripts/bump.sh "$VERSION"
|
"$SONAR_DIR"/scripts/bump.sh "$VERSION"
|
||||||
|
|
||||||
# Generate changelog
|
# Generate changelog
|
||||||
./generate-changelog.js
|
"$SONAR_DIR"/scripts/generate-changelog.js
|
||||||
|
|
||||||
# Create commit
|
# Create commit
|
||||||
echo "Committing the files..."
|
echo "Committing the files..."
|
||||||
|
|||||||
Reference in New Issue
Block a user