[Github] Action: 리뷰 통계내기
https://github.com/flowwer-dev/pull-request-stats
리뷰 적극성을 높이기 위한 보조적인 수단 중 하나다.
이런 식으로 리뷰 횟수, 코멘트 개수 같은걸 PR이 열릴때마다 집계해서 보여주는 것이다.
먼저, 적용할 레포에 깃헙 시크릿 토큰이 없다면 만들어준다.
Pull Request 관련 권한만 있어도 될 것이다.
그리고 그 토큰을 적당히 시크릿에 저장해준다.
name: Review/Comment 14 day Stats
on:
pull_request:
types: [opened]
jobs:
stats:
runs-on: ubuntu-latest
steps:
- name: Run pull request stats
uses: flowwer-dev/pull-request-stats@master
with:
token: ${{ secrets.GH_TOKEN }}
period: 14
limit: 7
charts: true
disable-links: true
액션 워크플로 yml은 이정도로 넣어주면 된다. 복잡하진 않다.
그리고 PR을 날려보면
이렇게 적절히 띄워줄 것이다.