Skip to content

Commit

Permalink
chore(config): comment out custom commit preprocessor (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 22, 2022
1 parent 9a070b2 commit 8f77caf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update config
shell: bash
run: sed -E -i "s/\s+\#\s(.*)\s\#\sreplace issue numbers/\\t\1/g" config/cliff.toml
- name: Generate a changelog
uses: orhun/git-cliff-action@v1
id: git-cliff
Expand Down
2 changes: 1 addition & 1 deletion config/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"},
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"}, # replace issue numbers
]
# regex for parsing and grouping commits
commit_parsers = [
Expand Down
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ if [ -n "$1" ]; then
msg="# managed by release.sh"
sed "s/^version = .* $msg$/version = \"${1#v}\" $msg/" -i git-cliff*/Cargo.toml
# update the changelog
sed "s/\s+\#\s(.*)\s\#\sreplace issue numbers/\\t\1/g" -E -i config/cliff.toml
cargo run -- --tag "$1" > CHANGELOG.md
git restore config/cliff.toml
git add -A && git commit -m "chore(release): prepare for $1"
git show
# generate a changelog for the tag message
Expand Down

0 comments on commit 8f77caf

Please sign in to comment.