From ba06649fc17843d3dcff16bef5cdf0f33f0d5fc4 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Wed, 10 Jun 2020 21:23:45 -0700 Subject: [PATCH] fix: list commits of type `docs` for python (#460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] #459 - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes # 🦕 --- src/releasers/python.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/releasers/python.ts b/src/releasers/python.ts index 4501a901f..691916239 100644 --- a/src/releasers/python.ts +++ b/src/releasers/python.ts @@ -26,6 +26,17 @@ import {Changelog} from '../updaters/changelog'; import {SetupPy} from '../updaters/python/setup-py'; import {SetupCfg} from '../updaters/python/setup-cfg'; +const CHANGELOG_SECTIONS = [ + {type: 'feat', section: 'Features'}, + {type: 'fix', section: 'Bug Fixes'}, + {type: 'docs', section: 'Documentation'}, + {type: 'chore', section: 'Miscellaneous Chores', hidden: true}, + {type: 'refactor', section: 'Code Refactoring', hidden: true}, + {type: 'test', section: 'Tests', hidden: true}, + {type: 'build', section: 'Build System', hidden: true}, + {type: 'ci', section: 'Continuous Integration', hidden: true}, +]; + export class Python extends ReleasePR { static releaserName = 'python'; protected async _run() { @@ -38,6 +49,7 @@ export class Python extends ReleasePR { commits, githubRepoUrl: this.repoUrl, bumpMinorPreMajor: this.bumpMinorPreMajor, + changelogSections: CHANGELOG_SECTIONS, }); const candidate: ReleaseCandidate = await this.coerceReleaseCandidate( cc,