-
Notifications
You must be signed in to change notification settings - Fork 103
38 lines (32 loc) · 1.28 KB
/
content-checklist-from-comment.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
# This was based on https://docs.github.com/en/actions/managing-issues-and-pull-requests/commenting-on-an-issue-when-a-label-is-added
name: Add the applicable content development checklist based on a command in the comment
on:
issue_comment:
types: created
# types: [created, edited] <= Use this if we want the workflow to run when a comment is edited, too
jobs:
tutorial-issue:
if: ${{ contains(github.event.comment.body, '//tutorial') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'tutorial'
online-workshop-issue:
if: ${{ contains(github.event.comment.body, '//online-workshop') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'online-workshop'
lesson-plan-issue:
if: ${{ contains(github.event.comment.body, '//lesson-plan') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'lesson-plan'
course-issue:
if: ${{ contains(github.event.comment.body, '//course') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'course'
lesson-issue:
if: ${{ contains(github.event.comment.body, '//lesson') }}
uses: ./.github/workflows/comment-with-checklist.yml
with:
content-type: 'lesson'