Skip to content

Commit

Permalink
Merge branch 'dsa-master:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonsudo authored Oct 14, 2023
2 parents ea25205 + 2cfbcf8 commit 746a9f6
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: Auto Assign
run-name: Auto assigning people to ${{ github.actor }}'s Pull Request. 🚀
name: Add Reviewers
run-name: >-
"${{ github.actor }}"가 제출한 과제에 리뷰어를 등록하고 있습니다. 🚀
on:
pull_request_target:
types:
- opened
- edited
- reopened
- ready_for_review
- unlocked
jobs:
Add-Reviewers:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: kentaro-m/auto-assign-action@v1.2.5
name: Add reviewers to PR
- name: Add reviewers to PR
uses: kentaro-m/auto-assign-action@v1.2.5
with:
configuration-path: ".github/auto_assign.yml"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
45 changes: 45 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Validate Pull Request
run-name: >-
"${{ github.actor }}"가 제출한 과제를 검토하고 있습니다. 🚀
on:
pull_request:
types:
- opened
- edited
- reopened
- ready_for_review
- unlocked
- synchronize
jobs:
Validate-Pull-Request:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: 1개의 파일만 수정되었는지 검사
uses: JJ/github-pr-contains-action@releases/v11
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
filesChanged: 1
- name: 제목 형식이 올바른지 검사
uses: deepakputhraya/action-pr-title@master
with:
regex: '^\[\d{2}주차 [가-힣]+\] .+'
github_token: "${{ secrets.GITHUB_TOKEN }}"
- name: 파일의 경로가 올바른지 검사
uses: brettcannon/check-for-changed-files@v1
with:
# TODO: Replace hard-coded patterns
file-pattern: |
/??주차/김동주/*
/??주차/이윤호/*
/??주차/이은지/*
/??주차/박민수/*
/??주차/손성빈/*
/??주차/박상우/*
/??주차/정지원/*
/??주차/조예빈/*
token: "${{ secrets.GITHUB_TOKEN }}"
failure-message: >-
제출한 파일의 경로가 올바르지 않습니다.
파일의 이 올바른 디렉터리에 있는지 확인해주세요.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**/*
!/**/*.py
!/**/*.java
!/**/*.c
!/**/*.cpp
!/**/*.yml
!/**/*.md
!/.gitignore
!/.github/
!/??주차/

/??주차/*
!/??주차/김동주
!/??주차/이윤호
!/??주차/이은지
!/??주차/박민수
!/??주차/손성빈
!/??주차/박상우
!/??주차/정지원
!/??주차/조예빈

0 comments on commit 746a9f6

Please sign in to comment.