(ctx context.Context, opType ActionType, owner *User, repo *Repository, refName string, content []byte)
| 185 | } |
| 186 | |
| 187 | func (s *ActionsStore) mirrorSyncAction(ctx context.Context, opType ActionType, owner *User, repo *Repository, refName string, content []byte) error { |
| 188 | return s.notifyWatchers(ctx, |
| 189 | &Action{ |
| 190 | ActUserID: owner.ID, |
| 191 | ActUserName: owner.Name, |
| 192 | OpType: opType, |
| 193 | Content: string(content), |
| 194 | RepoID: repo.ID, |
| 195 | RepoUserName: owner.Name, |
| 196 | RepoName: repo.Name, |
| 197 | RefName: refName, |
| 198 | IsPrivate: repo.IsPrivate || repo.IsUnlisted, |
| 199 | }, |
| 200 | ) |
| 201 | } |
| 202 | |
| 203 | type MirrorSyncPushOptions struct { |
| 204 | Owner *User |
no test coverage detected