Skip to content

Commit 045774d

Browse files
committed
use GitHub App
1 parent 39f012f commit 045774d

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

โ€Ž.github/workflows/check-project-scheduled.yamlโ€Ž

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ name: Project Week Check (Scheduled) ๐Ÿ””
33
on:
44
schedule:
55
# ๋งค์ผ ์˜ค์ „ 10์‹œ, ์˜คํ›„ 6์‹œ (KST ๊ธฐ์ค€, UTC๋กœ๋Š” 1์‹œ, 9์‹œ)
6-
- cron: '0 1,9 * * *'
7-
workflow_dispatch: # ์ˆ˜๋™ ์‹คํ–‰
6+
- cron: "0 1,9 * * *"
7+
pull_request:
8+
types: [opened, reopened, synchronize, edited, labeled, unlabeled]
9+
workflow_dispatch: # ์ˆ˜๋™ ์‹คํ–‰
810

911
jobs:
1012
check-all-prs:
1113
runs-on: ubuntu-latest
1214
permissions:
1315
contents: read
14-
pull-requests: write # ๋Œ“๊ธ€ ์ž‘์„ฑ ๊ถŒํ•œ
16+
pull-requests: write # ๋Œ“๊ธ€ ์ž‘์„ฑ ๊ถŒํ•œ
1517

1618
steps:
1719
- name: Get all open PRs
@@ -73,22 +75,9 @@ jobs:
7375
7476
if [ -z "$existing_comment" ]; then
7577
# ์ƒˆ ๋Œ“๊ธ€ ์ž‘์„ฑ
76-
COMMENT_BODY="## โš ๏ธ Week ์„ค์ •์ด ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค
77-
78-
ํ”„๋กœ์ ํŠธ์—์„œ Week๋ฅผ ์„ค์ •ํ•ด์ฃผ์„ธ์š”!
79-
80-
### ์„ค์ • ๋ฐฉ๋ฒ•
81-
1. PR ์šฐ์ธก์˜ \`Projects\` ์„น์…˜์—์„œ \`๋ฆฌํŠธ์ฝ”๋“œ ์Šคํ„ฐ๋””\` ์˜† ๋“œ๋กญ๋‹ค์šด(โ–ผ) ํด๋ฆญ
82-
2. ํ˜„์žฌ ์ฃผ์ฐจ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š” (์˜ˆ: \`Week 14(current)\` ๋˜๋Š” \`Week 14\`)
83-
84-
๐Ÿ“š [์ž์„ธํ•œ ๊ฐ€์ด๋“œ ๋ณด๊ธฐ](https://github.com/DaleStudy/leetcode-study/wiki/%EB%8B%B5%EC%95%88-%EC%A0%9C%EC%B6%9C-%EA%B0%80%EC%9D%B4%EB%93%9C#pr-%EC%9E%91%EC%84%B1%EB%B2%95)
85-
86-
---
87-
๐Ÿค– ์ด ๋Œ“๊ธ€์€ GitHub App์„ ํ†ตํ•ด ์ž๋™์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค."
88-
8978
gh pr comment $pr_number \
9079
--repo ${{ github.repository }} \
91-
--body "$COMMENT_BODY"
80+
--body $'## โš ๏ธ Week ์„ค์ •์ด ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค\n\nํ”„๋กœ์ ํŠธ์—์„œ Week๋ฅผ ์„ค์ •ํ•ด์ฃผ์„ธ์š”!\n\n### ์„ค์ • ๋ฐฉ๋ฒ•\n1. PR ์šฐ์ธก์˜ `Projects` ์„น์…˜์—์„œ `๋ฆฌํŠธ์ฝ”๋“œ ์Šคํ„ฐ๋””` ์˜† ๋“œ๋กญ๋‹ค์šด(โ–ผ) ํด๋ฆญ\n2. ํ˜„์žฌ ์ฃผ์ฐจ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š” (์˜ˆ: `Week 14(current)` ๋˜๋Š” `Week 14`)\n\n๐Ÿ“š [์ž์„ธํ•œ ๊ฐ€์ด๋“œ ๋ณด๊ธฐ](https://github.com/DaleStudy/leetcode-study/wiki/%EB%8B%B5%EC%95%88-%EC%A0%9C%EC%B6%9C-%EA%B0%80%EC%9D%B4%EB%93%9C#pr-%EC%9E%91%EC%84%B1%EB%B2%95)\n\n---\n๐Ÿค– ์ด ๋Œ“๊ธ€์€ GitHub App์„ ํ†ตํ•ด ์ž๋™์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.'
9281
echo " โœ… ๋Œ“๊ธ€ ์ž‘์„ฑ ์™„๋ฃŒ"
9382
else
9483
echo " โ„น๏ธ ์ด๋ฏธ ์•Œ๋ฆผ ๋Œ“๊ธ€์ด ์žˆ์Œ - ์Šคํ‚ต"

0 commit comments

Comments
ย (0)