Coder Social home page Coder Social logo

Comments (4)

rgommers avatar rgommers commented on June 17, 2024 1

Agree with points 2 and 3. One comment on 2" backticks are not necessarily bad, and useful especially when referring to names with underscores, because that prevents formatting in release notes from going wrong (PR titles are included, and underscores are special syntax in reST.

Point 1 is a bit more complex. I agree with the first part. However, if there's a single commit that fixes an issue and you don't force-push that a lot, then adding Closes gh-1234 in the commit message is helpful. Commit messages need to be descriptive, and for future debugging it's quite relevant to see what a commit fixed without having to figure out what PR it was included in. So this is more a "it depends".

from scipy.

ilayn avatar ilayn commented on June 17, 2024

For item 2, spaces are not needed around colons since commit message is limited space so better spend it on making the commit message clearer instead. Hence MAINT:fft:Some commit messageis fine and makes grepping much easier.

from scipy.

lucascolley avatar lucascolley commented on June 17, 2024

For item 2, spaces are not needed around colons since commit message is limited space so better spend it on making the commit message clearer instead. Hence MAINT:fft:Some commit messageis fine and makes grepping much easier.

Point taken, but most people do put spaces around the colons1, so I think it's probably not worth enforcing either way - maybe saying that either is okay (or including both in examples) makes sense.

Footnotes

  1. and I think it looks nicer...

from scipy.

lucascolley avatar lucascolley commented on June 17, 2024

That all makes sense. This issue was partly motivated by the guidance to 'name and describe your PR as you would write a
commit message'. I think Closes gh-1234 is one case where it would be useful to draw a distinction between the two - "it depends" for commit messages, as you say, but almost never good for PR titles.

from scipy.

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.