Skip to content

Commit c1c55fd

Browse files
author
github-actions
committed
[actions] Build of 812633f
1 parent 11c7110 commit c1c55fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

typescript/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ function get_commits(octokit) {
264264
}
265265
case 'push':
266266
default: {
267-
if ('commits' in github.context.payload) {
267+
if ('commits' in github.context.payload && github.context.payload['commits'].length > 0) {
268268
for (const commit of github.context.payload['commits']) {
269269
commits.push(new commit_1.Commit(commit));
270270
}
271-
// on tags
271+
// on tags or if commits was empty
272272
}
273273
else if ('head_commit' in github.context.payload) {
274274
commits.push(new commit_1.Commit(github.context.payload['head_commit']));

typescript/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)