31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
export const FETCH_ISSUES_REQUEST = "FETCH_ISSUES_REQUEST";
|
|
export const FETCH_ISSUES_SUCCESS = "FETCH_ISSUES_SUCCESS";
|
|
export const FETCH_ISSUES_FAILURE = "FETCH_ISSUES_FAILURE";
|
|
|
|
export function fetchIssues(project: any) {
|
|
return { type: FETCH_ISSUES_REQUEST, project };
|
|
};
|
|
|
|
export const ADD_LABEL_REQUEST = "ADD_LABEL_REQUEST";
|
|
export const ADD_LABEL_SUCCESS = "ADD_LABEL_SUCCESS";
|
|
export const ADD_LABEL_FAILURE = "ADD_LABEL_FAILURE";
|
|
|
|
export function addLabel(project: any, issueNumber: any, label: string) {
|
|
return { type: ADD_LABEL_REQUEST, project, issueNumber, label };
|
|
}
|
|
|
|
export const REMOVE_LABEL_REQUEST = "REMOVE_LABEL_REQUEST";
|
|
export const REMOVE_LABEL_SUCCESS = "REMOVE_LABEL_SUCCESS";
|
|
export const REMOVE_LABEL_FAILURE = "REMOVE_LABEL_FAILURE";
|
|
|
|
export function removeLabel(project: any, issueNumber: any, label: string) {
|
|
return { type: REMOVE_LABEL_REQUEST, project, issueNumber, label };
|
|
}
|
|
|
|
export const CREATE_ISSUE_REQUEST = "CREATE_ISSUE_REQUEST";
|
|
export const CREATE_ISSUE_SUCCESS = "CREATE_ISSUE_SUCCESS";
|
|
export const CREATE_ISSUE_FAILURE = "CREATE_ISSUE_FAILURE";
|
|
|
|
export function createIssue(project: any, title: string, body: any, label: string) {
|
|
return { type: CREATE_ISSUE_REQUEST, project, title, body, label };
|
|
}; |