com.societegenerale.cidroid.tasks.consumer.services.model.github.PushEvent 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.github;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.societegenerale.cidroid.tasks.consumer.services.model.GitHubEvent;
import lombok.Data;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PushEvent implements GitHubEvent {
private String ref;
private Repository repository;
@JsonProperty("head_commit")
private Commit headCommit;
@Override
public String getRepositoryUrl() {
return getRepository().getUrl();
}
public boolean happenedOnDefaultBranch(){
return ref.endsWith(getRepository().getDefaultBranch());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy