File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ func UpdateHookTask(t *HookTask) error {
634
634
return err
635
635
}
636
636
637
- // FindUndeliveredHookTasks represents hook tasks
637
+ // FindUndeliveredHookTasks represents find the undelivered hook tasks
638
638
func FindUndeliveredHookTasks () ([]* HookTask , error ) {
639
639
tasks := make ([]* HookTask , 0 , 10 )
640
640
if err := x .Where ("is_delivered=?" , false ).Find (& tasks ); err != nil {
@@ -643,7 +643,7 @@ func FindUndeliveredHookTasks() ([]*HookTask, error) {
643
643
return tasks , nil
644
644
}
645
645
646
- // FindRepoUndeliveredHookTasks represents hook tasks
646
+ // FindRepoUndeliveredHookTasks represents find the undelivered hook tasks of one repository
647
647
func FindRepoUndeliveredHookTasks (repoID int64 ) ([]* HookTask , error ) {
648
648
tasks := make ([]* HookTask , 0 , 5 )
649
649
if err := x .Where ("repo_id=? AND is_delivered=?" , repoID , false ).Find (& tasks ); err != nil {
You can’t perform that action at this time.
0 commit comments