mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Adds category name for releases
* Allows users to create discussions when creating or updating a new release
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user