@JsonIgnore
@Override
public List<String> getBranches() {
if (this.getPush() == null || this.getPush().getChanges() == null) {
return new ArrayList<>();
}
return this.getPush().getChanges()
.stream()
.filter(bitbucketPushChange -> bitbucketPushChange != null && bitbucketPushChange.getNew() != null)
.map(bitbucketPushChange -> bitbucketPushChange.getNew().getName())
.collect(Collectors.toList());
}
BitbucketPushEvent.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:bitbucket-webhooks-plugin
作者:
评论列表
文章目录