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.
When someone creates a pull request to the content repository (to be created / split from the Astro codebase in the future), hoof should:
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.