Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(github): update sync redirect return url (#5395)

Will Hutchinson107ca45d1f75
diff --git a/crates/github/src/inbound/github_sync_router/mod.rs b/crates/github/src/inbound/github_sync_router/mod.rs
index 4c93fe6002..7bb8f33cdf 100644
--- a/crates/github/src/inbound/github_sync_router/mod.rs
+++ b/crates/github/src/inbound/github_sync_router/mod.rs
@@ -198,7 +198,10 @@ fn app_redirect() -> Redirect {
fn team_settings_redirect() -> Redirect {
let app_url = AppServiceUrl::unwrap_new();
- let destination = format!("{}/settings/team", app_url.as_str().trim_end_matches('/'));
+ let destination = format!(
+ "{}/app/settings/connections",
+ app_url.as_str().trim_end_matches('/')
+ );
Redirect::temporary(&destination)
}
diff --git a/crates/github/src/inbound/github_sync_router/test.rs b/crates/github/src/inbound/github_sync_router/test.rs
index 6f1f42dae9..1f5e4b710a 100644
--- a/crates/github/src/inbound/github_sync_router/test.rs
+++ b/crates/github/src/inbound/github_sync_router/test.rs
@@ -408,7 +408,10 @@ async fn successful_callbacks_redirect_to_the_matching_destination() {
);
assert_eq!(
team.headers().get("location").unwrap().to_str().unwrap(),
- format!("{}/settings/team", app_url().trim_end_matches('/'))
+ format!(
+ "{}/app/settings/connections",
+ app_url().trim_end_matches('/')
+ )
);
}