@@ -51,7 +51,7 @@ FROM pull_request as pr
51
51
WHERE pr.repository = $1
52
52
AND pr.number = $2
53
53
"# ,
54
- repo. to_string ( ) ,
54
+ repo as & GithubRepoName ,
55
55
pr_number. 0 as i32
56
56
)
57
57
. fetch_optional ( executor)
@@ -69,7 +69,7 @@ pub(crate) async fn create_pull_request(
69
69
INSERT INTO pull_request (repository, number)
70
70
VALUES ($1, $2) ON CONFLICT DO NOTHING
71
71
"# ,
72
- repo. to_string ( ) ,
72
+ repo as & GithubRepoName ,
73
73
pr_number. 0 as i32
74
74
)
75
75
. execute ( executor)
@@ -210,7 +210,7 @@ INSERT INTO build (repository, branch, commit_sha, parent, status)
210
210
VALUES ($1, $2, $3, $4, $5)
211
211
RETURNING id
212
212
"# ,
213
- repo. to_string ( ) ,
213
+ repo as & GithubRepoName ,
214
214
branch,
215
215
commit_sha. 0 ,
216
216
parent. 0 ,
@@ -243,7 +243,7 @@ WHERE repository = $1
243
243
AND branch = $2
244
244
AND commit_sha = $3
245
245
"# ,
246
- repo. to_string ( ) ,
246
+ repo as & GithubRepoName ,
247
247
branch,
248
248
commit_sha. 0
249
249
)
@@ -271,7 +271,7 @@ FROM build
271
271
WHERE repository = $1
272
272
AND status = $2
273
273
"# ,
274
- repo. to_string ( ) ,
274
+ repo as & GithubRepoName ,
275
275
BuildStatus :: Pending as BuildStatus
276
276
)
277
277
. fetch_all ( executor)
@@ -470,7 +470,7 @@ pub(crate) async fn get_repository(
470
470
FROM repository
471
471
WHERE name = $1
472
472
"# ,
473
- repo. to_string ( )
473
+ repo as & GithubRepoName
474
474
)
475
475
. fetch_optional ( executor)
476
476
. await ?;
@@ -495,7 +495,7 @@ pub(crate) async fn upsert_repository(
495
495
ON CONFLICT (name)
496
496
DO UPDATE SET tree_state = EXCLUDED.tree_state, treeclosed_src = EXCLUDED.treeclosed_src
497
497
"# ,
498
- repo. to_string ( ) ,
498
+ repo as & GithubRepoName ,
499
499
priority,
500
500
src
501
501
)
0 commit comments