Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 52eac31

Browse files
authored
Merge pull request #654 from datafold/triggered_by_env_variable_override
add TRIGGERED_BY env variable support
2 parents ea8a6fd + 7686db8 commit 52eac31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data_diff/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"-": "red",
3434
}
3535

36-
set_entrypoint_name("CLI")
36+
set_entrypoint_name(os.getenv("DATAFOLD_TRIGGERED_BY", "CLI"))
3737

3838

3939
def _get_log_handlers(is_dbt: Optional[bool] = False) -> Dict[str, logging.Handler]:

data_diff/dbt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def dbt_diff(
7575
) -> None:
7676
print_version_info()
7777
diff_threads = []
78-
set_entrypoint_name("CLI-dbt")
78+
set_entrypoint_name(os.getenv("DATAFOLD_TRIGGERED_BY", "CLI-dbt"))
7979
dbt_parser = DbtParser(profiles_dir_override, project_dir_override, state)
8080
models = dbt_parser.get_models(dbt_selection)
8181
config = dbt_parser.get_datadiff_config()

0 commit comments

Comments
 (0)