Skip to content

Commit

Permalink
fix: list commits of type docs for python (#460)
Browse files Browse the repository at this point in the history
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 #<issue_number_goes_here> 🦕
  • Loading branch information
busunkim96 committed Jun 11, 2020
1 parent ae45be4 commit ba06649
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/releasers/python.ts
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down

0 comments on commit ba06649

Please sign in to comment.