diff --git a/README.md b/README.md index 0522d7b..e77b6e5 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,8 @@ jobs: 💡 By default not specifying `fromTag` or `toTag` will resolve `toTag` from either the `ref` or alternatively fallback to the latest tag from the git API. `fromTag` is resolved by sorting tags using [semver](https://semver.org/). Check the [configuration](#configuration-specification) for alternatives. +💡 `fromTag` and `toTag` not just `tag`, they can be any legal git's `ref` + ### Configuration The action supports flexible configuration options to modify vast areas of its behavior. To do so, provide the configuration file to the workflow using the `configuration` setting. diff --git a/src/releaseNotes.ts b/src/releaseNotes.ts index bd5a075..9abbd56 100755 --- a/src/releaseNotes.ts +++ b/src/releaseNotes.ts @@ -214,7 +214,7 @@ export class ReleaseNotes { core.info(`ℹ️ Retrieved ${prCommits.length} commits for ${owner}/${repo}`) - return prCommits.map(function (commit) { + return prCommits.map(function (commit): PullRequestInfo { return { number: 0, title: commit.summary,