Hi,
we already have a config file in our repository, we want it to be removed and restrict it from being pushed to repository in future. so want to have a pre-commit hook, which can restrict it. For info we have the Adaptive scriptrunner installed inour Bitbucket
thank you
Afroz
Thank you @Abdulkarim Itani what you gave was nice, I have already gone throught that, but it does not meet my requirement.I am looking for a restriction on a specific file which should be removed from repository and restricted in future commits/push.
The condition mentioned here
https://scriptrunner.adaptavist.com/5.0.0/bitbucket/#_pathsmatcher
can be configured to restrict a single file from being pushed in any commits.
If you want to remove this configuration file from the repository and eliminate its automatic addition in any future cases, you can add the file name in git ignore.
Please see the below link for gitignore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
These conditions are what you are looking for
https://scriptrunner.adaptavist.com/5.0.0/bitbucket/#_pathsmatcher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.