Skip to content

Commit

Permalink
Merge pull request #36 from conventional-changelog/feat/options/name
Browse files Browse the repository at this point in the history
feat(options): `name` and `target_commitish` for GitHub release
  • Loading branch information
hutson committed Jan 22, 2017
2 parents ee8f1d5 + e83a5fc commit 36b97f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -120,6 +120,18 @@ Default: `1`

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.

##### name

Default: same as version tag

Name that should be applied to the release on GitHub.

##### targetCommitish

Default: `undefined` (uses the tag to determine commit)

Specific `target_commitish` in GitHub release

#### gitRawCommitsOpts

##### from
Expand Down
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -100,7 +100,9 @@ function conventionalGithubReleaser(auth, changelogOpts, context, gitRawCommitsO
repo: context.repository,
tag_name: version,
body: chunk.log,
prerelease: prerelease
prerelease: prerelease,
target_commitish: changelogOpts.targetCommitish,
name: changelogOpts.name || version
// jscs:enable
});

Expand Down

0 comments on commit 36b97f3

Please sign in to comment.