I have a couple of customers that have requirements around their code repositories that they typically achieve through git hooks. This includes things like checking if a commit is associated with a JIRA ticket. Is there a way to configure the hooks set up for a palantir code repository?
Hey @cdesouza ,
In the new VSCode experience you should be able to setup git commit hooks (manually). They won’t persist for all users though making it hard to scale.
In classical code repo there is no way to have a hook run when the commit button is pressed (apart from the formatCode grader task)
There used to be / there is a way to integrate with webhooks (in the traditional meaning, not Foundry webhooks) where the foundry git server sends your server a request whenever a commit is being done. This could theoretically be used to run „hooks“ in another system to verify compliance settings. Not sure if that is still exposed in the UI though.
1 Like