Skip to content

Commit

Permalink
Adding //lesson automation (#2120)
Browse files Browse the repository at this point in the history
* Adding //lesson automation

* Update comment-with-checklist.yml

Modifying the command `lesson-plan` to `teach` so as not to conflict with the newly introduced `lesson`.

* Update content-checklist-from-issue.yml

Modifying command `lesson-plan` to `teach` so as not to conflict with the newly introduced `lesson`.

---------

Co-authored-by: Ben Evans <[email protected]>
  • Loading branch information
jonathanbossenger and kaitohm authored Jan 26, 2024
1 parent 89d87b7 commit 73cd585
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/comment-with-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- [ ] 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, 'lesson-plan')
if: contains(inputs.content-type, 'teach')
with:
issue-number: ${{ github.event.issue.number }}
body: |
Expand Down Expand Up @@ -72,5 +72,19 @@ jobs:
- [ ] 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
- [ ] Add link to slides and/or WordPress.tv video to GitHub issue
- 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
- [ ] 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
9 changes: 7 additions & 2 deletions .github/workflows/content-checklist-from-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@ jobs:
content-type: 'online-workshop'

lesson-plan-issue:
if: ${{ contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '//lesson-plan') }}
if: ${{ contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '//teach') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'lesson-plan'
content-type: 'teach'

course-issue:
if: ${{ contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '//course') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'course'

lesson-issue:
if: ${{ contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '//lesson') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'lesson'

0 comments on commit 73cd585

Please sign in to comment.