Skip to content

Commit

Permalink
fix: Fix get commit content.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 7, 2021
1 parent deefa98 commit 6adbada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function run() {
}
let changelog = '';
for (const data of commits.data.commits) {
const message = commits.data.commits.split('\n\n')[0];
const message = data.commit.message.split('\n\n')[0];
core.startGroup(`Commit: \x1b[34m${message}\x1b[0m \x1b[34m${data.commit.author.name}\x1b[0m ${data.sha}`);
core.info(`${JSON.stringify(data, null, 2)}`);
core.endGroup();
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function run() {
}
let changelog = '';
for (const data of commits.data.commits) {
const message = commits.data.commits.split('\n\n')[0];
const message = data.commit.message.split('\n\n')[0];
core.startGroup(`Commit: \x1b[34m${message}\x1b[0m \x1b[34m${data.commit.author.name}\x1b[0m ${data.sha}`);
core.info(`${JSON.stringify(data, null, 2)}`);
core.endGroup();
Expand Down

0 comments on commit 6adbada

Please sign in to comment.