mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 15:50:52 +00:00
Add mapping for from/to fields in issue rename event
This commit is contained in:
@@ -21,6 +21,7 @@ public class GHIssueEvent extends GitHubInteractiveObject {
|
||||
private GHMilestone milestone;
|
||||
private GHLabel label;
|
||||
private GHUser assignee;
|
||||
private GHIssueRename rename;
|
||||
|
||||
private GHIssue issue;
|
||||
|
||||
@@ -144,6 +145,16 @@ public class GHIssueEvent extends GitHubInteractiveObject {
|
||||
return assignee;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the {@link GHIssueRename} that contains information about issue old and new name. Only present for event
|
||||
* "renamed", <code>null</code> otherwise.
|
||||
*
|
||||
* @return the GHIssueRename
|
||||
*/
|
||||
public GHIssueRename getRename() {
|
||||
return this.rename;
|
||||
}
|
||||
|
||||
GHIssueEvent wrapUp(GitHub root) {
|
||||
this.root = root;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user