Skip to content

Commit

Permalink
Added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Jun 17, 2020
1 parent a0a4b0b commit 9ea5620
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [0.1.1](https://github.com/labthings/python-labthings-client/compare/v0.1.0...v0.1.1) (2020-06-17)


* Enabled scanning for multiple mDNS types ([f3d871b](https://github.com/labthings/python-labthings-client/commit/f3d871b))
* Fixed relative imports ([a0a4b0b](https://github.com/labthings/python-labthings-client/commit/a0a4b0b))
* Ignore VS Code files ([9c8002b](https://github.com/labthings/python-labthings-client/commit/9c8002b))
* Removed debug print ([8f484a2](https://github.com/labthings/python-labthings-client/commit/8f484a2))
* Removed double description ([c90d72d](https://github.com/labthings/python-labthings-client/commit/c90d72d))


# [0.1.0](https://github.com/labthings/python-labthings-client/compare/c254d68...v0.1.0) (2020-05-22)


* Create publish.yml ([ca460b3](https://github.com/labthings/python-labthings-client/commit/ca460b3))
* Initial commit ([ed76b0d](https://github.com/labthings/python-labthings-client/commit/ed76b0d))
* Initial commit ([c254d68](https://github.com/labthings/python-labthings-client/commit/c254d68))
* Update pyproject.toml ([3767be8](https://github.com/labthings/python-labthings-client/commit/3767be8))
* Updated code highlighting ([a18b1bd](https://github.com/labthings/python-labthings-client/commit/a18b1bd))


113 changes: 113 additions & 0 deletions changelog.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
'use strict'

const mainTemplateStr = `{{> header}}
{{#each commitGroups}}
{{#if title}}
### {{title}}
{{/if}}
{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}
`

const headerTemplateStr = `{{#if isPatch~}}
##
{{~else~}}
#
{{~/if}} {{#if @root.linkCompare~}}
[{{version}}](
{{~#if @root.repository~}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if~}}
/compare/{{previousTag}}...{{currentTag}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}`

const commitTemplateStr = `*{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}
{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{hash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else}}
{{~hash}}
{{~/if}}
{{~!-- commit references --}}
{{~#if references~}}
, closes
{{~#each references}} {{#if @root.linkReferences~}}
[
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if this.repository}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}
{{~else}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~/if}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.issue}}/{{this.issue}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}`

module.exports = {
writerOpts: {
mainTemplate: mainTemplateStr,
headerPartial: headerTemplateStr,
commitPartial: commitTemplateStr
}
}

0 comments on commit 9ea5620

Please sign in to comment.