---
title: "GitHub Pull Request 與檢查"
description: "gitā 將 GitHub Pull Request、審查與檢查顯示在對應的提交上，並透過你已有的 gh 指令讓你在應用程式內直接完成審查與合併。"
url: https://getgita.app/zh-hant/features/github
lang: zh-Hant
---

# 來自 GitHub 的 Pull Request 與檢查

gitā 透過你已登入的 gh 指令讀取 GitHub 資料。無需貼上權杖，也無需額外授權。

A live copy of the app is on the page: https://getgita.app/zh-hant/features/github

## 試試看

1. 按一下一筆 Pull Request 列，展開它的詳細資訊。
2. 按一下列上的 **GitHub**，查看應用程式在瀏覽器中開啟的頁面。
3. 在側邊欄開啟 **所有提交**，找到標有 **#214 Review requested** 的提交。
4. 在側邊欄開啟 **工作流程**，查看檢查執行情況。

## GitHub

- **直接顯示在提交上.** 屬於某個 Pull Request 的提交會顯示其編號以及目前狀態：草稿、開啟、請求審查、已核准、要求變更。
- **Pull Request 頁面.** 列出儲存庫的所有 Pull Request 及其分支、狀態、作者與最後更新時間。按一下即可原地展開審查意見、檢查狀態以及是否可合併。
- **就地完成程式碼審查.** 按一下「審查變更」會在 Pull Request 列下方展開對話與所有變更檔案。你可以對程式碼行發表評論、回覆討論、標記解決，並使用 Markdown 編寫。
- **核准，然後合併.** 以評論、核准或要求變更送出你的審查，然後依據儲存庫允許的方式選擇合併提交、壓縮合併或變基。
- **檢查與工作流程執行.** 每筆提交都會標明其檢查是通過、執行中還是失敗。「工作流程」頁面會列出每次執行，失敗的作業會直接顯示出錯的步驟。
- **多帳號支援.** 如果 gh 登入了多個帳號，gitā 會自動選用有權限查看該儲存庫的帳號並記住它。你也可以手動指定帳號。
- **建立 Pull Request.** 按一下「建立 PR」即可帶著目前所在分支跳轉到 GitHub 的新增 Pull Request 頁面。

## Questions, answered

### Do I have to paste a GitHub token?

No. gitā reads GitHub through the `gh` command you are already signed in to. There is no token to paste and nothing to authorise.

### Can I review and merge a pull request in gitā?

Yes. A pull request's row opens in place to show its reviews and checks. Comment on a line, reply to a thread, resolve it, send your review, then merge with a merge commit, a squash or a rebase, whichever the repository allows.

[全部功能](https://getgita.app/zh-hant/features.md)

- **下載 macOS 版:** https://github.com/rolottr/gita/releases/latest
- **在 GitHub 上查看:** https://github.com/rolottr/gita

---

Apple, macOS and Mac are trademarks of Apple Inc. Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc. Vercel is a trademark of Vercel Inc. Claude is a trademark of Anthropic, PBC. gitā is independent software and is not affiliated with any of them. 問題回報: https://github.com/rolottr/gita/issues
