Use full name for refName RefUpdateAttribute
RefUpdated events have an attribute called refName. EventFactory would create this attribute using the short name, which is inconsistent since all other events use full ref names. Create the event with the full ref name. Change-Id: I45dc114f48b801d0e5c9877c30e0526b8ecb8adb
This commit is contained in:
parent
7d21256dd3
commit
0d74afe186
@ -156,7 +156,7 @@ oldRev:: The old value of the ref, prior to the update.
|
||||
|
||||
newRev:: The new value the ref was updated to.
|
||||
|
||||
refName:: Ref name within project.
|
||||
refName:: Full ref name within project.
|
||||
|
||||
project:: Project path in Gerrit.
|
||||
|
||||
|
@ -151,7 +151,7 @@ public class EventFactory {
|
||||
ru.newRev = newId != null ? newId.getName() : ObjectId.zeroId().getName();
|
||||
ru.oldRev = oldId != null ? oldId.getName() : ObjectId.zeroId().getName();
|
||||
ru.project = refName.getParentKey().get();
|
||||
ru.refName = refName.getShortName();
|
||||
ru.refName = refName.get();
|
||||
return ru;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user