Adapt to PatchSet.Id refactoring
Change-Id: Ib068438bf2eb16128e5ae784881f3707191321f5
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
index d3ae268..903aa9c 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
@@ -148,7 +148,7 @@
for (RevCommit c : rw) {
PatchSet ps = loadPatchSet(c, branch);
if (ps != null) {
- ChangeNotes notes = notesFactory.create(project, ps.getId().getParentKey());
+ ChangeNotes notes = notesFactory.create(project, ps.getId().changeId());
ObjectId content = createNoteContent(notes, ps);
if (content != null) {
monitor.update(1);
@@ -280,7 +280,7 @@
UrlFormatter uf = urlFormatter.get();
if (uf != null && uf.getWebUrl().isPresent()) {
- fmt.appendReviewedOn(uf, notes.getChange().getProject(), ps.getId().getParentKey());
+ fmt.appendReviewedOn(uf, notes.getChange().getProject(), ps.getId().changeId());
}
fmt.appendProject(project.get());
fmt.appendBranch(change.getDest().branch());