On-Brand Maintenance Mode for WordPress Block Themes #164
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Add pre and post publishing check list as comment | |
| on: | |
| issues: | |
| types: [labeled] | |
| jobs: | |
| add-comment: | |
| if: ${{ github.event.label.name == 'flow-ready to publish' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Add pre and post publishing check list as comment | |
| run: gh issue comment "$NUMBER" --body "$BODY" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| NUMBER: ${{ github.event.issue.number }} | |
| BODY: | | |
| ### Pre-publishing checklist | |
| - [ ] Post Title and subheaders in sentence case | |
| - [ ] Are Category or Categories selected? | |
| - [ ] Are Tags identifies? | |
| - [ ] Is there an explicit Excerpt? | |
| - [ ] Are all images files uploaded to the media library | |
| - [ ] Do all images have an alt-text? | |
| - [ ] Are all code blocks using the **Code** Block? | |
| - [ ] For TOC us the Pattern under _Developer Blog > Table of contents_ | |
| - [ ] Assign or upload a featured image ([Figma templates to get started](https://www.figma.com/design/Mq3GKVCsHI7NpKbgeU9H2m/Developer-Blog?m=auto&t=S2ZDPdmjTz6GiCLl-7)) | |
| - [ ] Props added? (See [Guidelines](https://make.wordpress.org/core/handbook/best-practices/post-comment-guidelines/#giving-proper-credit-props)) | |
| 🙌 Publish! 📗 | |
| ### Post-publishing checklist | |
| - [ ] add Props for reviews to #props channel in WP Slack ([Example](https://wordpress.slack.com/archives/C0FRG66LR/p1689098122307029)) (use Slack handles) | |
| - [ ] close the issue with a comment to link to the published post | |
| - [ ] close the accompanying discussion with the link to the published post. | |