@metamask/auto-changelog
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -9,2 +9,7 @@ # Changelog | ||
## [2.6.0] | ||
### Changed | ||
- Read repository URL from package.json if `npm_package_repository_url` is not set ([#111](https://github.com/MetaMask/auto-changelog/pull/111)) | ||
- This makes this package compatible with Yarn >1. | ||
## [2.5.0] | ||
@@ -77,3 +82,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/auto-changelog/compare/v2.5.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/auto-changelog/compare/v2.6.0...HEAD | ||
[2.6.0]: https://github.com/MetaMask/auto-changelog/compare/v2.5.0...v2.6.0 | ||
[2.5.0]: https://github.com/MetaMask/auto-changelog/compare/v2.4.0...v2.5.0 | ||
@@ -80,0 +86,0 @@ [2.4.0]: https://github.com/MetaMask/auto-changelog/compare/v2.3.0...v2.4.0 |
@@ -22,2 +22,3 @@ #!/usr/bin/env node | ||
const validate_changelog_1 = require("./validate-changelog"); | ||
const repo_1 = require("./repo"); | ||
const updateEpilog = `New commits will be added to the "${constants_1.unreleased}" section (or \ | ||
@@ -35,7 +36,2 @@ to the section for the current release if the '--rc' flag is used) in reverse \ | ||
const npmPackageVersion = process.env.npm_package_version; | ||
// eslint-disable-next-line node/no-process-env | ||
const npmPackageRepositoryUrl = process.env.npm_package_repository_url; | ||
const githubRepositoryUrl = npmPackageRepositoryUrl | ||
? npmPackageRepositoryUrl.replace(/\.git$/u, '') | ||
: null; | ||
function isValidUrl(proposedUrl) { | ||
@@ -120,3 +116,3 @@ try { | ||
.option('repo', { | ||
default: githubRepositoryUrl, | ||
default: repo_1.getRepositoryUrl(), | ||
description: `The GitHub repository URL`, | ||
@@ -123,0 +119,0 @@ type: 'string', |
{ | ||
"name": "@metamask/auto-changelog", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Utilities for validating and updating \"Keep a Changelog\" formatted changelogs", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
149398
33
1494
5