Skip to content

Commit

Permalink
Fixes lesson checklist automation not firing from comment (#2213)
Browse files Browse the repository at this point in the history
* Update content-checklist-from-comment.yml

* Update comment-with-checklist.yml
  • Loading branch information
kaitohm authored Feb 13, 2024
1 parent ec535df commit 8ffb541
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/comment-with-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
issue-number: ${{ github.event.issue.number }}
body: |
# Tutorial Development Checklist
## 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)
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
with:
issue-number: ${{ github.event.issue.number }}
body: |
# Lesson Development Checklist
## 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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/content-checklist-from-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ jobs:
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.comment.body, '//lesson') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'lesson'

0 comments on commit 8ffb541

Please sign in to comment.