Skip to content

Commit

Permalink
chore: Add commit data log.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 6, 2021
1 parent 57708c3 commit d1514ee
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 @@ -65,7 +65,7 @@ async function run() {
let changelog = '';
for (const data of commits.data.commits) {
core.startGroup(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.commit.committer.name}\x1b[0m ${data.sha}`);
core.info(`Commit: ${data.commit.message}`);
core.info(`${JSON.stringify(data)}`);
core.endGroup();
changelog += formatStringCommit(data.commit.message, `${owner}/${repo}`, {
regExp, shortHash: data.sha.slice(0, 7), filterAuthor, hash: data.sha, author: data.commit.committer.name
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function run() {
let changelog = '';
for (const data of commits.data.commits) {
core.startGroup(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.commit.committer.name}\x1b[0m ${data.sha}`);
core.info(`Commit: ${data.commit.message}`);
core.info(`${JSON.stringify(data)}`);
core.endGroup();
changelog += formatStringCommit(data.commit.message, `${owner}/${repo}`, {
regExp, shortHash: data.sha.slice(0, 7), filterAuthor, hash: data.sha, author: data.commit.committer.name
Expand Down

0 comments on commit d1514ee

Please sign in to comment.