• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jreleaser / jreleaser / #480

08 Apr 2025 02:28PM UTC coverage: 47.827% (-0.7%) from 48.516%
#480

push

github

aalmiray
feat(release): Let github.release.makeLatest be specified as input

Closes #1847

17 of 29 new or added lines in 6 files covered. (58.62%)

374 existing lines in 32 files now uncovered.

24810 of 51874 relevant lines covered (47.83%)

0.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/sdks/jreleaser-github-java-sdk/src/main/java/org/jreleaser/sdk/github/api/GhRelease.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 *
4
 * Copyright 2020-2025 The JReleaser authors.
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     https://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
18
package org.jreleaser.sdk.github.api;
19

20
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21

22
import java.util.Date;
23

24
/**
25
 * @author Andres Almiray
26
 * @since 0.6.0
27
 */
28
@JsonIgnoreProperties(ignoreUnknown = true)
29
public class GhRelease {
×
30
    private Long id;
31
    private String name;
32
    private String htmlUrl;
33
    private String uploadUrl;
34
    private String tagName;
35
    private String url;
36
    private String body;
37
    private boolean prerelease;
38
    private boolean draft;
39
    private String targetCommitish;
40
    private Date createdAt;
41
    private Date publishedAt;
42
    private String discussionCategoryName;
43
    private String makeLatest;
44

45
    public Long getId() {
46
        return id;
×
47
    }
48

49
    public void setId(Long id) {
50
        this.id = id;
×
51
    }
×
52

53
    public String getName() {
54
        return name;
×
55
    }
56

57
    public void setName(String name) {
58
        this.name = name;
×
59
    }
×
60

61
    public String getHtmlUrl() {
62
        return htmlUrl;
×
63
    }
64

65
    public void setHtmlUrl(String htmlUrl) {
66
        this.htmlUrl = htmlUrl;
×
67
    }
×
68

69
    public String getTagName() {
70
        return tagName;
×
71
    }
72

73
    public void setTagName(String tagName) {
74
        this.tagName = tagName;
×
75
    }
×
76

77
    public String getUrl() {
78
        return url;
×
79
    }
80

81
    public void setUrl(String url) {
82
        this.url = url;
×
83
    }
×
84

85
    public String getUploadUrl() {
86
        return uploadUrl;
×
87
    }
88

89
    public void setUploadUrl(String uploadUrl) {
90
        this.uploadUrl = uploadUrl;
×
91
    }
×
92

93
    public String getBody() {
94
        return body;
×
95
    }
96

97
    public void setBody(String body) {
98
        this.body = body;
×
99
    }
×
100

101
    public boolean isPrerelease() {
102
        return prerelease;
×
103
    }
104

105
    public void setPrerelease(boolean prerelease) {
106
        this.prerelease = prerelease;
×
107
    }
×
108

109
    public boolean isDraft() {
110
        return draft;
×
111
    }
112

113
    public void setDraft(boolean draft) {
114
        this.draft = draft;
×
115
    }
×
116

117
    public String getTargetCommitish() {
118
        return targetCommitish;
×
119
    }
120

121
    public void setTargetCommitish(String targetCommitish) {
122
        this.targetCommitish = targetCommitish;
×
123
    }
×
124

125
    public Date getCreatedAt() {
126
        return createdAt;
×
127
    }
128

129
    public void setCreatedAt(Date createdAt) {
130
        this.createdAt = createdAt;
×
131
    }
×
132

133
    public Date getPublishedAt() {
134
        return publishedAt;
×
135
    }
136

137
    public void setPublishedAt(Date publishedAt) {
138
        this.publishedAt = publishedAt;
×
139
    }
×
140

141
    public String getDiscussionCategoryName() {
142
        return discussionCategoryName;
×
143
    }
144

145
    public void setDiscussionCategoryName(String discussionCategoryName) {
146
        this.discussionCategoryName = discussionCategoryName;
×
147
    }
×
148

149
    public String getMakeLatest() {
NEW
150
        return makeLatest;
×
151
    }
152

153
    public void setMakeLatest(String makeLatest) {
NEW
154
        this.makeLatest = makeLatest;
×
NEW
155
    }
×
156
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc