8000 doc: update docs on semantic requirements for #13359 by MarshallOfSound · Pull Request #13365 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

doc: update docs on semantic requirements for #13359 #13365

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

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

MarshallOfSound
Copy link
Member

If #13359 gets merged we'll need to update our semantic guidelines to enforce semantic titles for PR's

@MarshallOfSound MarshallOfSound requested review from zeke and a team June 21, 2018 14:13
@@ -136,12 +136,12 @@ We reconcile flagged code with our versioning strategy as follows:

We seek to increase clarity at all levels of the update and releases process. Starting with `2.0.0` we will require pull requests adhere to the [Conventional Commits](https://conventionalcommits.org/) spec, which can be summarized as follows:

* Commits that would result in a semver **major** bump must start with `BREAKING CHANGE:`.
* Commits that would result in a semver **major** bump must start their body with `BREAKING CHANGE:`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: what is commit's body? Commit message?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tonyganch I think that normally the commit message is the first line of the commit text (normally less than 80 chars) and the body is everything after that.

This right here is the commit message

Here you would add more details in the body

* Maybe
* Some 
* Bullet points

And so on

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarshallOfSound I've already thought that the first line is a "message's summary/subject" and the rest (after an empty line) is a "message's body".

https://chris.beams.io/posts/git-commit/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related: The semantic-pull-requests bot is now using the parse-commit-message module to validate commits. The API docs for that module explain commit terminology well: https://github.com/tunnckoCore/parse-commit-message#api

const { parse } = require('parse-commit-message');

const commitMsg1 = `feat(ng-list): Allow custom separator
bla bla bla

BREAKING CHANGE: some breaking change.
Thanks @foobar
`;

const commit = parse(commitMsg1);
console.log(commit);
// => { type: 'feat',
//   scope: 'ng-list',
//   subject: 'Allow custom separator',
//   header: 'feat(ng-list): Allow custom separator',
//   body: 'bla bla bla',
//   footer: 'BREAKING CHANGE: some breaking change.\nThanks @stevemao' }

@MarshallOfSound MarshallOfSound changed the title Update docs on semantic requirements for #13359 doc: update docs on semantic requirements for #13359 Jun 25, 2018
@ckerr ckerr merged commit f26880d into master Jul 18, 2018
@zeke zeke deleted the update-semantic-reqs branch July 18, 2018 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0