TicketWave Logo
🔐 Authentication

GitHub

使用 GitHub Authentication 步驟,在票單中驗證成員的 GitHub 帳號。

GitHub 驗證步驟

GitHub Authentication 步驟會將 Discord 成員連結到已驗證的 GitHub 帳號——非常適合開發者社群、開源專案,以及任何販售或支援程式碼的人。

GitHub Authentication Step

這種步驟類型是 premium 功能。你不需要自行建立 GitHub App 或 OAuth 應用程式。

適合哪些人使用

  • 想把錯誤回報對應到真實 GitHub 使用者的開源專案
  • 會給贊助者或貢獻者不同支援等級的團隊
  • 在購買後提供私人儲存庫存取權的賣家
  • 經營「已驗證開發者」身分組的社群

會儲存哪些資料

FieldExampleDescription
github_id1234567永久不變的 GitHub 使用者數字 ID
github_usernameoctocat驗證當下的 GitHub 登入名稱
Ticket Summary
> GitHub Verification: `octocat` (`1234567`)

GitHub 使用者名稱可以更改,甚至可能被其他人接手。數字 ID 永遠不會變——只要是長期儲存的資料,就應該使用它。

成員會看到什麼

這個步驟會顯示一個帶有 GitHub 標誌的 Login 按鈕。

GitHub 的授權頁面會開啟,並要求授予 TicketWave read:user 權限範圍。

成員授權後,GitHub 會將他們導回,TicketWave 會讀取公開個人資料。

確認頁面會出現,票單接著進入下一個步驟。

GitHub Success

read:user 是用於個人資料的 唯讀 權限範圍。TicketWave 無法讀取私人儲存庫、無法推送程式碼,也無法代表成員執行操作。

設定步驟

開啟 Ticket Steps 模組

Server dashboard → SettingsTicket StepsConfigure

建立步驟

FieldSuggestion
Step TitleConnect your GitHub account
Step DescriptionWe use your GitHub account to link this ticket to your issues and contributions.
Step TypeGitHub Authentication
Required Step視情況而定——錯誤回報需要,一般問題則不需要

在適合的情況下將它設為可選

Required Step 關閉後,TicketWave 會新增一個 ⏭️ Skip 按鈕。沒有 GitHub 帳號的成員仍然可以開啟票單,而摘要會顯示 ⏭️ Skipped,讓工作人員知道為什麼這個欄位是空的。

測試它

開一張票單,完整跑一次流程。

疑難排解

ProblemCauseFix
The step does not appearPremium inactive or step above the free limitCheck the Premium page and your step order
"Token invalid or expired"More than 10 minutes passed🔁 Renew Token, then Login again
GitHub shows "already authorized" and skips the screenThe member authorized TicketWave beforePerfectly normal — the login just goes faster
The member does not want to authorizeNothing is storedMake the step optional so they can skip it

下一步

How is this guide?