---
title: "GitHub Pull Request 与检查"
description: "gitā 将 GitHub Pull Request、审查和检查显示在对应的提交上，并通过你已有的 gh 命令让你在应用内直接完成审查与合并。"
url: https://getgita.app/zh-hans/features/github
lang: zh-Hans
---

# 来自 GitHub 的 Pull Request 与检查

gitā 通过你已登录的 gh 命令读取 GitHub 数据。无需粘贴令牌，也无需额外授权。

A live copy of the app is on the page: https://getgita.app/zh-hans/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-hans/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
