Skip to content
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

Added createPost command. #28

Merged
merged 2 commits into from
Mar 25, 2022
Merged

Added createPost command. #28

merged 2 commits into from
Mar 25, 2022

Conversation

iamdharmesh
Copy link
Member

Description of the Change

Added command for creating a post.
createPost command accepts below post data

  • postType: To create a post for the specific post type.
  • title: Post Title
  • content: Post content
  • status: Post status (draft and publish are supported for now.)

Note: This command is for Block Editor workflow only.

Closes #21

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Added: createPost command.

@iamdharmesh iamdharmesh self-assigned this Mar 24, 2022
@iamdharmesh iamdharmesh requested a review from dinhtungdu March 24, 2022 13:17
Copy link
Contributor

@cadic cadic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iamdharmesh thank you for your great work on this. I just have 2 small comments on documenting mistype and logging output

src/commands/create-post.ts Outdated Show resolved Hide resolved
src/commands/create-post.ts Outdated Show resolved Hide resolved
@iamdharmesh iamdharmesh requested a review from cadic March 25, 2022 10:24
Copy link
Contributor

@cadic cadic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cadic cadic merged commit ce294ae into trunk Mar 25, 2022
@cadic cadic deleted the command/createPost branch March 25, 2022 13:59
github-actions bot pushed a commit that referenced this pull request Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

publishPost
2 participants