Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Label on Approval Count

on:
pull_request_review:
types: [submitted, dismissed]

jobs:
Comment on lines +3 to +7
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

GITHUB_TOKEN 권한 미지정 → 라벨 추가 실패 위험(403).

pull-requests: write 이 없으면 재사용 워크플로우에서 라벨 추가가 막힐 수 있습니다. 최소 권한을 명시하세요.

적용 제안:

 on:
   pull_request_review:
     types: [submitted, dismissed]

+permissions:
+  contents: read
+  pull-requests: write
🤖 Prompt for AI Agents
In .github/workflows/labeler.yml around lines 3 to 7, the workflow does not
declare GITHUB_TOKEN permissions which can cause 403 when adding labels; add a
top-level permissions entry granting at minimum pull-requests: write (or the
specific write permission the label action requires) so the reused workflow can
add labels successfully, e.g., include a permissions block with pull-requests:
write (and any additional minimal write perms required by the label action).

call-reusable-labeler:
uses: 33-Auto/.github/.github/workflows/reusable-label-on-approve.yml@main

# with 키워드를 사용하여 input 값을 전달
with:
# github.event.pull_request.number를 통해 현재 PR 번호를 전달
pr-number: ${{ github.event.pull_request.number }}

secrets:
# ORGANIZATION_TOKEN 전달
ORGANIZATION_TOKEN: ${{ secrets.ORGANIZATION_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/pr-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: PR Reminder

on:
schedule:
- cron: "0 9,14,17 * * *" # 아침 9시, 오후 2시, 오후 5시에 실행
workflow_dispatch:

jobs:
call-reusable-reminder:
uses: 33-Auto/.github/.github/workflows/reusable-pr-reminder.yml@main
secrets:
# 해당 시크릿은 조직의 시크릿에 저장되어 있음
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading