Skip to content

Commit 37c646d

Browse files
committed
Wrong URL
1 parent 5f9f317 commit 37c646d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/src/request_handlers/github.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ async fn handle_rust_timer(
145145
comment: github::Comment,
146146
issue: github::Issue,
147147
) -> ServerResult<github::Response> {
148-
let main_repo_client =
149-
client::Client::from_ctxt(&ctxt, "https://github.com/rust-lang/rust".to_owned());
148+
let main_repo_client = client::Client::from_ctxt(
149+
&ctxt,
150+
"https://api.github.com/repos/rust-lang/rust".to_owned(),
151+
);
150152
if comment.author_association != github::Association::Owner
151153
&& !get_authorized_users().await?.contains(&comment.user.id)
152154
{

0 commit comments

Comments
 (0)