diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97b7a22..63a06c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ concurrency: jobs: test: - name: Test + name: Jest Tests runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/cliff.toml b/cliff.toml index 05f7d69..f1f8662 100644 --- a/cliff.toml +++ b/cliff.toml @@ -141,7 +141,8 @@ commit_preprocessors = [ # Handle PR references in commit messages (e.g., "fix: issue (#123)" or "fix: issue #123") # This works with squash merges where PR references are included in the commit message { pattern = '\\(#(\\d+)\\)', replace = "([#${1}](https://github.com/JSONbored/safemocker/pull/${1}))" }, - { pattern = ' #(\\d+)(?![0-9])', replace = " [#${1}](https://github.com/JSONbored/safemocker/pull/${1})" }, + # Handle standalone PR references (space before #, followed by digits, then non-digit or end) + { pattern = ' #(\\d+)([^0-9]|$)', replace = " [#${1}](https://github.com/JSONbored/safemocker/pull/${1})${2}" }, # Handle co-authored commits (Co-authored-by: user@example.com) # Extract co-author information for better attribution { pattern = 'Co-authored-by: (.+)', replace = "Co-authored-by: $1" }, @@ -150,7 +151,7 @@ commit_preprocessors = [ # Remove trailing periods from commit messages for consistency { pattern = '\\.$', replace = "" }, # Clean up common merge commit prefixes - { pattern = '^Merge branch \'[^\']+\' into ', replace = "" }, + { pattern = "^Merge branch '[^']+' into ", replace = "" }, { pattern = '^Merge .+ into ', replace = "" }, ]