Skip to content

[dont merge] - Refactor proxy client & migrate issue screen #770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions src/api/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,47 @@
import { createActionSet, createPaginationActionSet } from 'utils';
import {
createActionSet,
createPaginationActionSet,
createPaginationItemActionSet,
} from 'utils';

export const ACTIVITY_GET_EVENTS_RECEIVED = createPaginationActionSet(
'ACTIVITY_GET_EVENTS_RECEIVED'
);
export const ACTIVITY_GET_STARRED_REPOS_FOR_USER = createPaginationActionSet(
'ACTIVITY_GET_STARRED_REPOS_FOR_USER'
);
export const SEARCH_REPOS = createPaginationActionSet('SEARCH_REPOS');
export const SEARCH_USERS = createPaginationActionSet('SEARCH_USERS');
export const ORGS_GET_MEMBERS = createPaginationActionSet('ORGS_GET_MEMBERS');

export const ORGS_GET_BY_ID = createActionSet('ORGS_GET_BY_ID');

export const SEARCH_REPOS = createPaginationActionSet('SEARCH_REPOS');
export const SEARCH_USERS = createPaginationActionSet('SEARCH_USERS');

export const REPOS_GET = createActionSet('REPOS_GET');
export const REPOS_GET_CONTRIBUTORS = createPaginationActionSet(
'REPOS_GET_CONTRIBUTORS'
);
export const REPOS_GET_LABELS = createPaginationActionSet('REPOS_GET_LABELS');

export const ISSUES_GET = createActionSet('ISSUES_GET');
export const ISSUES_GET_EVENTS = createPaginationActionSet('ISSUES_GET_EVENTS');
export const ISSUES_GET_COMMENTS = createPaginationActionSet(
'ISSUES_GET_COMMENTS'
);

export const ISSUES_CREATE_COMMENT = createPaginationItemActionSet(
'ISSUE_CREATE_COMMENT',
ISSUES_GET_COMMENTS
);
export const ISSUES_DELETE_COMMENT = createPaginationItemActionSet(
'ISSUE_DELETE_COMMENT',
ISSUES_GET_COMMENTS
);
export const ISSUES_EDIT_COMMENT = createPaginationItemActionSet(
'ISSUE_EDIT_COMMENT',
ISSUES_GET_COMMENTS
);

export const ISSUES_EDIT = createActionSet('ISSUE_EDIT');
export const ISSUES_LOCK = createActionSet('ISSUE_LOCK');
export const ISSUES_UNLOCK = createActionSet('ISSUE_UNLOCK');
Loading