Skip to content

Commit

Permalink
chore: add relno config
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodds authored Sep 4, 2023
1 parent 002a18b commit bdf66b4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/release-template.rntmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## 📝 Changelog

[compare changes]({{ compareUrl }})

<!-- BEGIN breaking SECTION -->

### {{ title }}

<!-- BEGIN commits SECTION -->

- {{ prSubtype }}{{ generateIfNotEmpty(prSubtype, ": ") }}{{ toSentence(message) }} (#{{ prNumber }})
<!-- END commits SECTION -->

<!-- END breaking SECTION -->
<!-- BEGIN feat, fix, docs, chore, refactor, test SECTION -->

### {{ title }}

<!-- BEGIN commits SECTION -->

- {{ prSubtype }}{{ generateIfNotEmpty(prSubtype, ": ") }}{{ generateIf(prBreaking, "⚠️ ") }}{{ toSentence(message) }} (#{{ prNumber }})
<!-- END commits SECTION -->

<!-- END feat, fix, docs, chore, refactor, test SECTION -->
<!-- Generate by Release Note -->
18 changes: 18 additions & 0 deletions relno.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
template: '.github/release-template.rntmd',
prTypes: [
{
identifier: 'breaking',
title: '⚠️ Breaking Changes',
filter: (_, commit) =>
commit.message.match(/([^()\n!]+)(?:\(.*\))?!: .+ \(#[1-9][0-9]*\)/) !==
null,
},
{ identifier: 'feat', title: '🚀 Enhancements' },
{ identifier: 'fix', title: '🩹 Fixes' },
{ identifier: 'docs', title: '📖 Documentation' },
{ identifier: 'chore', title: '🏡 Chore' },
{ identifier: 'refactor', title: '💅 Refactors' },
{ identifier: 'test', title: '✅ Tests' },
],
};

0 comments on commit bdf66b4

Please sign in to comment.