Skip to content

Commit

Permalink
fixup! fixup! fixup! feat: add initial workflow status in config
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainOliva committed Nov 10, 2023
1 parent 2b95a52 commit cb2ee3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/decap-cms-core/src/constants/publishModes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Statues = {
DRAFT: 'draft',
PENDING_REVIEW: 'pending_review',
PENDING_PUBLISH: 'pending_publish',
};
} as const;

// Available status
export const status = OrderedMap(Statues);
Expand All @@ -20,3 +20,4 @@ export const statusDescriptions = Map({
});

export type Status = keyof typeof Statues;
export type StatusValues = typeof Statues[Status];
3 changes: 2 additions & 1 deletion packages/decap-cms-core/src/types/redux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type { Search } from '../reducers/search';
import type { GlobalUI } from '../reducers/globalUI';
import type { NotificationsState } from '../reducers/notifications';
import type { formatExtensions } from '../formats/formats';
import type { StatusValues as PublishStatusValues } from '../constants/publishModes';

export type CmsBackendType =
| 'azure'
Expand Down Expand Up @@ -402,7 +403,7 @@ export interface CmsConfig {
media_folder_relative?: boolean;
media_library?: CmsMediaLibrary;
publish_mode?: CmsPublishMode;
default_workflow_status?: string;
default_workflow_status?: PublishStatusValues;
load_config_file?: boolean;
integrations?: {
hooks: string[];
Expand Down

0 comments on commit cb2ee3d

Please sign in to comment.