···295295func GetPullCount(e Execer, repoAt syntax.ATURI) (PullCount, error) {
296296 row := e.QueryRow(`
297297 select
298298- count(case when state = 0 then 1 end) as open_count,
299299- count(case when state = 1 then 1 end) as merged_count,
300300- count(case when state = 2 then 1 end) as closed_count
298298+ count(case when state = ? then 1 end) as open_count,
299299+ count(case when state = ? then 1 end) as merged_count,
300300+ count(case when state = ? then 1 end) as closed_count
301301 from pulls
302302 where repo_at = ?`,
303303+ PullOpen,
304304+ PullMerged,
305305+ PullClosed,
303306 repoAt,
304307 )
305308