How to fetch the Hash Code of GitHub commit into databricks workspace?
On Every commit in the github, we get a hash. I want to fetch that latest hash into databricks.
How to fetch the Hash Code of GitHub commit into databricks workspace?
On Every commit in the github, we get a hash. I want to fetch that latest hash into databricks.
If you enabled Git integration and the synchronization of your work in Databricks with a remote Git repository, you can query that Git repository directly:
git ls-remote https://github.com/me/myRepo
That will give you the latest hash code (SHA1) of all the branches in that remote (synchronized) repository.