zeta: Collect git sha / remote urls when data collection from OSS is enabled (#35514)

Release Notes:

- Edit Prediction: Added Git info to edit predictions requests (only
sent for opensource projects when data collection is enabled). The sent
Git info is the SHA of the current commit and the URLs for the `origin`
and `upstream` remotes.
This commit is contained in:
Michael Sloan 2025-08-04 14:18:06 -06:00 committed by GitHub
parent 3df5394a8c
commit 68c24655e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 70 additions and 2 deletions

View file

@ -172,6 +172,7 @@ async fn get_context(
None => String::new(),
};
let can_collect_data = false;
let git_info = None;
cx.update(|cx| {
gather_context(
project.as_ref(),
@ -180,6 +181,7 @@ async fn get_context(
clipped_cursor,
move || events,
can_collect_data,
git_info,
cx,
)
})?