This commit adds support for "--to=SHA" and "--from=SHA" when running the script at scripts/publish/changelog.js to override defaults. Fixes #2913