Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 2.23 KB

sample.md

File metadata and controls

60 lines (46 loc) · 2.23 KB

1d82af9^..1d82af9 (2017-10-22)

Features

  • Categorized Changes: Lines that begin with a - <tag>: can be used to categorize changes. Everything that follows the prefix is tagged with the chosen category. For example, this text describes the tool feature that categorizes changes. Among others, feature is an out-of-the-box tag defined in the configuration. You can define tags that make sense for your project.

  • Scoped Changes: For larger projects, the tool supports another level of organization using scopes. For example, projects can organize API changes under a API scope. To specify a scope, use the - <tag>(<scope>): prefix. When you don't specify a scope the item goes into the default scope. As with tags, you can define scopes that make sense for your project like docs, benchmark, etc. You can also ignore them entirely and just use simple category tags.

Notes

  • This commit message is long to demonstrate the tool features. Real commits should follow the standard guidance on writing commit messages. The only additional (and optional) conventions this tool introduces are the tagging prefixes described here.

API

Breaking Changes

  • This item is an example of a scoped and categorized change. The text here and all that follows will show up under a "Breaking Changes" section in the "API" scope of the project. You can use this to describe the change as you wish. For example, for a breaking change, you may want to itemize things like:

    • Why the breaking change was necessary.
    • What the users should do about it.

    You can even put code snippets like this:

    /// A single line in the change message
    #[derive(Default, Serialize)]
    pub struct Line {
        /// The scope
        pub scope: Option<String>,
        /// The category
        pub category: Option<String>,
        /// The text
        pub text: Option<String>,
    }

    All text that follows a tagged line is implicitly categorized under the currently active tags.