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
atlassian, confluence administration certification, atlassian certified professional, confluence admin for cloud, atlassian learning, confluence training, confluence certification exam, confluence cloud admin, admin credential, atlassian certification

Become a certified Confluence admin today! 📖

Stand out as a skilled Confluence Cloud administrator. The Confluence Administration for Cloud certification proves you can configure permissions, manage site and space settings, and monitor activity—ensuring secure, effective collaboration for your team.

Start here
AUG Leaders

Atlassian Community Events