Code-To-Function - Specify git location for the function code.
Code-To-Function is idea similar to the Code-To-Container when where Azure function has only pointer to the function code git location.
Additional features could -"well known branches" where master is associated with prod and trunk with pre-prod deployment slots.
The failure of the exxecutin would configurably create an issue in the Git
This is already supported through out Git integration.
For more details please refer to: https://docs.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies
Azure Functions Team