Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shine1594 committed Aug 9, 2021
1 parent e1ca8d1 commit 0029c1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/conventional-github-releaser.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ const transform = (app) => (chunk, cb) => {
chunk.version = (chunk.gitTags.match(
new RegExp(`${app}@\\d*\\.\\d*\\.\\d*`)
) || [])[0];
console.log("chunk");
console.log(chunk);
}

if (chunk.committerDate) {
Expand Down
3 changes: 2 additions & 1 deletion src/conventional-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ const generateReleaseNote = async (app, from, to) => {
await writer_opts_angular,
(err, responses) => {
if (err) return console.log(err);
const { body, html_url } = responses[0].body;
console.log(responses);
const { body, html_url } = (responses[0] && responses[0].body) || {};
console.log(body);
console.log(html_url);
}
Expand Down

0 comments on commit 0029c1b

Please sign in to comment.