Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samyak-aditya authored Oct 2, 2024
1 parent 99e765c commit ba7288b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Greetings

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
greet:
runs-on: ubuntu-latest
steps:
- name: Greet the user
uses: actions/github-script@v6
with:
script: |
const issue = context.issue;
const message = "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.";
await github.issues.createComment({
...issue,
body: message
});

0 comments on commit ba7288b

Please sign in to comment.