Package models

Examples of models.PullRequestEventMessage


    public void onReceive(Object object) {
        if (!(object instanceof PullRequestEventMessage)) {
            return;
        }

        PullRequestEventMessage message = (PullRequestEventMessage) object;
        PullRequest pullRequest = message.getPullRequest();

        pullRequest.startMerge();
        pullRequest.update();

        processPullRequestMerging(message, pullRequest);
View Full Code Here


    public void onReceive(Object object) {
        if (!(object instanceof PullRequestEventMessage)) {
            return;
        }

        PullRequestEventMessage message = (PullRequestEventMessage) object;
        List<PullRequest> pullRequests = PullRequest.findRelatedPullRequests(
                message.getProject(), message.getBranch());

        changeStateToMerging(pullRequests);
        processPullRequests(message, pullRequests);

    }
View Full Code Here

    @Override
    public void onPostReceive(ReceivePack receivePack, Collection<ReceiveCommand> commands) {
        Set<String> branches = ReceiveCommandUtil.getUpdatedBranches(commands);
        for (String branch : branches) {
            PullRequestEventMessage message = new PullRequestEventMessage(user, request, project, branch);
            Akka.system().actorOf(new Props(RelatedPullRequestMergingActor.class)).tell(message, null);
        }

        Set<String> deletedBranches = ReceiveCommandUtil.getDeletedBranches(commands);
        for (String branch : deletedBranches) {
View Full Code Here

TOP

Related Classes of models.PullRequestEventMessage

Copyright © 2018 www.massapicom. 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.