@changesets/changelog-github
Advanced tools
Comparing version 0.2.7 to 0.2.8
# @changesets/changelog-github | ||
## 0.2.8 | ||
### Patch Changes | ||
- [`3436c53`](https://github.com/atlassian/changesets/commit/3436c53acf444c2ce19f8548920b7b73461a9c76) [#510](https://github.com/atlassian/changesets/pull/510) Thanks [@tuanddd](https://github.com/tuanddd)! - Added validation rule for invalid `repo` arguments. | ||
- Updated dependencies [[`3436c53`](https://github.com/atlassian/changesets/commit/3436c53acf444c2ce19f8548920b7b73461a9c76)]: | ||
- @changesets/get-github-info@0.4.5 | ||
## 0.2.7 | ||
@@ -4,0 +13,0 @@ |
@@ -15,3 +15,3 @@ "use strict"; | ||
if (0 === dependenciesUpdated.length) return ""; | ||
return [ `- Updated dependencies [${(await Promise.all(changesets.map(async cs => { | ||
return [ `- Updated dependencies [${(await Promise.all(changesets.map((async cs => { | ||
if (cs.commit) { | ||
@@ -24,7 +24,7 @@ let {links: links} = await getGithubInfo.getInfo({ | ||
} | ||
}))).filter(_ => _).join(", ")}]:`, ...dependenciesUpdated.map(dependency => ` - ${dependency.name}@${dependency.newVersion}`) ].join("\n"); | ||
})))).filter((_ => _)).join(", ")}]:`, ...dependenciesUpdated.map((dependency => ` - ${dependency.name}@${dependency.newVersion}`)) ].join("\n"); | ||
}, | ||
getReleaseLine: async (changeset, type, options) => { | ||
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()); | ||
const [firstLine, ...futureLines] = changeset.summary.split("\n").map((l => l.trimRight())); | ||
if (changeset.commit) { | ||
@@ -35,5 +35,5 @@ let {links: links} = await getGithubInfo.getInfo({ | ||
}); | ||
return `\n\n- ${links.commit}${null === links.pull ? "" : ` ${links.pull}`}${null === links.user ? "" : ` Thanks ${links.user}!`} - ${firstLine}\n${futureLines.map(l => ` ${l}`).join("\n")}`; | ||
return `\n\n- ${links.commit}${null === links.pull ? "" : " " + links.pull}${null === links.user ? "" : ` Thanks ${links.user}!`} - ${firstLine}\n${futureLines.map((l => " " + l)).join("\n")}`; | ||
} | ||
return `\n\n- ${firstLine}\n${futureLines.map(l => ` ${l}`).join("\n")}`; | ||
return `\n\n- ${firstLine}\n${futureLines.map((l => " " + l)).join("\n")}`; | ||
} | ||
@@ -40,0 +40,0 @@ }; |
{ | ||
"name": "@changesets/changelog-github", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "A changelog entry generator for GitHub that links to commits, PRs and users", | ||
@@ -10,3 +10,3 @@ "main": "dist/changelog-github.cjs.js", | ||
"dependencies": { | ||
"@changesets/get-github-info": "^0.4.4", | ||
"@changesets/get-github-info": "^0.4.5", | ||
"@changesets/types": "^3.0.0", | ||
@@ -13,0 +13,0 @@ "dotenv": "^8.1.0" |
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
13879