Skip to content

Commit

Permalink
chore: update debug log.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 6, 2021
1 parent 88c12f6 commit 4652302
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ async function run() {
);
}
let changelog = '';
core.group('Commit Group');
for (const data of commits.data.commits) {
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.author.name}\x1b[0m ${data.sha}`);
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.committer.name}\x1b[0m ${data.sha}`);
changelog += formatStringCommit(data.commit.message, `${owner}/${repo}`, {
regExp, shortHash: data.sha.slice(0, 7), filterAuthor, hash: data.sha, author: data.author.name
regExp, shortHash: data.sha.slice(0, 7), filterAuthor, hash: data.sha, author: data.committer.name
});
}
core.endGroup();

let tagRef = '';
if ((github.context.ref || '').startsWith('refs/tags/')) {
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ async function run() {
);
}
let changelog = '';
core.group('Commit Group');
for (const data of commits.data.commits) {
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.author.name}\x1b[0m ${data.sha}`);
core.info(`Commit: \x1b[34m${data.commit.message}\x1b[0m \x1b[34m${data.committer.name}\x1b[0m ${data.sha}`);
changelog += formatStringCommit(data.commit.message, `${owner}/${repo}`, {
regExp, shortHash: data.sha.slice(0, 7), filterAuthor, hash: data.sha, author: data.author.name
regExp, shortHash: data.sha.slice(0, 7), filterAuthor, hash: data.sha, author: data.committer.name
});
}
core.endGroup();

let tagRef = '';
if ((github.context.ref || '').startsWith('refs/tags/')) {
Expand Down

0 comments on commit 4652302

Please sign in to comment.