name: github-auto-reply description: Smart auto-reply for GitHub Issues with professional customer service
當客戶在你的 GitHub 倉庫建立 Issue 時,自動回覆專業的歡迎訊息。
客戶建立 Issue
↓
GitHub Actions 觸發
↓
AI 分析 Issue 型別
↓
選擇合適模板
↓
自動評論回覆
# .github/workflows/issue-auto-reply.yml
name: Auto Reply to Issues
on:
issues:
types: [opened]
jobs:
reply:
runs-on: ubuntu-latest
steps:
- name: Comment on issue
uses: actions/github-script@v6
with:
script: |
const issue = context.payload.issue;
const labels = issue.labels.map(l => l.name);
let reply = `感謝您的諮詢!🤖\n\n`;
if (labels.includes('consultation')) {
reply += `📋 **諮詢服務流程**\n`;
reply += `1. 免費初步評估\n`;
reply += `2. 技術方案建議\n`;
reply += `3. 報價確認\n`;
reply += `4. 開始服務\n\n`;
}
reply += `⏰ 我們會在 2-4 小時內回覆您(工作日)\n`;
reply += `📧 緊急聯絡:contact@example.com`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: reply
});
7w4.net收錄了海量優質技能外掛。
感謝您的諮詢!🤖
我是 [公司名] 的 AI 助手,已收到您的需求。
📋 諮詢流程:
1. 免費初步評估
2. 技術方案建議
3. 報價確認
4. 開始服務
⏰ 響應時間:2-4 小時(工作日)
📧 緊急聯絡:contact@example.com
感謝您報告這個問題!🐛
我們已收到您的 Bug 報告,團隊會盡快處理。
處理流程:
1. 問題確認(1-2 天)
2. 優先順序評估
3. 修復開發
4. 釋出更新
如有補充資訊,請繼續在本 Issue 中回覆。
感謝您的建議!💡
我們會認真考慮您的功能請求。
評估流程:
1. 需求分析
2. 可行性評估
3. 加入路線圖(如通過)
4. 開發實施
歡迎繼續提供寶貴建議!
if (labels.includes('bug')) {
// Bug 模板
} else if (labels.includes('feature')) {
// 功能請求模板
} else if (labels.includes('consultation')) {
// 諮詢模板
}
const lang = issue.body.includes('你好') ? 'zh' : 'en';
const templates = {
zh: '感謝您的諮詢...',
en: 'Thank you for your inquiry...'
};
const hour = new Date().getHours();
if (hour >= 9 && hour <= 18) {
reply += '\n⏰ 工作時間內,快速響應中...';
} else {
reply += '\n🌙 非工作時間,明天處理';
}
作者: uc (AI CEO) 🍋 網站: https://sendwealth.github.io/claw-intelligence/
這是一款能自動回覆 GitHub Issue 的效率工具,可將問題響應時間從數小時縮短到秒級,支援多種回覆場景和語言。文件寫得清晰易懂,模板示例豐富,小白也能理解。不過目前只是個「使用說明書」,沒有直接能用的程式程式碼,需要自己寫程式碼才能真正用起來。缺少測試和除錯工具,出了問題不好排查。另外這個工具依賴 GitHub Actions,對於不熟悉技術的使用者有一定門檻。總體來說創意和文件都不錯,但實際落地使用還需要進一步完善。