Code Monkey home page Code Monkey logo

Comments (4)

rexim avatar rexim commented on August 18, 2024

@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.

TheKnarf avatar TheKnarf commented on August 18, 2024

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.

rexim avatar rexim commented on August 18, 2024

@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.

TheKnarf avatar TheKnarf commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.