/dbtfolder, but not the dbt
targetdirectory and upload that to the Datafold server application. It is available from pypi.org:
pip install datafold-sdk
production, depending on the type of run in dbt.
pr_shain the GitHub
pull_requestwebhook if you have your CI set up with GitHub. If the target folder was produced in the source repository itself, the CLI will attempt to derive the commit SHA using a
If you are using GitHub Actions, by default you'll be working with merge commit that is automatically created by merging PR into the base branch. This commit is ephemeral and doesn't exist outside of the action runner, so Datafold won't be able to link artifact submission to the PR.For that reason when submitting artifacts, you should use PR HEAD sha instead. It can be extracted with the following snippet: