{"meta":{"title":"为GitHub应用编写代码","intro":"了解如何将 GitHub API 用于应用程序、持续集成以及如何使用应用程序进行构建。","product":"应用","breadcrumbs":[{"href":"/zh/apps","title":"应用"},{"href":"/zh/apps/creating-github-apps","title":"创建GitHub应用"},{"href":"/zh/apps/creating-github-apps/writing-code-for-a-github-app","title":"为GitHub应用编写代码"}],"documentType":"subcategory"},"body":"# 为GitHub应用编写代码\n\n了解如何将 GitHub API 用于应用程序、持续集成以及如何使用应用程序进行构建。\n\n## Links\n\n* [关于为GitHub应用编写代码](/zh/apps/creating-github-apps/writing-code-for-a-github-app/about-writing-code-for-a-github-app)\n\n  你需要编写代码以向 GitHub App 添加功能。\n\n* [GitHub应用构建快速入门](/zh/apps/creating-github-apps/writing-code-for-a-github-app/quickstart)\n\n  快速生成 GitHub App，用于对拉取请求进行注释。\n\n* [构建响应 Webhook 事件的GitHub应用](/zh/apps/creating-github-apps/writing-code-for-a-github-app/building-a-github-app-that-responds-to-webhook-events)\n\n  了解如何构建 GitHub App，用于发出 API 请求以响应 Webhook 事件。\n\n* [使用 GitHub 应用生成“使用 GitHub 登录”按钮](/zh/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app)\n\n  按照本教程编写 Ruby 代码，通过 Web 应用程序流为 GitHub App 生成用户访问令牌。\n\n* [使用 GitHub 应用生成 CLI](/zh/apps/creating-github-apps/writing-code-for-a-github-app/building-a-cli-with-a-github-app)\n\n  按照本教程操作，在 Ruby 中编写一个 CLI，该 CLI 通过设备流为 GitHub App 生成用户访问令牌。\n\n* [使用 GitHub 应用构建 CI 检查](/zh/apps/creating-github-apps/writing-code-for-a-github-app/building-ci-checks-with-a-github-app)\n\n  使用 GitHub App 构建运行测试的持续集成服务器和检查。"}