opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

One message for a group of x files

Open Andre-the-Viking opened this issue 2 years ago • 3 comments

Would be nice to have the opportunity to configure a unique message for a batch of files.

Concrete example:

In the exampel below, I introduced a new enum and started using it inside 4 existing files. Then I would like to have a single message in a single commit that is simply "refactor: added SvgElementType constants"

So instead of:

│
◇  4 staged files:
  src/features/Picture/screens/CanvasEdit/SvgCanvasDrawMode.js
  src/features/Picture/screens/CanvasEdit/SvgViewer.js
  src/features/Picture/screens/CanvasEdit/__tests__/SvgViewer.test.js
  src/features/Picture/screens/CanvasEdit/constants.js
│
◇  📝 Commit message generated
│
└  Commit message:
——————————————————
feat(SvgCanvasDrawMode.js): add SvgElementType constant to newElement object
feat(SvgViewer.js): add support for SvgElementType constants in ELEMENT_VIEWERS map

test(SvgViewer.test.js): add tests for SvgElementType constants
feat(constants.js): add SvgElementType constants for SVG elements
——————————————————

│
◇  Confirm the commit message
│  No
│
└  ✖ process cancelled

I would like something generating:

  • git commit -m"refactor: added SvgElementType constants"

Andre-the-Viking avatar Mar 13 '23 16:03 Andre-the-Viking

I will think what we can do here, thanks

di-sukharev avatar Mar 14 '23 13:03 di-sukharev

that's really requested :) im also bother when having two feat(file1) feat(file1) instead of having one describing all changes.

I wont have time to adjust that in a coming week. Anyone wants to make a PR?

di-sukharev avatar Mar 16 '23 14:03 di-sukharev

Stale issue message

github-actions[bot] avatar Apr 25 '23 21:04 github-actions[bot]