Skip to content

Commit

Permalink
adds author field to response
Browse files Browse the repository at this point in the history
I'm using this to send release-notes in slack for our release action, it would be nice to have author data so the message can contain the user ho made the release
  • Loading branch information
ohmyguigs authored and bruceadams committed Aug 23, 2021
1 parent cec887d commit 2c81e21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/get-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function run() {

// Get the outputs for the created release from the response
const {
data: { id: releaseId, html_url: htmlUrl, upload_url: uploadUrl, name: name, body: body, draft: draft, prerelease: prerelease }
data: { id: releaseId, html_url: htmlUrl, upload_url: uploadUrl, name: name, body: body, draft: draft, prerelease: prerelease, author: author }
} = getReleaseResponse;

console.log(`Got release info: '${releaseId}', '${htmlUrl}', '${uploadUrl}', '${name}', '${draft}', '${prerelease}', '${body}'`);
Expand All @@ -40,6 +40,7 @@ async function run() {
core.setOutput("body", body);
core.setOutput("draft", draft);
core.setOutput("prerelease", prerelease);
core.setOutput("author", author);
} catch (error) {
console.log(error);
core.setFailed(error.message);
Expand Down

0 comments on commit 2c81e21

Please sign in to comment.