Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/chore-template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Chore Template
about: build와 관련된 부분, 패키지 매니저 설정 등 여러가지 production code와 무관한 부분
title: "[CHORE] "
title: '[CHORE] '
labels: chore
assignees: ''

---

### ✨ Description

# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/deploy-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ labels: deploy
assignees: ''
---

### ✨ Description
# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/design-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Design Template
about: 디자인 변경
title: '[DESIGN] '
labels: design
assignees: ''
---

# ✨ Description

# ✨ Time (마감 기한)
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/docs-template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Docs Template
about: 문서화
title: "[DOCS] "
title: '[DOCS] '
labels: docs
assignees: ''

---

### ✨ Description

# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/feat-template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Feat Template
about: 기능 추가
title: "[FEAT] "
title: '[FEAT] '
labels: feat
assignees: ''

---

### ✨ Description

# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/fix-template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: Fix Template
about: 기능 수정
title: "[FIX] "
title: '[FIX] '
labels: fix
assignees: ''

---

### ✨ Description

# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
8 changes: 3 additions & 5 deletions .github/ISSUE_TEMPLATE/hotfix-template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: HOTFIX Template
about: 긴급 수정
title: "[HOTFIX] "
title: '[HOTFIX] '
labels: hotfix
assignees: ''

---

### ✨ Description

# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
10 changes: 4 additions & 6 deletions .github/ISSUE_TEMPLATE/refactor-template.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
name: "Refactor Template"
name: 'Refactor Template'
about: '리팩토링 '
title: "[REFACTOR] "
title: '[REFACTOR] '
labels: refactor
assignees: ''

---

### ✨ Description

# ✨ Description

### ✨ Time(마감기한)
# ✨ Time (마감 기한)
13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE/ui-template.md

This file was deleted.

9 changes: 5 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## 🚩 연관 이슈
# 🚩 연관 이슈

closed #

## 📝 작업 내용
# 📝 작업 내용

## 🏞️ 스크린샷 (선택)
# 🏞️ 스크린샷 (선택)

## 🗣️ 리뷰 요구사항 (선택)
# 🗣️ 리뷰 요구사항 (선택)
24 changes: 0 additions & 24 deletions .github/workflows/Auto_Issue_Setting.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/Auto_PR_Setting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

jobs:
assign-issue:
# Works only if target branch name is not 'main'
if: github.base_ref != 'main'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -43,7 +45,7 @@ jobs:
LABELS=$(echo "${ISSUE_DATA}" | jq -r '.labels | join(",")')

# 팀 멤버 목록을 정의하고, 할당되지 않은 멤버를 리뷰어로 추가.
TEAM_MEMBERS=("jaeml06" "i-meant-to-be" "eunwoo-levi")
TEAM_MEMBERS=("jaeml06" "i-meant-to-be" "eunwoo-levi" "katie424")
IFS=', ' read -r -a ASSIGNEE_ARRAY <<< "${ASSIGNEES}"
REVIEWERS=()
for MEMBER in "${TEAM_MEMBERS[@]}"; do
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/Issue_Noti.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Discord notification on new issues

on:
issues:
types: [opened, reopened]

jobs:
notify-discord-issue:
runs-on: ubuntu-latest

steps:
- name: Set Environment Variables
env:
TITLE: ${{ github.event.issue.title }}
run: |
echo "AVATAR_URL=${{ secrets.DISCORD_AVATAR_URL }}" >> $GITHUB_ENV
echo "COMMENT_BODY=${{ github.event.issue.body }}" >> $GITHUB_ENV
echo "USERNAME=망곰" >> $GITHUB_ENV
echo "WEB_HOOK=${{ secrets.DISCORD_WEB_HOOK }}" >> $GITHUB_ENV

- name: Notify Discord
env:
COMMENT_BODY: ${{ env.COMMENT_BODY }}
AUTHOR_NAME: ${{ github.event.issue.user.login }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_TITLE: ${{ github.event.issue.title }}
AUTHOR_URL: ${{ github.event.issue.user.avatar_url }}
AVATAR_URL: ${{ env.AVATAR_URL }}
USERNAME: ${{ env.USERNAME }}
WEB_HOOK: ${{ env.WEB_HOOK }}
run: |
if [ -n "$WEB_HOOK" ]; then
JSON_PAYLOAD=$(jq -n \
--arg comment_body "$COMMENT_BODY" \
--arg username "$USERNAME" \
--arg avatar_url "$AVATAR_URL" \
--arg issue_title "$ISSUE_TITLE" \
--arg issue_url "$ISSUE_URL" \
--arg author_url "$AUTHOR_URL" \
--arg author_name "$AUTHOR_NAME" \
--arg color "5814783" \
--arg timestamp "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
'{
username: $username,
avatar_url: $avatar_url,
embeds: [{
title: $issue_title,
url: $issue_url,
author: {
name: $author_name,
icon_url: $author_url
},
description: $comment_body,
color: ($color | tonumber),
timestamp: $timestamp
}]
}')

curl -X POST -H "Content-Type: application/json" -d "$JSON_PAYLOAD" "$WEB_HOOK"
else
echo "No matching title found. Skipping notification."
fi
24 changes: 10 additions & 14 deletions .github/workflows/PR_Comment_Noti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,45 @@ jobs:

steps:
- name: Set Environment Variables
env:
TITLE: ${{ github.event.issue.title }}
run: |
echo "AVATAR_URL=${{ secrets.DISCORD_AVATAR_URL }}" >> $GITHUB_ENV
echo "COMMENT_BODY= 질문있어요~~" >> $GITHUB_ENV
echo "COMMENT_BODY=$(echo '${{ github.event.comment.body }}' | jq -Rs .)" >> $GITHUB_ENV
echo "USERNAME=망곰" >> $GITHUB_ENV
echo "WEB_HOOK=${{ secrets.DISCORD_WEB_HOOK }}" >> $GITHUB_ENV

- name: Notify Discord
env:
COMMENT_BODY: ${{ env.COMMENT_BODY }}
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
AUTHOR_NAME: ${{ github.event.comment.user.login }}
PR_URL: ${{ github.event.issue.pull_request.html_url }}
PR_TITLE: ${{ github.event.issue.title }}
AUTHOR_URL: ${{ github.event.comment.user.avatar_url }}
AVATAR_URL: ${{ env.AVATAR_URL }}
CONTENT: ${{ github.event.comment.body }}
USERNAME: ${{ env.USERNAME }}
WEB_HOOK: ${{ env.WEB_HOOK }}
run: |
if [ -n "$WEB_HOOK" ]; then
JSON_PAYLOAD=$(jq -n \
--arg content "$CONTENT" \
--arg description "$COMMENT_BODY" \
--arg comment_body "$COMMENT_BODY" \
--arg username "$USERNAME" \
--arg avatar_url "$AVATAR_URL" \
--arg title "Pull Request Command" \
--arg url "$PR_URL" \
--arg pr_title "$PR_TITLE" \
--arg pr_url "$PR_URL" \
--arg author_url "$AUTHOR_URL" \
--arg author_name "$COMMENT_AUTHOR" \
--arg author_name "$AUTHOR_NAME" \
--arg color "5814783" \
--arg timestamp "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
'{
content: $content,
username: $username,
avatar_url: $avatar_url,
embeds: [{
title: $title,
url: $url,
title: $pr_title,
url: $pr_url,
author: {
name: $author_name,
icon_url: $author_url
},
description: $description,
description: $comment_body,
color: ($color | tonumber),
timestamp: $timestamp
}]
Expand Down
Loading
Loading