Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 901bfd2

Browse files
committed
bugfix
1 parent efeccb3 commit 901bfd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/logic/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ func (self GithubLogic) IssueCommentEvent(ctx context.Context, body []byte) erro
127127

128128
if action == "created" {
129129
comments := result.Get("issue.comments").Int()
130-
// 第一个评论,认为是认领
131-
if comments == 1 {
130+
// 这是第一个评论,认为是认领
131+
if comments == 0 {
132132
githubUser := result.Get("comment.user.login").String()
133133
email := self.findUserEmail(githubUser)
134134

0 commit comments

Comments
 (0)