Skip to content

Commit 00755d8

Browse files
committed
Add some comments
1 parent 6c52b92 commit 00755d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/pull/pull.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func NewPullRequest(ctx context.Context, opts *NewPullRequestOptions) error {
147147
if err != nil {
148148
return err
149149
}
150+
// It maybe an empty pull request. Only non-empty pull request need to create push comment
150151
if len(compareInfo.Commits) > 0 {
151152
data := issues_model.PushActionContent{IsForcePush: false}
152153
data.CommitIDs = make([]string, 0, len(compareInfo.Commits))

0 commit comments

Comments
 (0)