From 0bc0c91c3ebdf032c8092d7e67fce14e6984adbc Mon Sep 17 00:00:00 2001 From: ipcjs Date: Mon, 6 Jun 2022 16:08:31 +0800 Subject: [PATCH] Update the note about from/toTag. --- README.md | 2 ++ src/releaseNotes.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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,