| 150 | } |
| 151 | |
| 152 | func chatDiffStatusFromRow(row database.AcquireStaleChatDiffStatusesRow) database.ChatDiffStatus { |
| 153 | return database.ChatDiffStatus{ |
| 154 | ChatID: row.ChatID, |
| 155 | Url: row.Url, |
| 156 | PullRequestState: row.PullRequestState, |
| 157 | ChangesRequested: row.ChangesRequested, |
| 158 | Additions: row.Additions, |
| 159 | Deletions: row.Deletions, |
| 160 | ChangedFiles: row.ChangedFiles, |
| 161 | AuthorLogin: row.AuthorLogin, |
| 162 | AuthorAvatarUrl: row.AuthorAvatarUrl, |
| 163 | BaseBranch: row.BaseBranch, |
| 164 | HeadBranch: row.HeadBranch, |
| 165 | PrNumber: row.PrNumber, |
| 166 | Commits: row.Commits, |
| 167 | Approved: row.Approved, |
| 168 | ReviewerCount: row.ReviewerCount, |
| 169 | RefreshedAt: row.RefreshedAt, |
| 170 | StaleAt: row.StaleAt, |
| 171 | CreatedAt: row.CreatedAt, |
| 172 | UpdatedAt: row.UpdatedAt, |
| 173 | GitBranch: row.GitBranch, |
| 174 | GitRemoteOrigin: row.GitRemoteOrigin, |
| 175 | PullRequestTitle: row.PullRequestTitle, |
| 176 | PullRequestDraft: row.PullRequestDraft, |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | func (w *Worker) tick(ctx context.Context) { |
| 181 | // Use a dedicated tick timeout that is longer than the |