From a8e09b3b91eccf7e783a9ef39041cb291ea766d8 Mon Sep 17 00:00:00 2001 From: tippfehlr Date: Sun, 21 Apr 2024 00:13:07 +0200 Subject: [PATCH] chore(release): v0.1.0 --- CHANGELOG.md | 28 ++++++++++++++++++++ cliff.toml | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 cliff.toml diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..22b5c9e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,28 @@ +# Changelog + +## [0.1.0] - 2024-04-20 + +### Features + +- change port to 8537, write readme, get + post request ([df2657c](https://github.com/tippfehlr/composehook/commit/df2657c6fc037c1ca2ae197d74ac03870ab827eb)) +- allow only one concurrent update ([1525103](https://github.com/tippfehlr/composehook/commit/15251038ea36497bf1526d53a66fc59302138b33)) +- timeout of 10 seconds ([57567b9](https://github.com/tippfehlr/composehook/commit/57567b9029f97ac6dab840e7e1d0c209435933fd)) +- set TIMEOUT as env var, default to 10 seconds ([f3937e4](https://github.com/tippfehlr/composehook/commit/f3937e4b0789c650bcfd4bcca7f4ce6265887df0)) +- add simple info at / ([aa2907b](https://github.com/tippfehlr/composehook/commit/aa2907b2500fff1ebfa46f9e0ae9e94f7aa41ff9)) + +### Bug Fixes + +- change port in code ([a1a0080](https://github.com/tippfehlr/composehook/commit/a1a008007a1124205ab3187e8f16e6431c5c1bda)) +- wrap HashMap in Mutex ([5cad92e](https://github.com/tippfehlr/composehook/commit/5cad92e2c318e8784d556278a838aca7adfc52e3)) +- use Arc to mutate the same Hashmap ([78ea4d9](https://github.com/tippfehlr/composehook/commit/78ea4d9eef08250b4fe15346da1591f506b3192e)) + +### Performance + +- remove extra check for update since assigning returns the old value ([57474f7](https://github.com/tippfehlr/composehook/commit/57474f702a1f27f5f5a9a2e0feae60ed5e4b692e)) + +### Documentation + +- explain the port number ([e4bedee](https://github.com/tippfehlr/composehook/commit/e4bedeedf7ee4076b5dd3052303b7118fcce1dd2)) +- explain details and limit to post requests ([ca71d35](https://github.com/tippfehlr/composehook/commit/ca71d351e702e64f1b5fe9c9b4c3329bef543644)) + + diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..2b4957b --- /dev/null +++ b/cliff.toml @@ -0,0 +1,75 @@ +# git-cliff ~ configuration file +# https://git-cliff.org/docs/configuration + +[changelog] +# changelog header +header = """ +# Changelog\n +""" +body = """ +{% if version %}\ + {% if previous.version %}\ + ## [{{ version | trim_start_matches(pat="v") }}]($REPO/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }} + {% else %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + {% endif %}\ +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | striptags | trim | upper_first }} + {% for commit in commits + | filter(attribute="scope") + | sort(attribute="scope") %} + - **({{commit.scope}})**{% if commit.breaking %} [**breaking**]{% endif %} \ + {{ commit.message }} ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }})) + {%- endfor -%} + {% raw %}\n{% endraw %}\ + {%- for commit in commits %} + {%- if commit.scope -%} + {% else -%} + - {% if commit.breaking %} [**breaking**]{% endif %}\ + {{ commit.message }} ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }})) + {% endif -%} + {% endfor -%} +{% endfor %}\n +""" +# template for the changelog footer +footer = """ + +""" +# remove the leading and trailing whitespace from the templates +trim = true +postprocessors = [ + { pattern = '\$REPO', replace = "https://github.com/tippfehlr/composehook" }, +] + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = true +# filter out the commits that are not conventional +filter_unconventional = true +# process each line of a commit as an individual commit +split_commits = false +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "<--1--> Features" }, + { message = "^fix", group = "<--2--> Bug Fixes" }, + { message = "^perf", group = "<--3--> Performance" }, + { message = "^refactor", group = "<--4--> Refactor" }, + { message = "^doc", group = "<--5--> Documentation" }, +] +# protect breaking changes from being skipped due to matching a skipping commit_parser +protect_breaking_commits = false +# filter out the commits that are not matched by commit parsers +filter_commits = true +# regex for matching git tags +tag_pattern = "v[0-9].*" +# regex for skipping tags +skip_tags = "v0.1.0-beta.1" +# regex for ignoring tags +ignore_tags = "" +# sort the tags topologically +topo_order = false +# sort the commits inside sections by oldest/newest order +sort_commits = "oldest"