Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conventional commits usage and further definition #5433

Closed
philknows opened this issue Apr 28, 2023 · 3 comments
Closed

Conventional commits usage and further definition #5433

philknows opened this issue Apr 28, 2023 · 3 comments
Assignees
Labels
meta-discussion Indicates a topic that requires input from various developers.

Comments

@philknows
Copy link
Member

philknows commented Apr 28, 2023

This issue follows up on #1773 and recently merged #5342 for further defining usage of conventional commit structure specifically for our Lodestar monorepo.

Reference comment: #5419 (review)

  • Add structure: type(scope?): subject and brief explanations for each
  • Define when to use each type
  • Should we advocate for using scope in every PR title? If yes, how? The github actions checker currently does not enforce this usage.
  • Modify examples of PR titles with bullet points instead of quoting
  • Define when and how to indicate breaking changes on commit level and further discuss how to display those in the Changelog which should be targeted towards non-developer user/operator of Lodestar. (see comment)
@philknows philknows added the meta-discussion Indicates a topic that requires input from various developers. label Apr 28, 2023
@philknows philknows self-assigned this Apr 28, 2023
@dapplion
Copy link
Contributor

What's the purpose of (scope)? Having to pick a scope every time sounds annoying to me

@nflaig
Copy link
Member

nflaig commented Apr 30, 2023

What's the purpose of (scope)?

I think scope could be an easy way to give the commit more context, especially because Lodestar monorepo has several packages and subcategories

  • gives more clarity on what part of the code was modified, meaning the commit message itself does not need to do that and can focus on the change being done
  • makes commit easier filterable/searchable, would only work if this patterns is consistently applied
  • depending on how we generate changelogs, most tools group by scope, this makes changelog easier to read
  • generally, it should be easy to define a scope for most commits based on
    • package (or subcategory)
    • hard fork
    • EIP

The scope is not required by the PR title checker as discussed here #5342 (comment), so usage would be based on personal preference. For me, it sometimes makes it easier to convey all required information in the commit message.

@philknows
Copy link
Member Author

Completed by #5342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-discussion Indicates a topic that requires input from various developers.
Projects
None yet
Development

No branches or pull requests

3 participants