@changesets/changelog-github
Advanced tools
Comparing version 0.2.2 to 0.2.3
# @changesets/changelog-github | ||
## 0.2.3 | ||
### Patch Changes | ||
- [`e56928b`](https://github.com/atlassian/changesets/commit/e56928bbd6f9096def06ac37487bdbf28efec9d1) [#298](https://github.com/atlassian/changesets/pull/298) Thanks [@eps1lon](https://github.com/eps1lon)! - In changelog-github, throw more descriptive error when no options are provided. | ||
- Updated dependencies [[`04ddfd7`](https://github.com/atlassian/changesets/commit/04ddfd7c3acbfb84ef9c92873fe7f9dea1f5145c), [`e56928b`](https://github.com/atlassian/changesets/commit/e56928bbd6f9096def06ac37487bdbf28efec9d1)]: | ||
- @changesets/get-github-info@0.4.2 | ||
- @changesets/types@1.0.1 | ||
## 0.2.2 | ||
@@ -4,0 +14,0 @@ |
@@ -32,3 +32,3 @@ 'use strict'; | ||
getReleaseLine: async (changeset, type, options) => { | ||
if (!options.repo) { | ||
if (!options || !options.repo) { | ||
throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'); | ||
@@ -35,0 +35,0 @@ } |
@@ -26,3 +26,3 @@ "use strict"; | ||
getReleaseLine: async (changeset, type, options) => { | ||
if (!options.repo) throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'); | ||
if (!options || !options.repo) throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'); | ||
const [firstLine, ...futureLines] = changeset.summary.split("\n").map(l => l.trimRight()); | ||
@@ -29,0 +29,0 @@ if (changeset.commit) { |
@@ -28,3 +28,3 @@ import { config } from 'dotenv'; | ||
getReleaseLine: async (changeset, type, options) => { | ||
if (!options.repo) { | ||
if (!options || !options.repo) { | ||
throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'); | ||
@@ -31,0 +31,0 @@ } |
{ | ||
"name": "@changesets/changelog-github", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A changelog entry generator for GitHub that links to commits, PRs and users", | ||
@@ -10,6 +10,6 @@ "main": "dist/changelog-github.cjs.js", | ||
"dependencies": { | ||
"@changesets/get-github-info": "^0.4.1", | ||
"@changesets/types": "^1.0.0", | ||
"@changesets/get-github-info": "^0.4.2", | ||
"@changesets/types": "^1.0.1", | ||
"dotenv": "^8.1.0" | ||
} | ||
} |
@@ -42,3 +42,3 @@ import { ChangelogFunctions } from "@changesets/types"; | ||
getReleaseLine: async (changeset, type, options) => { | ||
if (!options.repo) { | ||
if (!options || !options.repo) { | ||
throw new Error( | ||
@@ -45,0 +45,0 @@ 'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11908
0