- update README, recompile dist
This commit is contained in:
@@ -82,6 +82,7 @@ A full set list of possible output values for this action.
|
|||||||
| `outputs.fromTag` | Defines the `fromTag` which describes the lower bound to process pull requests for |
|
| `outputs.fromTag` | Defines the `fromTag` which describes the lower bound to process pull requests for |
|
||||||
| `outputs.toTag` | Defines the `toTag` which describes the upper bound to process pull request for |
|
| `outputs.toTag` | Defines the `toTag` which describes the upper bound to process pull request for |
|
||||||
| `outputs.failed` | Defines if there was an issue with the action run, and the changelog may not have been generated correctly. [true, false] |
|
| `outputs.failed` | Defines if there was an issue with the action run, and the changelog may not have been generated correctly. [true, false] |
|
||||||
|
| `outputs.pull_requests` | Defines a `,` joined array with all PR IDs associated with the generated changelog. |
|
||||||
|
|
||||||
|
|
||||||
## Full Sample 🖥️
|
## Full Sample 🖥️
|
||||||
|
|||||||
+6
@@ -593,6 +593,12 @@ class ReleaseNotes {
|
|||||||
if (!this.options.commitMode) {
|
if (!this.options.commitMode) {
|
||||||
core.startGroup(`🚀 Load pull requests`);
|
core.startGroup(`🚀 Load pull requests`);
|
||||||
mergedPullRequests = yield this.getMergedPullRequests(this.octokit);
|
mergedPullRequests = yield this.getMergedPullRequests(this.octokit);
|
||||||
|
// define the included PRs within this release as output
|
||||||
|
core.setOutput('pull_requests', mergedPullRequests
|
||||||
|
.map(pr => {
|
||||||
|
return pr.number;
|
||||||
|
})
|
||||||
|
.join(','));
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+8
-1
@@ -26,7 +26,14 @@ export class ReleaseNotes {
|
|||||||
mergedPullRequests = await this.getMergedPullRequests(this.octokit)
|
mergedPullRequests = await this.getMergedPullRequests(this.octokit)
|
||||||
|
|
||||||
// define the included PRs within this release as output
|
// define the included PRs within this release as output
|
||||||
core.setOutput('pull_requests', mergedPullRequests.map(pr => { return pr.number }).join(','))
|
core.setOutput(
|
||||||
|
'pull_requests',
|
||||||
|
mergedPullRequests
|
||||||
|
.map(pr => {
|
||||||
|
return pr.number
|
||||||
|
})
|
||||||
|
.join(',')
|
||||||
|
)
|
||||||
|
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user