Skip to content

Commit

Permalink
Merge pull request #5 from f-lab-edu/feature/#4
Browse files Browse the repository at this point in the history
[#4] ci: add pr automation
  • Loading branch information
rarlala authored Sep 12, 2024
2 parents 307246c + bd3c79e commit 251fe20
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Automation

on:
pull_request:
types: [opened, edited, reopened]

jobs:
automate-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install GitHub CLI
run: |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /usr/share/keyrings/githubcli-archive-keyring.gpg > /dev/null
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
- name: Add reviewers and assignees
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-reviewer f-lab-jake
gh pr edit ${{ github.event.pull_request.number }} --add-assignee rarlala
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 251fe20

Please sign in to comment.