Skip to content

Commit 3d9dcfe

Browse files
Add missing function contains
1 parent 7d768f4 commit 3d9dcfe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

services/convert/git_commit.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ func ToPayloadCommit(ctx context.Context, repo *repo_model.Repository, c *git.Co
7373
}
7474
}
7575

76+
func contains(a []string, s string) bool {
77+
for _, v := range a {
78+
if v == s {
79+
return true
80+
}
81+
}
82+
return false
83+
}
84+
7685
type ToCommitOptions struct {
7786
Stat bool
7887
Verification bool

0 commit comments

Comments
 (0)