Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rename repository file on PreRepositoryHook or PostRepositoryHook

Andrei Pisklenov _Actonic_
Atlassian Partner
October 11, 2018

We have Bitbucket server and the task is - wait while changing some file in the repository and if it changes - rename some special file in the repository.

We've tried pre-commit hooks directly from git client, but it doesn't work properly because not all developers have the same pre-commit hook.

Is it possible to rename some repository file using PreRepositoryHook or PostRepositoryHook?

Looks like we can just check changed files and folders in particular commit, but do not change it https://developer.atlassian.com/server/bitbucket/how-tos/hooks-merge-checks-guide/.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events