Skip to content

Commit

Permalink
chore: Add issue greeting
Browse files Browse the repository at this point in the history
Closes: vmware#2406
Signed-off-by: Michael Gasch <mgasch@vmware.com>
  • Loading branch information
Michael Gasch committed May 4, 2021
1 parent da4f74c commit 6c0e329
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/comment-template.md
@@ -0,0 +1 @@
Howdy 🖐 &nbsp; {{ .author }} ! Thank you for your interest in this project. We value your feedback and will respond soon.
32 changes: 32 additions & 0 deletions .github/workflows/issue-greeting.yaml
@@ -0,0 +1,32 @@
name: Greeting

on:
issues:
types: ["opened"]

jobs:
greeting:
name: Send Greeting
runs-on: ubuntu-latest
# only send message to first-time contributors
if: github.event.issue.author_association == 'FIRST_TIME_CONTRIBUTOR'

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Render template
id: template
uses: chuhlomin/render-template@v1.2
with:
template: .github/comment-template.md
vars: |
author: ${{ github.actor }}
- name: Create comment
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: ${{ steps.template.outputs.result }}

0 comments on commit 6c0e329

Please sign in to comment.