Package org.kohsuke.github
Class GHIssueBuilder
- java.lang.Object
-
- org.kohsuke.github.GHIssueBuilder
-
public class GHIssueBuilder extends Object
The type GHIssueBuilder.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GHIssueBuilder
assignee(String user)
Assignee gh issue builder.GHIssueBuilder
assignee(GHUser user)
Assignee gh issue builder.GHIssueBuilder
body(String str)
Sets the main text of an issue, which is arbitrary multi-line text.GHIssue
create()
Creates a new issue.GHIssueBuilder
label(String label)
Label gh issue builder.GHIssueBuilder
milestone(GHMilestone milestone)
Milestone gh issue builder.
-
-
-
Method Detail
-
body
public GHIssueBuilder body(String str)
Sets the main text of an issue, which is arbitrary multi-line text.- Parameters:
str
- the str- Returns:
- the gh issue builder
-
assignee
public GHIssueBuilder assignee(GHUser user)
Assignee gh issue builder.- Parameters:
user
- the user- Returns:
- the gh issue builder
-
assignee
public GHIssueBuilder assignee(String user)
Assignee gh issue builder.- Parameters:
user
- the user- Returns:
- the gh issue builder
-
milestone
public GHIssueBuilder milestone(GHMilestone milestone)
Milestone gh issue builder.- Parameters:
milestone
- the milestone- Returns:
- the gh issue builder
-
label
public GHIssueBuilder label(String label)
Label gh issue builder.- Parameters:
label
- the label- Returns:
- the gh issue builder
-
create
public GHIssue create() throws IOException
Creates a new issue.- Returns:
- the gh issue
- Throws:
IOException
- the io exception
-
-