|
| 1 | +[changelog] |
| 2 | +header = "" |
| 3 | +body = """ |
| 4 | +{%- macro render_group(name, commits) -%} |
| 5 | +{%- set found = commits | filter(attribute="group", value=name) -%} |
| 6 | +{%- if found | length > 0 %} |
| 7 | +### {{ name }} |
| 8 | +{% for commit in found -%} |
| 9 | +- **{{ commit.scope | default(value="core") }}:** {{ commit.message | split(pat="\n") | first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/automagik-dev/workit/commit/{{ commit.id }})) |
| 10 | +{% endfor %} |
| 11 | +{%- endif -%} |
| 12 | +{%- endmacro -%} |
| 13 | +
|
| 14 | +{{ self::render_group(name="🚀 Features", commits=commits) -}} |
| 15 | +{{ self::render_group(name="🐛 Bug Fixes", commits=commits) -}} |
| 16 | +{{ self::render_group(name="⚡ Performance", commits=commits) -}} |
| 17 | +{{ self::render_group(name="♻️ Refactoring", commits=commits) -}} |
| 18 | +{{ self::render_group(name="🧪 Testing", commits=commits) -}} |
| 19 | +{{ self::render_group(name="📚 Documentation", commits=commits) -}} |
| 20 | +{{ self::render_group(name="⚙️ CI/CD", commits=commits) -}} |
| 21 | +{{ self::render_group(name="🔧 Miscellaneous", commits=commits) -}} |
| 22 | +
|
| 23 | +{%- set_global contributors = [] -%} |
| 24 | +{%- for commit in commits -%} |
| 25 | + {%- set author = commit.author.name | default(value="") -%} |
| 26 | + {%- if author != "" and author != "github-actions[bot]" -%} |
| 27 | + {%- if contributors is not containing(author) -%} |
| 28 | + {%- set_global contributors = contributors | concat(with=author) -%} |
| 29 | + {%- endif -%} |
| 30 | + {%- endif -%} |
| 31 | +{%- endfor -%} |
| 32 | +
|
| 33 | +{%- if contributors | length > 0 %} |
| 34 | +### 👥 Contributors |
| 35 | +{% for name in contributors -%} |
| 36 | +{%- if name == "Cezar Vasconcelos" -%} |
| 37 | +- [@vasconceloscezar](https://github.com/vasconceloscezar) |
| 38 | +{% elif name == "Felipe Rosa" -%} |
| 39 | +- [@namastex888](https://github.com/namastex888) |
| 40 | +{% elif name == "Automagik Genie" -%} |
| 41 | +- [@automagik-genie](https://github.com/automagik-genie) 🤖 |
| 42 | +{% else -%} |
| 43 | +- {{ name }} |
| 44 | +{% endif -%} |
| 45 | +{%- endfor -%} |
| 46 | +{%- endif -%} |
| 47 | +""" |
| 48 | +trim = true |
| 49 | + |
| 50 | +[git] |
| 51 | +conventional_commits = true |
| 52 | +filter_unconventional = true |
| 53 | +# Ignore intermediate version tags within the commit range to prevent |
| 54 | +# duplicate section headers. The range boundaries are set by the workflow. |
| 55 | +ignore_tags = ".*" |
| 56 | +sort_commits = "newest" |
| 57 | + |
| 58 | +# Escape @ mentions in commit messages so GitHub doesn't linkify them as users |
| 59 | +commit_preprocessors = [ |
| 60 | + { pattern = "@([a-zA-Z])", replace = "@\u200B${1}" }, |
| 61 | +] |
| 62 | + |
| 63 | +commit_parsers = [ |
| 64 | + { message = "^feat", group = "🚀 Features" }, |
| 65 | + { message = "^fix", group = "🐛 Bug Fixes" }, |
| 66 | + { message = "^refactor", group = "♻️ Refactoring" }, |
| 67 | + { message = "^perf", group = "⚡ Performance" }, |
| 68 | + { message = "^test", group = "🧪 Testing" }, |
| 69 | + { message = "^doc", group = "📚 Documentation" }, |
| 70 | + { message = "^ci", group = "⚙️ CI/CD" }, |
| 71 | + { message = "^chore\\(version\\)", skip = true }, |
| 72 | + { message = "^chore", group = "🔧 Miscellaneous" }, |
| 73 | + { message = "^Merge", skip = true }, |
| 74 | + { message = ".*", group = "🔧 Miscellaneous" }, |
| 75 | +] |
0 commit comments