Comments (7)
@darkwinternight: What would be the use case to check only for modified files? Please also note that once a file is added to git it stays in the history.
from stash-filehooks-plugin.
My specific use case would be database migration scripts. My coworkers sometimes ahem edit old database migration scripts which then don't get run on production deployments, breaking a site.
People should be able to add files but not modify or delete them. All my database migration scripts have a specific filename pattern and I can write a regex for that.
from stash-filehooks-plugin.
Thanks for providing some inside into the use case. Shouldn't be too complicated to implement. I will try to look into it in the next days.
from stash-filehooks-plugin.
BTW: Which version do you currently use?
from stash-filehooks-plugin.
What about moving a file? Should this be possible?
from stash-filehooks-plugin.
Bamboo 5.10.1.1
File Hooks Plugin 2.2.0
from stash-filehooks-plugin.
Well at least in my case, once a file has been pushed, it should never be touched. Deletion, modification and moving of the file shouldn't be possible (if I need to rollback a database migration, the migration script needs to exist).
From a UX perspective of your plugin, it would be nice to have checkboxes next to the regex field (adding, modifying, deleting, ...) that would restrict the match to the type of action that is being performed on the file.
I.e.:
- you cannot add files matching
foo.bar
- you cannot delete files matching
readme.*
- you cannot delete, modify or move files matching
database/migrations/*.php
from stash-filehooks-plugin.
Related Issues (20)
- instructions for compiling latest version HOT 1
- When multiple size rules use the same size, only last rule is effective HOT 2
- File Name Hook is not listed in the "Pre receive" hooks HOT 4
- File Hook fails when repository is new - blocker HOT 1
- Cannot see File Name Hook under Pre Receive hooks anymore HOT 1
- File hook should be available at Project level HOT 4
- Improve UI for project level configuration HOT 1
- Upgrade to newer Bitbucket API and remove deprecated classes HOT 3
- [Feature Request] Allow hook to also limit the number of files committed in any particular commit
- Unable to push after upgrade to 3.3.0 version HOT 2
- File Size detection seems not always to be working HOT 8
- FileSize Hook: NullPointerException when size is null HOT 6
- File Name Hook missing in configuration of repo HOT 1
- merge check doesn't honor the branch regex
- Toggling File Size Hook at repository level doesn't generate an audit log entry
- File name hook incorrectly prevents a merge whereby the source branch is from a private fork repository HOT 1
- Filtering per file extension
- Incompatible with Bitbucket Data Center HOT 5
- TextBox to add custom message
- Cannot be enabled in Bitbucket 6.0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stash-filehooks-plugin.