toolkit for mdBook [mirror of my GitHub repo] docs.tonywu.dev/mdbookkit/
permalinks rust-analyzer mdbook
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: update release-plz.toml

Tony Wu c28c68a4 26c987e9

+33 -50
+33 -50
release-plz.toml
··· 1 1 [workspace] 2 + git_release_name = "{{ package }} {{ version }}" 2 3 release_always = true 3 4 4 5 [[package]] ··· 25 26 body = """ 26 27 27 28 {%- macro print_commit(commit) -%} 28 - - {% if commit.breaking %}[**breaking**] {% endif %}\ 29 + 30 + - {% if commit.breaking %}**\\[BREAKING\\]** {% endif %}\ 29 31 {{ commit.message }} \ 30 32 [`{{ commit.id | truncate(length=7, end="") }}`]({{ remote.link }}/commit/{{ commit.id }})\ 31 - {%- raw %}\n{% endraw -%} 32 - {%- endmacro -%} 33 - 34 - {%- macro print_scope(commits) -%} 35 - {%- for group, commits in commits | group_by(attribute="group") -%} 36 - ### {{ group }} {%- raw %}\n\n{% endraw -%} 37 - 38 - {%- for commit in commits 39 - | filter(attribute="merge_commit", value=false) 40 - | unique(attribute="message") -%} 41 - {{- self::print_commit(commit=commit) -}} 42 - {%- endfor -%} 33 + {%- raw %}\n\n{% endraw -%} 43 34 44 - {%- raw %}\n{% endraw -%} 45 - {%- endfor -%} 46 35 {%- endmacro -%} 47 36 48 37 {%- if version -%} 38 + ## {{ version | trim_start_matches(pat="v") }} 39 + 49 40 {%- if previous.version -%} 50 - ## [{{ version | trim_start_matches(pat="v") }}]({{ release_link }}) 51 - {%- else -%} 52 - ## [{{ version | trim_start_matches(pat="v") }}] 41 + {%- raw %}\n\n{% endraw -%} 42 + [v{{ previous.version }}..v{{ version }}]({{ release_link }}) 53 43 {%- endif -%} 44 + 45 + {%- raw %}\n\n{% endraw -%} 54 46 {%- endif -%} 47 + 55 48 {%- raw %}\n\n{% endraw -%} 56 49 57 - {%- for commits in commits -%} 58 - {{- self::print_scope(commits=commits) -}} 50 + {%- for group, commits in commits | group_by(attribute="group") -%} 51 + ### {{ group }} {%- raw %}\n\n{% endraw -%} 52 + 53 + {%- for commit in commits 54 + | filter(attribute="merge_commit", value=false) 55 + | unique(attribute="message") -%} 56 + {{- self::print_commit(commit=commit) -}} 57 + {%- endfor -%} 58 + 59 59 {%- endfor -%} 60 60 """ 61 61 62 62 link_parsers = [{ pattern = "#(\\d+)", href = "{{ remote.link }}/issues/$1" }] 63 63 64 + postprocessors = [ 65 + { pattern = ".*", replace_command = "deno run -A prettier --parser markdown" }, 66 + ] 67 + 68 + [[changelog.commit_preprocessors]] 69 + pattern = "^chore\\(ci\\):" 70 + replace = "ci:" 71 + 64 72 [[changelog.commit_parsers]] 65 - group = "<!-- 0 --> Features" 73 + group = "<!-- 0 --> Added" 66 74 message = "^feat" 67 75 68 76 [[changelog.commit_parsers]] 69 - group = "<!-- 1 --> Bug fixes" 77 + group = "<!-- 1 --> Fixed" 70 78 message = "^fix" 71 79 72 80 [[changelog.commit_parsers]] 73 - default_scope = "Other changes" 74 - group = "<!-- 2 --> Refactor" 75 - message = "^refactor" 81 + group = "<!-- 2 --> Changed" 82 + message = "^refactor|^perf|^revert" 76 83 77 84 [[changelog.commit_parsers]] 78 - default_scope = "Other changes" 79 - group = "<!-- 3 --> Documentation" 85 + group = "<!-- 3 --> Documented" 80 86 message = "^docs" 81 87 82 88 [[changelog.commit_parsers]] 83 - default_scope = "Other changes" 84 - group = "<!-- 4 --> Performance" 85 - message = "^perf" 86 - 87 - [[changelog.commit_parsers]] 88 - default_scope = "Other changes" 89 - group = "<!-- 5 --> Miscellaneous" 90 89 message = "^chore|^ci|^test" 91 - 92 - [[changelog.commit_parsers]] 93 - message = "^chore: release" 94 90 skip = true 95 - 96 - [[changelog.commit_parsers]] 97 - body = ".*security" 98 - default_scope = "Other changes" 99 - group = "<!-- 6 --> Security" 100 - 101 - [[changelog.commit_parsers]] 102 - group = "<!-- 7 --> Reverted" 103 - message = "^revert" 104 - 105 - [[changelog.commit_preprocessors]] 106 - pattern = "^chore\\(ci\\):" 107 - replace = "ci:"