rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[rush] Feature Request: Option to git add & commit automatically after rush change

Open ScriptedAlchemy opened this issue 4 years ago • 2 comments

Summary

When running rush change, some files are created. It would be nice to have an additional flag that auto commits and adds the rush change files. that was just added. Otherwise, developers could send PRs out without the rush files actually being in the commit

Repro steps

none, feature request

Expected result:

Actual result:

Details

It would be more convenient to have rush commit its own files after running the rush change command, since rush already throws errors on uncommitted files, it would make sense to offer an option to have rush commit its own files or amend the last commit and include its change files.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version?
rushVersion from rush.json?
useWorkspaces from rush.json?
Operating system?
Would you consider contributing a PR?
Node.js version (node -v)?

ScriptedAlchemy avatar Feb 04 '21 22:02 ScriptedAlchemy

That sounds like a good idea, and would probably be pretty easy to implement. Would you be interested in putting this together?

iclanton avatar Feb 08 '21 18:02 iclanton

@iclanton I'd be keen on taking a look at this, could you give me a couple of pointers about where to start looking?

a-mkljajic avatar Sep 20 '22 12:09 a-mkljajic