Skip to content

Commit

Permalink
Merge pull request #2 from adisharma610/adisharma610-patch-1
Browse files Browse the repository at this point in the history
Automate issue responses
  • Loading branch information
adisharma610 committed Apr 8, 2021
2 parents 0df7f63 + 87ea2a6 commit 1c02cef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/my-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Learning GitHub Script

on:
issues:
types: [opened]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@0.8.0
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "🎉 You've created this issue comment using GitHub Script!!!"
})

0 comments on commit 1c02cef

Please sign in to comment.