-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8622870
commit 908d1ff
Showing
5 changed files
with
415 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Báo Bug VitaDairy | ||
description: Dùng để thông báo, tạo các bug từ phía khách hàng sang cho development team. | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
--- | ||
### **Trước khi tạo bug, vui lòng:** | ||
- Tôi tin chắc bạn đã hiểu rõ những qui tắc báo/tiếp nhận feedback/bug. Nếu quên bạn có thể đọc nó [Tại Đây](https://github.com/VitaDairy/vtd-community/blob/main/README.md). | ||
**Cảm ơn bạn đã thông báo bug cho chúng tôi!** | ||
Đóng góp của bạn sẽ được team phát triển phản hồi trong thời gian sớm nhất. | ||
--- | ||
- type: dropdown | ||
id: priority | ||
attributes: | ||
label: Mức độ ưu tiên | ||
description: "Mức độ ưu tiên của bug, vui lòng đọc kĩ phần đầu !" | ||
options: | ||
- Low | ||
- Normal | ||
- High | ||
- Critical | ||
- Khác (Đề cập ở dưới phần chi tiết) | ||
- type: dropdown | ||
id: type | ||
attributes: | ||
label: Loại Bug | ||
description: Loại bug mà bạn đang gặp phải (Logic, UI/UX, Data, Khác) | ||
options: | ||
- Logic | ||
- UI/UX | ||
- Data | ||
- Khác (Đề cập ở dưới phần chi tiết) | ||
- type: dropdown | ||
id: environment | ||
attributes: | ||
label: Môi trường | ||
description: Môi trường mà đang gặp vấn đề? | ||
options: | ||
- Local | ||
- Develop | ||
- Staging | ||
- Product | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: relation | ||
attributes: | ||
label: Ảnh hưởng chức năng khác | ||
description: Bug này có ảnh hưởng tới chức năng khác đang chạy trên hệ thống không? | ||
options: | ||
- Không có chức năng nào khác bị ảnh hưởng | ||
- Có (Đề cập ở dưới phần chi tiết) | ||
- Không biết (Đề cập ở dưới phần chi tiết) | ||
validations: | ||
required: true | ||
- type: input | ||
id: os | ||
attributes: | ||
label: Hệ điều hành | ||
description: "Hệ điều hành nào đang gặp phải vấn đề này" | ||
placeholder: "macOS Big Sur 11.5.2, Android 13, iOS 15.04" | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Phiên bản ứng dụng bạn đang sử dựng | ||
description: "Cung cấp đầy đủ phiên bản mà bạn đang sử dụng" | ||
placeholder: "v3.2.14" | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Chi tiết bug | ||
description: Vui lòng thêm thông tin chi tiết bug, gắn thêm hình ành, video nếu có. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Các bước tái hiện. | ||
description: Vui lòng cung cấp từng bước cách tái hiện bug một cách chi tiết nhất. | ||
- type: textarea | ||
id: reference | ||
attributes: | ||
label: Các thông báo về ghi chú, dữ liệu, dẫn chứng liên quan. | ||
description: Vui lòng cung cấp các dòng log, tài khoản đăng nhập, cURL, tài liệu đính kèm để chứng minh bug tồn tại. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Auto assign issue to project | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened] | ||
|
||
env: | ||
project: Community Projects | ||
projectId: 3 | ||
|
||
jobs: | ||
issue_opened: | ||
name: issue_opened | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'issues' && github.event.action == 'opened' | ||
steps: | ||
- name: Move issue to ${{ env.project }} | ||
uses: leonsteinhaeuser/project-beta-automations@v2.2.1 | ||
with: | ||
gh_token: ${{ secrets.GH_PAT }} | ||
organization: VitaDairy | ||
project_id: ${{ env.projectId }} | ||
resource_node_id: ${{ github.event.issue.node_id }} | ||
status_value: Waiting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "Notification" | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
meme: | ||
name: Generate Message And Send To Telegram | ||
runs-on: ubuntu-latest | ||
env: | ||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }} | ||
TELEGRAM_CHAT_ID: ${{ vars.TELEGRAM_CHAT_ID }} | ||
TELEGRAM_TOPIC_ID: ${{ vars.TELEGRAM_TOPIC_ID }} # If you're using a topic in Telegram | ||
|
||
steps: | ||
- name: Generate message | ||
run: | | ||
ISSUE_TITLE="${{ github.event.issue.title }}" | ||
ISSUE_BODY="${{ github.event.issue.body }}" | ||
ISSUE_URL="${{ github.event.issue.html_url }}" | ||
ISSUE_AUTHOR="${{ github.event.issue.user.login }}" | ||
# Properly format the message for Telegram with real newlines | ||
MESSAGE=$'🆕 *Bug mới được tạo!*\n\n*Tiêu đề*: '"$ISSUE_TITLE"$'\n\n*Mô tả*:\n\n'"$ISSUE_BODY"$'\n\n*Tác giả*: '"$ISSUE_AUTHOR"$'\n\n[Xem sự cố]('"$ISSUE_URL"$')' | ||
echo "$MESSAGE" > message.txt | ||
- name: Send Message to Telegram | ||
run: | | ||
MESSAGE=$(cat message.txt) | ||
curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_TOKEN/sendMessage" \ | ||
-d chat_id=$TELEGRAM_CHAT_ID \ | ||
-d message_thread_id=$TELEGRAM_TOPIC_ID \ | ||
-d text="$MESSAGE" \ | ||
-d parse_mode="Markdown" \ | ||
-d disable_web_page_preview=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Project Issue State Sync | ||
|
||
env: | ||
project: Community Projects | ||
projectId: 3 | ||
|
||
on: | ||
schedule: | ||
- cron: 0/5 1-12 * * 1-5 | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
issue-state-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Sync issue states | ||
uses: dasmerlon/project-issue-state-sync@v2 | ||
with: | ||
github_token: ${{ secrets.GH_PAT }} | ||
owner: LibertyCarz | ||
project_number: ${{ env.projectId }} | ||
verbosity: debug | ||
closed_statuses: Done | ||
open_statuses: Wating,Todo,In Progress |
Oops, something went wrong.