-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADd yml extension
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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: (updated 12/09/2024) | ||
- [ ] 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? | ||
- [ ] For TOC us the Pattern under _Developer Blog > Table of contents_ | ||
- [ ] Assign or upload a featured image | ||
- [ ] Props added? (See [Guidelines](https://make.wordpress.org/core/handbook/best-practices/post-comment-guidelines/#giving-proper-credit-props)) | ||
- [ ] add **copy for a social post** as comment to this issue ([example](https://github.com/WordPress/developer-blog-content/issues/152#issuecomment-1654259045)) | ||
🙌 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) | ||
- [ ] Add the label "post to social" to the issue | ||
- [ ] close the issue with a comment to link to the published post | ||
- [ ] close the accompanying discussion with the link to the published post. |