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:
parent
3df5394a8c
commit
68c24655e9
4 changed files with 70 additions and 2 deletions
|
@ -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,
|
||||
)
|
||||
})?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue