com.societegenerale.cidroid.tasks.consumer.services.model.Message Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ci-droid-tasks-consumer-services Show documentation
Show all versions of ci-droid-tasks-consumer-services Show documentation
ci-droid-tasks-consumer services
package com.societegenerale.cidroid.tasks.consumer.services.model;
import com.societegenerale.cidroid.tasks.consumer.services.model.github.PullRequest;
import com.societegenerale.cidroid.tasks.consumer.services.model.github.PushEvent;
import lombok.Data;
@Data
public class Message {
private final String content;
public static Message buildFromNotMergeablePR(PullRequest pr,PushEvent pushEvent){
return new Message(String.format("PR %s is not mergeable following commit %s - please rebase the PR and fix conflicts if you want it to be merged",
pr.getNumber(),
pushEvent.getHeadCommit().getUrl()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy