Skip to content

Commit

Permalink
Add Github Actions (#27)
Browse files Browse the repository at this point in the history
Close #26

* Added greeting message for PR and Issues

* Added action for abusive language

* Updated token name on greetings.yml

* Updated token name on language.yml
  • Loading branch information
abhushanaj authored Apr 4, 2020
1 parent c5c8d28 commit 0720518
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Greetings

on: [pull_request, issues]

jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Hello @${{ github.actor }}, thank you for raising an issue. Make sure to provide a detailed description about it. Maintainers will review the issue and get back to you shortly.'
pr-message: 'Hello @${{ github.actor }}, thank you for making the project better with your contribution. Please make sure you have followed our coding guidelines. You are awesome!.'
25 changes: 25 additions & 0 deletions .github/workflows/language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Bad Language
on:
issues:
types:
- opened
- edited
issue_comment:
types:
- created
- edited
pull_request_review_comment:
types:
- created
- edited
jobs:
echo_issue_comment:
runs-on: ubuntu-latest
name: profanity check
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Profanity check step
uses: tailaiw/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0720518

Please sign in to comment.