8000 Use default login account to access Github · flows-network/github-pr-summary@de75765 · GitHub
[go: up one dir, main page]

Skip to content

Commit de75765

Browse files
committed
Use default login account to access Github
Signed-off-by: Michael Yuan <michael@secondstate.io>
1 parent 4760412 commit de75765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github-pr-summary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub async fn on_deploy() {
2222
let owner = env::var("github_owner").unwrap_or("juntao".to_string());
2323
let repo = env::var("github_repo").unwrap_or("test".to_string()< 8000 /span>);
2424

25-
listen_to_event(&GithubLogin::Provided(owner.clone()), &owner, &repo, vec!["pull_request", "issue_comment"]).await;
25+
listen_to_event(&GithubLogin::Default, &owner, &repo, vec!["pull_request", "issue_comment"]).await;
2626
}
2727

2828
#[event_handler]
@@ -90,7 +90,7 @@ async fn handler(payload: EventPayload) {
9090
_ => return,
9191
};
9292

93-
let octo = get_octo(&GithubLogin::Provided(owner.clone()));
93+
let octo = get_octo(&GithubLogin::Default);
9494
let issues = octo.issues(owner.clone(), repo.clone());
9595
let mut comment_id: CommentId = 0u64.into();
9696
if new_commit {

0 commit comments

Comments
 (0)
0