Skip to content

Commit 5ab0fb3

Browse files
committed
add yml files in workflow folder
1 parent bc13aee commit 5ab0fb3

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/issues.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Issue Opened
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
respond:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Comment on new issue
12+
uses: actions/github-script@v7
13+
with:
14+
script: |
15+
github.rest.issues.createComment({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
body: "### 👋 Thanks for opening this issue! I'll review it soon."
20+
})

.github/workflows/pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Pull Request Opened
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
respond:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Comment on new PR
12+
uses: actions/github-script@v7
13+
with:
14+
script: |
15+
github.rest.issues.createComment({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
body: "### 🚀 Thanks for the pull request! I'll review your changes shortly."
20+
})

0 commit comments

Comments
 (0)