Skip to content

Commit

Permalink
Merge pull request #37 from bluesliverx/master
Browse files Browse the repository at this point in the history
#33 Add exported attributes to generate better JSON
  • Loading branch information
bluesliverx committed Sep 21, 2021
2 parents d481aa5 + 229fb6d commit 49f749d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import hudson.model.Cause;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import org.kohsuke.stapler.export.Exported;

import java.io.Serializable;

Expand Down Expand Up @@ -36,6 +37,7 @@ public String getShortDescription() {
* @return the URL for the GitHub comment
*/
@Whitelisted
@Exported(visibility = 3)
public String getCommentUrl() {
return commentUrl;
}
Expand All @@ -45,6 +47,7 @@ public String getCommentUrl() {
* @return the author of the GitHub comment
*/
@Whitelisted
@Exported(visibility = 3)
public String getCommentAuthor() {
return commentAuthor;
}
Expand All @@ -54,6 +57,7 @@ public String getCommentAuthor() {
* @return the body for the GitHub comment
*/
@Whitelisted
@Exported(visibility = 3)
public String getCommentBody() {
return commentBody;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import hudson.model.Cause;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import org.kohsuke.stapler.export.Exported;

import java.io.Serializable;

Expand Down Expand Up @@ -30,6 +31,7 @@ public String getShortDescription() {
* @return the URL for the GitHub pull request
*/
@Whitelisted
@Exported(visibility = 3)
public String getPullRequestUrl() {
return pullRequestUrl;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import hudson.model.Cause;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import org.kohsuke.stapler.export.Exported;

import java.io.Serializable;

Expand Down Expand Up @@ -30,6 +31,7 @@ public String getShortDescription() {
* @return the URL for the GitHub pull request
*/
@Whitelisted
@Exported(visibility = 3)
public String getPullRequestUrl() {
return pullRequestUrl;
}
Expand Down

0 comments on commit 49f749d

Please sign in to comment.