public class GitlabIssueManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ISSUE_CLOSED |
static String |
ISSUE_OPENED |
static String |
ISSUE_REOPENED |
| Constructor and Description |
|---|
GitlabIssueManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
commentIssue(Properties gitlabConfig,
int iid,
String body)
Comment an issue (adding notes)
|
static boolean |
commentIssue(String gitlabUrl,
String privateToken,
Object projectIdOrPath,
int iid,
String comment)
Comment an issue (adding notes)
|
static org.gitlab4j.api.models.Issue |
createIssue(Properties gitlabConfig,
String title,
String description)
Create a Gitlab issue for a given project
|
static org.gitlab4j.api.models.Issue |
createIssue(String gitlabUrl,
String privateToken,
Object projectIdOrPath,
String title,
String description)
Create a Gitlab issue for a given project
|
static void |
deleteIssue(Properties gitlabConfig,
int iid)
Delete an issue for a given project
|
static void |
deleteIssue(String gitlabUrl,
String privateToken,
Object projectIdOrPath,
int iid)
Delete an issue for a given project
|
static org.gitlab4j.api.models.Issue |
getIssue(Properties gitlabConfig,
int iid) |
static org.gitlab4j.api.models.Issue |
getIssue(String gitlabUrl,
String privateToken,
Object projectIdOrPath,
int iid) |
static boolean |
isExceptionLikely(org.gitlab4j.api.models.Issue issue)
Decide whether an issue is likely to contain an exception stack (or not)
|
static List<org.gitlab4j.api.models.Issue> |
listIssues(Properties gitlabConfig,
String state)
List gitlab issues for a given project
|
static List<org.gitlab4j.api.models.Issue> |
listIssues(String gitlabUrl,
String privateToken,
Object projectIdOrPath,
String state)
List gitlab issues for a given project
|
static List<org.gitlab4j.api.models.Issue> |
listIssues(String gitlabUrl,
String user,
String password,
Object projectIdOrPath,
String state)
List gitlab issues for a given project
|
static org.gitlab4j.api.models.Issue |
updateIssue(Properties gitlabConfig,
int iid,
String title,
String description)
Update a Gitlab issue for a given project
|
static org.gitlab4j.api.models.Issue |
updateIssue(String gitlabUrl,
String privateToken,
Object projectIdOrPath,
int iid,
String title,
String description)
Update a Gitlab issue for a given project
|
public static final String ISSUE_OPENED
public static final String ISSUE_CLOSED
public static final String ISSUE_REOPENED
public static List<org.gitlab4j.api.models.Issue> listIssues(String gitlabUrl, String privateToken, Object projectIdOrPath, String state) throws IOException
gitlabUrl - Gitlab server URLprivateToken - Gitlab private token for authenticationprojectIdOrPath - Gitlab project ID or pathstate - Gitlab issue state (one of OPENED, CLOSED, REOPENED)IOExceptionpublic static List<org.gitlab4j.api.models.Issue> listIssues(String gitlabUrl, String user, String password, Object projectIdOrPath, String state) throws IOException
gitlabUrl - Gitlab server URLuser - Gitlab user for authenticationpassword - Gitlab password for authenticationprojectIdOrPath - Gitlab project ID or pathstate - Gitlab issue state (one of OPENED, CLOSED, REOPENED)IOExceptionpublic static List<org.gitlab4j.api.models.Issue> listIssues(Properties gitlabConfig, String state) throws IOException
properties - Gitlab config with gitlab.url, gitlab.token and gitlab.project expectedstate - Gitlab issue state (one of OPENED, CLOSED, REOPENED)IOExceptionpublic static org.gitlab4j.api.models.Issue getIssue(String gitlabUrl, String privateToken, Object projectIdOrPath, int iid) throws IOException
gitlabUrl - Gitlab server URLprivateToken - Gitlab private token for authenticationprojectIdOrPath - Gitlab project ID or pathiid - Issue IDIOExceptionpublic static org.gitlab4j.api.models.Issue getIssue(Properties gitlabConfig, int iid) throws IOException
properties - Gitlab config with gitlab.url, gitlab.token and gitlab.project expectediid - Issue IDIOExceptionpublic static boolean commentIssue(String gitlabUrl, String privateToken, Object projectIdOrPath, int iid, String comment) throws IOException
gitlabUrl - Gitlab server URLprivateToken - Gitlab private token for authenticationprojectIdOrPath - Gitlab project ID or pathiid - Issue IDbody - Comment body (text)IOExceptionpublic static boolean commentIssue(Properties gitlabConfig, int iid, String body) throws IOException
properties - Gitlab config with gitlab.url, gitlab.token and gitlab.project expectediid - Issue IDbody - Comment body (text)IOExceptionpublic static org.gitlab4j.api.models.Issue createIssue(String gitlabUrl, String privateToken, Object projectIdOrPath, String title, String description) throws IOException
gitlabUrl - Gitlab server URLprivateToken - Gitlab private token for authenticationprojectIdOrPath - Gitlab project ID or pathtitle - Issue titledescription - Issue contentIOExceptionpublic static org.gitlab4j.api.models.Issue createIssue(Properties gitlabConfig, String title, String description) throws IOException
gitlabConfig - Gitlab config with gitlab.url, gitlab.token and gitlab.project expectedtitle - Issue titledescription - Issue contentIOExceptionpublic static org.gitlab4j.api.models.Issue updateIssue(String gitlabUrl, String privateToken, Object projectIdOrPath, int iid, String title, String description) throws IOException
gitlabUrl - Gitlab server URLprivateToken - Gitlab private token for authenticationprojectIdOrPath - Gitlab project ID or pathiid - ID of issue to updatetitle - Issue titledescription - Issue contentIOExceptionpublic static org.gitlab4j.api.models.Issue updateIssue(Properties gitlabConfig, int iid, String title, String description) throws IOException
gitlabConfig - Gitlab config with gitlab.url, gitlab.token and gitlab.project expectediid - ID of issue to updatetitle - Issue titledescription - Issue contentIOExceptionpublic static void deleteIssue(String gitlabUrl, String privateToken, Object projectIdOrPath, int iid) throws IOException
gitlabUrl - Gitlab server URLprivateToken - Gitlab private token for authenticationprojectIdOrPath - Gitlab project ID or pathiid - Issue IDIOExceptionpublic static void deleteIssue(Properties gitlabConfig, int iid) throws IOException
gitlabConfig - Gitlab config with gitlab.url, gitlab.token and gitlab.project expectediid - Issue IDIOExceptionpublic static boolean isExceptionLikely(org.gitlab4j.api.models.Issue issue)
issue - The issue to checkCopyright © 2020 OW2. All Rights Reserved.