DEV Community

Comiscience
Comiscience

Posted on

3 2

A new Git plugin for feature management

Traditionally, git commit has been based on code changes. In team collaboration, we want to do a better job of recording feature-based code changes. I'd like to have a feature flags-driven commit and pull request, where a commit can point to a feature flags and only upload the code associated with that feature flags during the commit and pull request.

The approximate implementation is to integrate a plugin in the IDE (or a new set of commands for Git)

  1. Select the corresponding feature flag (from a list) and click on a "ff commit preview" button (or a line of git command) to check if codes are all related to feature flag. e.g. git commit -ff "newFeature" -preview
  2. When you are sure that all the code you will be committing is only related to the feature flag, you can proceed to complete the commit,. e.g., git commit -ff
  3. after committing, the corresponding tag will be typed on the commit

Then there will be a Portal backend that traverses the feature-related changes to the commit record via the UI. And this commit record is stored separately, even if the commit is merged or deleted by git command, it can still pull out a feature flag corresponding to the code change record separately.

I wonder if there are other people who have the same needs and ideas? I think is a better way to manage features.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay