Skip to content

Commit

Permalink
event checklist
Browse files Browse the repository at this point in the history
  • Loading branch information
leogopal committed Mar 1, 2024
1 parent a9e4732 commit c93117f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/comment-with-checklist.yml
@@ -1,7 +1,7 @@
# This is a reusable workflow, called from other workflows
# See https://docs.github.com/en/actions/using-workflows/reusing-workflows

name: Comments on issues
name: Comments on issues
on:
workflow_call:
inputs:
Expand All @@ -15,7 +15,7 @@ jobs:
issues: write
steps:
- uses: peter-evans/create-or-update-comment@v3
if: contains(inputs.content-type, 'meetup') || contains(inputs.content-type, 'wordcamp') || contains(inputs.content-type, 'wordpress-event')
if: contains(inputs.content-type, 'event-application')
with:
issue-number: ${{ github.event.issue.number }}
body: |
Expand All @@ -35,4 +35,4 @@ jobs:
- [Application Review](https://make.wordpress.org/community/handbook/community-deputy/resources-and-tools/application-review/)
- [Most Common Cases](https://make.wordpress.org/community/handbook/community-deputy/resources-and-tools/application-review/#most-common-cases-quick-step-by-step-guide)
- [Video tutorials](https://make.wordpress.org/community/handbook/community-deputy/resources-and-tools/application-review/#quick-step-by-step-video-tutorial-for-application-review)
- [Video tutorials](https://make.wordpress.org/community/handbook/community-deputy/resources-and-tools/application-review/#quick-step-by-step-video-tutorial-for-application-review)
18 changes: 3 additions & 15 deletions .github/workflows/content-checklist-from-issue.yml
Expand Up @@ -6,20 +6,8 @@ on:
types: [opened]

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

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

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

0 comments on commit c93117f

Please sign in to comment.