Examples of GitHubPullRequestCause


Examples of com.groupon.jenkins.dynamic.build.cause.GitHubPullRequestCause

    public Cause getCause() {
        if (isPullRequest()) {
            JSONObject pullRequest = getPullRequest();
            final String label = pullRequest.getJSONObject("head").getString("label");
            String number = pullRequest.getString("number");
            return new GitHubPullRequestCause(this, getSha(), label, number);

        } else {
            final String pusherName = payloadJson.getJSONObject("pusher").getString("name");
            final String email = payloadJson.getJSONObject("pusher").getString("email");
            return new GitHubPushCause(this, getSha(), pusherName, email);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.