mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
Add mapping for from/to fields in issue rename event
This commit is contained in:
32
src/main/java/org/kohsuke/github/GHIssueRename.java
Normal file
32
src/main/java/org/kohsuke/github/GHIssueRename.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
/**
|
||||
* The type GHIssueRename.
|
||||
*
|
||||
* @see <a href="https://docs.github.com/en/developers/webhooks-and-events/events/issue-event-types#renamed">Github
|
||||
* documentation for renamed event</a>
|
||||
*
|
||||
* @author Andrii Tomchuk
|
||||
*/
|
||||
public class GHIssueRename {
|
||||
private String from = "";
|
||||
private String to = "";
|
||||
|
||||
/**
|
||||
* Old issue name.
|
||||
*
|
||||
* @return old issue name
|
||||
*/
|
||||
public String getFrom() {
|
||||
return this.from;
|
||||
}
|
||||
|
||||
/**
|
||||
* New issue name.
|
||||
*
|
||||
* @return new issue name
|
||||
*/
|
||||
public String getTo() {
|
||||
return this.to;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user