Skip to content

Commit

Permalink
feat: customize java changelog/release notes sections (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 authored and bcoe committed Aug 22, 2019
1 parent 9ffe1c7 commit de84a86
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/releasers/java-yoshi.ts
Expand Up @@ -29,6 +29,21 @@ import { PomXML } from '../updaters/java/pom-xml';
import { VersionsManifest } from '../updaters/java/versions-manifest';
import { Readme } from '../updaters/java/readme';

const CHANGELOG_SECTIONS = [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'perf', section: 'Performance Improvements' },
{ type: 'deps', section: 'Dependencies' },
{ type: 'revert', section: 'Reverts' },
{ type: 'docs', section: 'Documentation' },
{ type: 'style', section: 'Styles', hidden: true },
{ 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 JavaYoshi extends ReleasePR {
protected async _run() {
const latestTag: GitHubTag | undefined = await this.gh.latestTag();
Expand All @@ -47,6 +62,7 @@ export class JavaYoshi 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 de84a86

Please sign in to comment.