Skip to content

Commit

Permalink
chore: only add issue & pr comment when created [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pauby committed Nov 29, 2024
1 parent 417c8be commit 17da50a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/respond-to-issue.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: 'Add Comment To New Issue'
on:
issues:
types: opened
types: created
permissions:
contents: read
issues: write

jobs:
new_issue_comment:
runs-on: ubuntu-latest
steps:
- uses: GrantBirki/comment@v2.0.9
- uses: GrantBirki/comment@v2.1.0
with:
issue-number: ${{ github.event.issue.number }}
body: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/respond-to-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: 'Add Comment To New PR'
on:
pull_request:
types: opened
types: created
permissions:
contents: read
pull-requests: write

jobs:
new_pr_comment:
runs-on: ubuntu-latest
steps:
- uses: GrantBirki/comment@v2.0.9
- uses: GrantBirki/comment@v2.1.0
with:
issue-number: ${{ github.event.issue.number }}
body: |
Expand Down

0 comments on commit 17da50a

Please sign in to comment.