Comments (4)
@TheKnarf If you're following git-flow (or any kind of modification of it) you probably work on separate issues in separate branches. I usually go to the extent of calling my branches with straight up the number of the issue: git checkout -b 42
. So you can easily set up a prepare-commit-msg hook that inserts the current branch name into the template of the commit message. You can find more info in this SO question for example.
So this issue kinda feels like outside of the scope of this project. What do you think?
from snitch.
Personally, I don't follow git-flow
on solo projects.
I'd love if snitch
had the option to be configured to call prepare-commit-msg
with a given issue number and with the description of the issue as a part of the commit (but maybe in a comment).
The way I imagine it working is something like:
$ snitch workon 12
$ git commit
Work towards #12
# Issue 12:
# Populate git commit message
#
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
That way (in combination with issue #11) I never have to leave the terminal to work on issues. And it should work either you use git-flow
or not.
@rexim I'd be happy to build this functionality myself if you'd feel okay with having it / merging the PR.
from snitch.
@TheKnarf this still sounds outside of the scope of this project. Snitch is a simple tool that collects TODOs in the source code and reports them as GitHub issues. Your idea is great for a separate tool though.
from snitch.
If you don't want this functionality in snitch then feel free to close this and the related issue #11.
from snitch.
Related Issues (20)
- Add support for sourcehut
- Remote customization is not documented HOT 2
- snitch resets the permissions of the files
- chmod not supported by windows HOT 1
- Bug: trailing "-->" for HTML comments HOT 1
- When the repo name ends with a file extension (like `.js`) it gets cut off
- Remote detection doesn't support port numbers in the URL properly HOT 1
- An option to stop traversing TODOs and just report everything that was already confirmed by the user
- snitch purge is broken
- snitch list CreateFile error: cannot find the file specified HOT 2
- How can I run this thing on Windows? HOT 1
- go get: installing executables with 'go get' in module mode is deprecated HOT 3
- Slow Execution Time on Large Projects
- prova
- prova
- prova
- prova
- Uncorrect handling of deleted files
- Repo detection breaks on repositories on GitLab's subgroups
- incorrect inline todos removing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snitch.