MCPcopy Index your code
hub / github.com/coder/coder / chatDiffStatusFromRow

Function chatDiffStatusFromRow

coderd/x/gitsync/worker.go:152–178  ·  view source on GitHub ↗
(row database.AcquireStaleChatDiffStatusesRow)

Source from the content-addressed store, hash-verified

150}
151
152func 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
180func (w *Worker) tick(ctx context.Context) {
181 // Use a dedicated tick timeout that is longer than the

Callers 1

tickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected