Skip to content

Feat/bitbucket rebase detection - #4

Open
tomasvanrijsse wants to merge 3 commits into
mainfrom
feat/bitbucket-rebase-detection
Open

Feat/bitbucket rebase detection#4
tomasvanrijsse wants to merge 3 commits into
mainfrom
feat/bitbucket-rebase-detection

Conversation

@tomasvanrijsse

Copy link
Copy Markdown
Contributor

No description provided.

Bitbucket's commit.date in push webhooks is the committer date, which
git rebase rewrites. isKnownCommit() matched on title+date, so rebased
commits were missed as new instead of recognized as replays.

Use changes[].forced to distinguish: on forced pushes, match known
commits by user+source+commit_pushed+title only (date is unreliable);
on normal pushes, keep the existing title+date match so legitimate
recurring titles (e.g. "composer update") still create new events.
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