Skip to content

[BE] 로그 중복 작성 제거, 비즈니스 로직 내 로그 추가(#608) #34

[BE] 로그 중복 작성 제거, 비즈니스 로직 내 로그 추가(#608)

[BE] 로그 중복 작성 제거, 비즈니스 로직 내 로그 추가(#608) #34

Workflow file for this run

# .github/workflows/pr-stats.yml
name: PR Stats and Notifications
on:
pull_request:
types:
- closed # PR이 닫힐 때 트리거
jobs:
pr-stats-job:
if: github.event.pull_request.merged == true # PR이 merge된 경우에만 실행
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Python 3.x 버전 사용
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install slack_sdk requests
- name: Run PR Stats
uses: "naver/[email protected]"
with:
token: ${{ secrets.GITHUB_TOKEN }}
count: 15
- name: Analyze PR Stats and Notify
run: |
python .github/scripts/pr-stats.py
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
PR_HTML_URL: ${{ github.event.pull_request.html_url }}
ASSIGNEE: ${{ github.event.pull_request.assignee.login }}
PR_NUMBER: ${{ github.event.pull_request.number }}