mirror of
https://github.com/jlengrand/jreleaser.git
synced 2026-03-10 08:31:24 +00:00
[github] Do not link discussion if release is draft. Resolves #380
This commit is contained in:
@@ -218,7 +218,9 @@ public class GithubReleaser extends AbstractReleaser {
|
||||
org.jreleaser.model.Github github = context.getModel().getRelease().getGithub();
|
||||
|
||||
String discussionCategoryName = github.getDiscussionCategoryName();
|
||||
if (context.getModel().getProject().isSnapshot() || isBlank(discussionCategoryName)) return;
|
||||
if (context.getModel().getProject().isSnapshot() ||
|
||||
isBlank(discussionCategoryName) ||
|
||||
github.isDraft()) return;
|
||||
|
||||
context.getLogger().debug("linking release {} with discussion {}", tagName, discussionCategoryName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user