Adds category name for releases

* Allows users to create discussions when creating or updating a new release
This commit is contained in:
Julien Lengrand-Lambert
2021-06-10 00:40:13 +02:00
parent 3ced4fc9c8
commit fd6ff7e484
2 changed files with 24 additions and 0 deletions

View File

@@ -87,6 +87,18 @@ public class GHReleaseBuilder {
return this;
}
/**
* Optional
*
* @param categoryName
* the category of the discussion to be created for the release. Category should already exist
* @return the gh release builder
*/
public GHReleaseBuilder categoryName(String categoryName) {
builder.with("discussion_category_name", categoryName);
return this;
}
/**
* Create gh release.
*

View File

@@ -91,6 +91,18 @@ public class GHReleaseUpdater {
return this;
}
/**
* Optional
*
* @param categoryName
* the category of the discussion to be created for the release. Category should already exist
* @return the gh release builder
*/
public GHReleaseUpdater categoryName(String categoryName) {
builder.with("discussion_category_name", categoryName);
return this;
}
/**
* Update gh release.
*