What it does
This a plugin that would auto generate a commit based on previous commit, and send a push on save if the file is part of a git repo
Requirements
- VsCode, or it's forks.
- Git in your path
How it works
- User can activate saving mode, by using the command "save-me-baby.start-saving" or command pallete:
- User can also toggle on, or off, by using the command "save-me-baby.toggle" or command pallete:
- User can also stop saving all together with the command "save-me-baby.stop-saving" or command pallete:
- Everytime user saves, a commit is created and pushed with same msg as previous commit
- User can also compress matching commits using the command "save-me-baby.compress" or command pallete:
Building from source
npm install && npm run package
Testing
npm install && npm run test
Creating a vsix
Run run npm run vsce
to create an .vsix
that you can use for testing.
You can also add in your user settings variables like the following:
{
"saveMeBaby.commitMessage": "[WIP] {{ticket}} feature work",
"saveMeBaby.useTicketRegex": true,
"saveMeBaby.pushOnSave": false
}
If the useTicketRegex
is false
(default), we just use the given commitMessage
as is. If it's specified to be true
, we parse the Jira ticket off the current branch with a regex and replace it wherever the user the text {{ticket}}
is in the commitMessage
. You can also pass in a custom regex with ticketRegex
to parse what you want off the current branch, but we have a default one set up in our package.json
. If you don't opt in at all, the commit message will use the previous commit in the git log. Finally, we can allow the user to allow auto push or not. By default it's on.
Contributing
- Before submitting a pull request please make sure tests pass. If stack post an issue.
- Issues are open.