Skip to content

test: duplicate subject detection - FAIL case#32

Open
matmar10 wants to merge 3 commits intomasterfrom
test/dup-check-fail
Open

test: duplicate subject detection - FAIL case#32
matmar10 wants to merge 3 commits intomasterfrom
test/dup-check-fail

Conversation

@matmar10
Copy link
Copy Markdown
Owner

@matmar10 matmar10 commented May 5, 2026

Purpose

Tests the duplicate_threshold feature with commits whose subjects are near-identical after normalization.

What this tests

  • duplicate_threshold: '0.8' is enabled in the CI workflow
  • Two commits share the same description with only the type differing → normalized subjects are identical (dice similarity = 1.0 > 0.8)
Commit Normalized subject
feat(auth): implement oauth2 login flow implement oauth2 login flow
fix(auth): implement oauth2 login flow implement oauth2 login flow

Expected result

❌ Action fails — 1 duplicate pair detected, PR comment shows the 🔁 Duplicate Commit Subjects section

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

🚨🚔 Unconventional Commit 👮‍♀️🙅‍♂️

🤖 Beep boop! Looks like one or more of your commit messages wasn't quite right.

Commit Message Lint Report

  • ✏️ 3 commit(s)
  • 👤 1 author(s)
  • 0 lint error(s)
  • ⚠️ 0 lint warning(s)
  • 🔁 1 duplicate subject pair(s)

Commit f9bf400

By Matthew J. Martin (matmar10) a minute ago

test: enable duplicate_threshold 0.8 in CI workflow

Commit d945350

By Matthew J. Martin (matmar10) a minute ago

feat(auth): implement oauth2 login flow

Commit 04cc744

By Matthew J. Martin (matmar10) a minute ago

fix(auth): implement oauth2 login flow

Duplicate Commit Subjects

The following commit pairs have subjects that are too similar (threshold: 0.8):

🔁 100% similar

Commit Subject
A d945350 feat(auth): implement oauth2 login flow
B 04cc744 fix(auth): implement oauth2 login flow

Tips

Be sure to follow the Conventional Commit guideline when authoring your commits.

If your most recent commit is to blame, you can edit a single commit with:

git commit --amend

To edit & merge multiple commits, you can rebase with git rebase -i master (be sure your master is up to date).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant