Skip to content

Commit 66b2da0

Browse files
fix: remove base github url
1 parent c5471db commit 66b2da0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/github/api/client.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use tracing::log;
77
use crate::bors::event::PullRequestComment;
88
use crate::bors::{CheckSuite, CheckSuiteStatus, Comment, RepositoryClient};
99
use crate::config::{RepositoryConfig, CONFIG_FILE_PATH};
10+
use crate::github::api::base_github_html_url;
1011
use crate::github::api::operations::{merge_branches, set_branch_to_commit, MergeError};
11-
use crate::github::api::{base_github_html_url, base_github_url};
1212
use crate::github::{Branch, CommitSha, GithubRepoName, PullRequest, PullRequestNumber};
1313

1414
/// Provides access to a single app installation (repository) using the GitHub API.
@@ -85,8 +85,7 @@ impl RepositoryClient for GithubRepositoryClient {
8585
.client
8686
.get(
8787
format!(
88-
"{}/repos/{}/{}/branches/{name}",
89-
base_github_url(),
88+
"/repos/{}/{}/branches/{name}",
9089
self.repo_name.owner(),
9190
self.repo_name.name(),
9291
)
@@ -153,8 +152,7 @@ impl RepositoryClient for GithubRepositoryClient {
153152
.client
154153
.get(
155154
format!(
156-
"{}/repos/{}/{}/commits/{}/check-suites",
157-
base_github_url(),
155+
"/repos/{}/{}/commits/{}/check-suites",
158156
self.repo_name.owner(),
159157
self.repo_name.name(),
160158
sha.0

src/github/api/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ fn base_github_html_url() -> &'static str {
2525
"https://github.com"
2626
}
2727

28-
fn base_github_url() -> &'static str {
29-
"https://api.github.com"
30-
}
31-
3228
/// Provides access to managed GitHub repositories.
3329
pub struct GithubAppState {
3430
client: Octocrab,

0 commit comments

Comments
 (0)