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

jreleaser / jreleaser / #539

25 Sep 2025 06:51PM UTC coverage: 48.269% (+0.7%) from 47.589%
#539

push

github

web-flow
feat(release): Add support for github immutable releases

Closes #1978

2 of 14 new or added lines in 4 files covered. (14.29%)

10 existing lines in 5 files now uncovered.

25820 of 53492 relevant lines covered (48.27%)

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 boolean immutableRelease;
40
    private String targetCommitish;
41
    private Date createdAt;
42
    private Date publishedAt;
43
    private String discussionCategoryName;
44
    private String makeLatest;
45

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

118
    public boolean isImmutableRelease() {
NEW
119
        return immutableRelease;
×
120
    }
121

122
    public void setImmutableRelease(boolean immutableRelease) {
NEW
123
        this.immutableRelease = immutableRelease;
×
NEW
124
    }
×
125

126
    public String getTargetCommitish() {
127
        return targetCommitish;
×
128
    }
129

130
    public void setTargetCommitish(String targetCommitish) {
131
        this.targetCommitish = targetCommitish;
×
132
    }
×
133

134
    public Date getCreatedAt() {
135
        return createdAt;
×
136
    }
137

138
    public void setCreatedAt(Date createdAt) {
139
        this.createdAt = createdAt;
×
140
    }
×
141

142
    public Date getPublishedAt() {
143
        return publishedAt;
×
144
    }
145

146
    public void setPublishedAt(Date publishedAt) {
147
        this.publishedAt = publishedAt;
×
148
    }
×
149

150
    public String getDiscussionCategoryName() {
151
        return discussionCategoryName;
×
152
    }
153

154
    public void setDiscussionCategoryName(String discussionCategoryName) {
155
        this.discussionCategoryName = discussionCategoryName;
×
156
    }
×
157

158
    public String getMakeLatest() {
159
        return makeLatest;
×
160
    }
161

162
    public void setMakeLatest(String makeLatest) {
163
        this.makeLatest = makeLatest;
×
164
    }
×
165
}
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