Merge pull request #24307 from ffflorian/generate-changelog

Add generate-changelog
This commit is contained in:
Arthur Ozga
2018-03-15 12:45:47 -07:00
committed by GitHub
4 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import * as changelog from 'generate-changelog';
changelog.generate({
exclude: ['chore'],
minor: true,
repoUrl: 'https://github.com/lob/generate-changelog',
tag: 'v1.6.0...v1.7.0'
}).then(changelog => changelog.trim());

21
types/generate-changelog/index.d.ts vendored Normal file
View File

@@ -0,0 +1,21 @@
// Type definitions for generate-changelog 1.7
// Project: https://github.com/lob/generate-changelog#readme
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Options {
/** exclude listed commit types (e.g. `['chore', 'style', 'refactor']`) */
exclude?: string[];
/** whether it should be a patch changelog */
patch?: boolean;
/** whether it should be a minor changelog */
minor?: boolean;
/** whether it should be a major changelog */
major?: boolean;
/** repo URL that will be used when linking commits */
repoUrl?: string;
/** generate from specific tag or range (e.g. `v1.2.3` or `v1.2.3..v1.2.4`)' */
tag?: string;
}
export function generate(options: Options): Promise<string>;

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"generate-changelog-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }