Skip to content

Commit 6ab11d6

Browse files
committed
Merge pull request #36 from conventional-changelog/feat/options/name
feat(options): `name` and `target_commitish` for GitHub release
1 parent b7ff045 commit 6ab11d6

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

packages/conventional-github-releaser/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ Default: `1`
120120

121121
How many releases of changelog you want to generate. It counts from the latest semver tag. Useful when you forgot to generate any previous releases. Set to `0` to regenerate all.
122122

123+
##### name
124+
125+
Default: same as version tag
126+
127+
Name that should be applied to the release on GitHub.
128+
129+
##### targetCommitish
130+
131+
Default: `undefined` (uses the tag to determine commit)
132+
133+
Specific `target_commitish` in GitHub release
134+
123135
#### gitRawCommitsOpts
124136

125137
##### from

packages/conventional-github-releaser/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ function conventionalGithubReleaser(auth, changelogOpts, context, gitRawCommitsO
100100
repo: context.repository,
101101
tag_name: version,
102102
body: chunk.log,
103-
prerelease: prerelease
103+
prerelease: prerelease,
104+
target_commitish: changelogOpts.targetCommitish,
105+
name: changelogOpts.name || version
104106
// jscs:enable
105107
});
106108

0 commit comments

Comments
 (0)