After merging, branch is compared with itself instead of nearest single parent
olessavluk opened this issue · 1 comments
olessavluk commented
Hello!
Consider the following branch structure (also available as screenshot ):
* 36f7689 (master) master stuff
| * ada5e4c (HEAD -> release/1.0) Merge branch 'feature/one' into release/1.0
| |\
| | * 950e362 (feature/one) one
| |/
| * fc556a4 1.0
|/
* 313299f add script
* c48d34f init
Expected behavior:
When running plugin from ada5e4c * release/1.0
branch expected hash should be commit 313299f * add script
Actual behavior:
Suggest commit 950e362 * one
olessavluk commented
It's a bit hard to write generic plugin for this and the current one seem to be good as this is possible.
For anyone having similar issue I would recommend passing hashes manually, probably by taking them from CI merge request variables