Commit 1876a69
committed
feat: Add head_commit to GHEventPayload.Push
When that class represents a commit being pushed to a branch, the list
of commits is available and useful to know what was pushed.
When it represents a tag being pushed, the list of commits can be empty.
The `head_commit` comes in handy to know more about the commit.
This change exposes `head_commit` using the getter `getHeadCommit()`.
The test data already has the data for this to work. The test case has
been updated to test for this method.
Refs: hub4j#15851 parent a9a93ad commit 1876a69
File tree
2 files changed
+23
-0
lines changed- src
- main/java/org/kohsuke/github
- test/java/org/kohsuke/github
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
| 1046 | + | |
1046 | 1047 | | |
1047 | 1048 | | |
1048 | 1049 | | |
| |||
1124 | 1125 | | |
1125 | 1126 | | |
1126 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1127 | 1138 | | |
1128 | 1139 | | |
1129 | 1140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
627 | 639 | | |
628 | 640 | | |
629 | 641 | | |
| |||
0 commit comments