mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Added pullRequestNumber to the action's outputs (#167)
* feat: set pullRequesstNumber as action output * chore: add changeset * fix: feedback from pr review * Update .changeset/long-mayflies-yell.md Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
co-authored by
Mateusz Burzyński
parent
c7c59f0c6f
commit
993a0a090d
+4
-1
@@ -97,13 +97,16 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
|
||||
return;
|
||||
}
|
||||
case hasChangesets:
|
||||
await runVersion({
|
||||
const { pullRequestNumber } = await runVersion({
|
||||
script: getOptionalInput("version"),
|
||||
githubToken,
|
||||
prTitle: getOptionalInput("title"),
|
||||
commitMessage: getOptionalInput("commit"),
|
||||
hasPublishScript,
|
||||
});
|
||||
|
||||
core.setOutput("pullRequestNumber", String(pullRequestNumber));
|
||||
|
||||
return;
|
||||
}
|
||||
})().catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user