Commit 5a48a92
committed
#1072: read commit_id from underlying JSON in Event.Smart.commitId()
Replaces the stub with Optional.fromNullable(event.json().getString(
"commit_id", null)). When the GitHub API response includes a non-null
commit_id, the method now returns Optional.of(sha); otherwise (null
value or missing key) it returns Optional.absent(), matching the
documented Issue Events payload at developer.github.com/v3/issues/events.1 parent a4af26b commit 5a48a92
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
0 commit comments