FlowingCode / DevelopmentConventions

Repository hosting conventions, decisions and documentation related to best coding practices that can be utilized in development projects
Apache License 2.0
9 stars 0 forks source link

Use of GitHub verb in footers #9

Closed javier-godoy closed 3 years ago

javier-godoy commented 3 years ago

In #6 we discussed how to reference other issues from within the commit body

Leaving aside the discussion on which verb we are using for closing issues (i.e. whether bugs are fixed and features are resolved, or evertything is just "closed")

The questions are:

A) Which GitHub verbs will be used as footer, for the purpose of closing an issue:

B) How do such verb align with the commit type?

See http://www-users.math.umn.edu/~arnold/disasters/ariane.html

Close #nn

refactor: apply code changes that neither fix a bug nor add a feature

Close #nn

- Use different keywords, depending on the commit type:

fix(ariane): handle overflow in conversion to 16-bit register

See http://www-users.math.umn.edu/~arnold/disasters/ariane.html

Fix #nn

refactor: apply code changes that neither fix a bug nor add a feature

Resolve #nn

javier-godoy commented 3 years ago

My 2 cents:

A) Which GitHub verbs will be used as footer, for the purpose of closing an issue:

B) How do such verb align with the commit type?

TL;DR Close

ngonzalezpazFC commented 3 years ago

A) Which GitHub verbs will be used as footer, for the purpose of closing an issue:

While I'm thinking about what to write at the commit subject, I try to complete the sentence "this commit will...", this way I feel it natural. Following this excercise, it feels natural for me to think "this commit closes...", but this is a personal taste.

B) How do such verb align with the commit type?

I agree with what Javier wrote previously about this question because GitHub does not provide all the keyworks needed to fit all of the commit types defined in the specification, and I also think close expresses the intention of closing the issue.

mlopezFC commented 3 years ago

I agree, it will make things easier. Independently of what the commit does, it will close the issue. If you want to know if we're fixing something or resolving something, that information is already in the commit type.

javier-godoy commented 3 years ago

Changed:

Footers contains additional information about the commit, such as a description of the breaking changes, the list of issues that the commit will close, and other metadata. Close # provides a link to a single issue that is closed by the commit.