Skip to content

Commit

Permalink
chore: Add issue greeting
Browse files Browse the repository at this point in the history
Closes: #390
Signed-off-by: Michael Gasch <mgasch@vmware.com>
  • Loading branch information
Michael Gasch committed May 4, 2021
1 parent b2b4ddd commit d0d93c8
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
Original file line number Diff line number Diff line change
@@ -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.yml
Original file line number Diff line number Diff line change
@@ -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 d0d93c8

Please sign in to comment.