Skip to content

Support importing author, collection, and post data from a pull request webhook #93

@fennifith

Description

@fennifith

When someone creates a pull request to the content repository (to be created / split from the Astro codebase in the future), hoof should:

  • Look up the author of the pull request
  • Determine if they have an account in the CMS (TBD: how?)
    • If not, create a profile/user record in the DB
      • TBD: should they be prompted to complete oauth to create an account via PR comment?
  • Obtain the forked repo/branch from the PR webhook event
  • Import the post under the author's profile as a draft
    • TBD: We need the frontend to expose a no-index page for viewing a draft post from the API
  • Send a build status back to the PR to indicate if the import was successful

If the same post is later sent via a push webhook from main, the post should be marked as published with the webhook date as the timestamp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ❗ Needs Attention

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions