@hadl-labs/changelog-github 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -20
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -482,26 +482,8 @@ async function getInfoFromPullRequest(request) {
|
|
|
482
482
|
|
|
483
483
|
// src/index.ts
|
|
484
484
|
var changelogFunctions = {
|
|
485
|
-
getDependencyReleaseLine: async (
|
|
486
|
-
|
|
487
|
-
throw new Error(`Please provide a repo to this changelog generator like this:
|
|
488
|
-
"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]`);
|
|
489
|
-
}
|
|
490
|
-
if (dependenciesUpdated.length === 0)
|
|
491
|
-
return "";
|
|
492
|
-
const changesetLink = `- Updated dependencies [${(await Promise.all(changesets.map(async (cs) => {
|
|
493
|
-
if (cs.commit) {
|
|
494
|
-
let { links } = await getInfo({
|
|
495
|
-
repo: options["repo"],
|
|
496
|
-
commit: cs.commit
|
|
497
|
-
});
|
|
498
|
-
return links.commit;
|
|
499
|
-
}
|
|
500
|
-
return null;
|
|
501
|
-
}))).filter((_) => _).join(", ")}]:`;
|
|
502
|
-
const updatedDepenenciesList = dependenciesUpdated.map((dependency) => ` - ${dependency.name}@${dependency.newVersion}`);
|
|
503
|
-
return [changesetLink, ...updatedDepenenciesList].join(`
|
|
504
|
-
`);
|
|
485
|
+
getDependencyReleaseLine: async () => {
|
|
486
|
+
return "";
|
|
505
487
|
},
|
|
506
488
|
getReleaseLine: async (changeset, _type, options) => {
|
|
507
489
|
if (!options || !options["repo"]) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadl-labs/changelog-github",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
|
+
"repository": "https://github.com/hadl-labs/changelog-github",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "bun build src/index.ts --outdir dist --format cjs && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
12
13
|
"test": "bun test",
|