-
Notifications
You must be signed in to change notification settings - Fork 106
100 lines (97 loc) · 5.42 KB
/
comment-with-checklist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# This is a reusable workflow, called from other workflows
# See https://docs.github.com/en/actions/using-workflows/reusing-workflows
name: Comments on issues
on:
workflow_call:
inputs:
content-type:
type: string
jobs:
add-comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: peter-evans/create-or-update-comment@v3
if: contains(inputs.content-type, 'tutorial')
with:
issue-number: ${{ github.event.issue.number }}
body: |
## Tutorial Development Checklist
- [ ] Tutorial [created](https://make.wordpress.org/training/handbook/tutorials/creating-a-tutorial) and announced to the team for Q/A review
- [ ] Tutorial reviewed and [ready to publish](https://make.wordpress.org/training/handbook/tutorials/publishing-a-tutorial)
- [ ] Tutorial [submitted and published to WPTV](https://make.wordpress.org/training/handbook/tutorials/publishing-a-tutorial/#1-submit-your-video-to-wordpress-tv)
- [ ] Tutorial published on WPTV
- [ ] Tutorial [captioned](https://make.wordpress.org/training/handbook/tutorials/publishing-a-tutorial/#2-generate-subtitles-and-a-transcript-for-your-video)
- [ ] Tutorial [created on Learn.WordPress.org](https://make.wordpress.org/training/handbook/tutorials/publishing-a-tutorial/#3-create-edit-your-workshop-post)
- [ ] Tutorial post reviewed for grammar, spelling, etc.
- [ ] Tutorial published on Learn.WordPress.org
- [ ] Tutorial [announced to Marketing Team](https://docs.google.com/spreadsheets/d/1rY9gyA0KljjlinPE2B0S2qfsN8Nz24_N_KzqB5CrYZM/edit#gid=469255212) for promotion
- uses: peter-evans/create-or-update-comment@v3
if: contains(inputs.content-type, 'course')
with:
issue-number: ${{ github.event.issue.number }}
body: |
## Course Development Checklist
- [ ] [Draft content outline](https://make.wordpress.org/training/handbook/courses/content-outline-and-draft/)
- [ ] [Create content](https://make.wordpress.org/training/handbook/courses/content-creation/)
- [ ] Request a review from the team
- [ ] [Publish content](https://make.wordpress.org/training/handbook/courses/publishing/)
- uses: peter-evans/create-or-update-comment@v3
if: contains(inputs.content-type, 'teach')
with:
issue-number: ${{ github.event.issue.number }}
body: |
## Lesson Plan Development Checklist
- [ ] Create an outline of the example lesson walk-through
- [ ] Draft lesson plan
- [ ] Copy edit
- [ ] Style guide review
- [ ] Instructional Review
- [ ] Final review
- [ ] Publish
- [ ] Announce to the Training team
- [ ] Announce to lesson plan creator
- [ ] Announce to marketing
- [ ] Gather feedback from lesson plan users about the quality
- uses: peter-evans/create-or-update-comment@v3
if: contains(inputs.content-type, 'online-workshop')
with:
issue-number: ${{ github.event.issue.number }}
body: |
## Online Workshop Details
- Date:
- Meetup.com event link:
- Co-host:
## Online Workshop Development Checklist
- [ ] Create Online Workshop event on [Learn WordPress Online Workshops](https://www.meetup.com/learn-wordpress-online-workshops/)
- [ ] Add Online Workshop to [Online Workshop calendar](https://learn.wordpress.org/online-workshops/)
- [ ] Assign [a Co-host](https://make.wordpress.org/training/handbook/online-workshops/co-hosting-an-online-workshop/) to event (Remove the "Needs Co-host" tag from issue once assigned)
- [ ] Hold Online Workshop
- [ ] Complete [After an Online Workshop](https://make.wordpress.org/training/handbook/online-workshops/after-an-online-workshop/) next steps
- [ ] Add link to slides and/or WordPress.tv video to GitHub issue
- uses: actions/[email protected]
if: contains(inputs.content-type, 'online-workshop')
with:
script: |
github.rest.issues.addLabels({
issue_number: ${{ github.event.issue.number }},
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["[Content] Needs Co-host"]
})
- uses: peter-evans/create-or-update-comment@v3
if: contains(inputs.content-type, 'lesson')
with:
issue-number: ${{ github.event.issue.number }}
body: |
## Lesson Development Checklist
- [ ] Gather any relevant links to Support, Docs, or related material
- [ ] Description and Objectives finalized
- [ ] Lesson created and announced to the team for review
- [ ] [Lesson reviewed](https://make.wordpress.org/training/handbook/training-team-how-to-guides/guidelines-for-reviewing-content-on-learn/#are-you-reviewing-content-before-it-is-published)
- [ ] Lesson video submitted and published to WPTV
- [ ] Lesson created on Learn.WordPress.org
- [ ] Lesson video published to YouTube
- [ ] Lesson on Learn.WordPress.org updated with YouTube video
- [ ] Lesson published to Learn.WordPress.org