Skip to content

Commit

Permalink
ci(github-actions): add automations
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Nov 17, 2023
1 parent 8773de0 commit 05797c9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 🤖 Automation
on:
pull_request:
branches: [main]
pull_request_target:
branches: [main]
issues:
types: [opened, edited, milestoned, demilestoned, closed, reopened]
jobs:
label:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: 🔖 Labeler
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
greet:
if: ${{ github.event_name == 'issues' || github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: 🫂 Greeter
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: '## 🙏 Thanks for opening this issue! We will look into it ASAP.'
pr-message: '## 🙏 Thanks for opening this PR! We will look into it ASAP.'

0 comments on commit 05797c9

Please sign in to comment.