Skip to content

Commit 20ecf97

Browse files
Merge pull request #1 from marcelloromani/feature/comment-pr
Feature/comment pr
2 parents 34072a7 + 04600ef commit 20ecf97

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
name: Python application
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- '**'
7-
pull_request:
8-
branches: [ "main" ]
97
workflow_dispatch:
108

119
permissions:

.github/workflows/pr-comment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Comment on PR
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
comment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/github-script@v7
12+
with:
13+
github-token: ${{secrets.GHA_PRS}}
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 reporting!'
20+
})

0 commit comments

Comments
 (0)