Add ability to create feature flag from merge request through markdown (API)
Problem to solve
When developers ship a feature with a feature flag, they have to do two things manually, today.
- Merge a merge request which contains a new change behind a feature flag
- Create a feature flag which has the same name with the flag name in code. For example, in GitLab workflow, we execute a chatops command e.g.
/chatops run feature set <feature-name> <value>for creating a corresponding feature flag.
Users can mention
Create ^<FF-name> in MR description to create the feature flag when the merge request has been merged (Similar to Closing issue automatically). This way, users can manipulate feature flags altogether with the occurrences in the code base.
The created feature flag should be disabled for all environments by default. Later on, developers/operators can jump into the FF page or use API and manipulate the flag for A/B testing or such.