Skip to content

Commit e83a5fc

Browse files
committed
feat(options): name and target_commitish for GitHub release
1 parent 5f7ad22 commit e83a5fc

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

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

119119
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.
120120

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

123135
##### from

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)