Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 11fcb9d

Browse files
committed
Report the repository the push happened to
Fixes issue hub4j#144.
1 parent 29f8264 commit 11fcb9d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/org/kohsuke/github/GHEventPayload.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public static class Push extends GHEventPayload {
120120
private String ref;
121121
private int size;
122122
private List<PushCommit> commits;
123+
private GHRepository repository;
123124

124125
/**
125126
* The SHA of the HEAD commit on the repository
@@ -158,6 +159,16 @@ public List<PushCommit> getCommits() {
158159
return commits;
159160
}
160161

162+
public GHRepository getRepository() {
163+
return repository;
164+
}
165+
166+
@Override
167+
void wrapUp(GitHub root) {
168+
if (repository!=null)
169+
repository.wrap(root);
170+
}
171+
161172
/**
162173
* Commit in a push
163174
*/

0 commit comments

Comments
 (0)