···295func GetPullCount(e Execer, repoAt syntax.ATURI) (PullCount, error) {
296 row := e.QueryRow(`
297 select
298- count(case when state = 0 then 1 end) as open_count,
299- count(case when state = 1 then 1 end) as merged_count,
300- count(case when state = 2 then 1 end) as closed_count
301 from pulls
302 where repo_at = ?`,
000303 repoAt,
304 )
305
···295func GetPullCount(e Execer, repoAt syntax.ATURI) (PullCount, error) {
296 row := e.QueryRow(`
297 select
298+ count(case when state = ? then 1 end) as open_count,
299+ count(case when state = ? then 1 end) as merged_count,
300+ count(case when state = ? then 1 end) as closed_count
301 from pulls
302 where repo_at = ?`,
303+ PullOpen,
304+ PullMerged,
305+ PullClosed,
306 repoAt,
307 )
308