# 关于生成集成

可以生成集成以扩展 GitHub功能。

集成是扩展 GitHub功能的工具。 集成可以在 GitHub 上执行操作，例如创建议题、对拉取请求进行评论以及管理项目。 他们还可以根据GitHub上发生的事件，在GitHub之外执行操作。 例如，当在 GitHub 上创建问题时，集成可以在 Slack 上发布消息。

许多集成是 GitHub Apps、GitHub Actions 工作流，或用于 GitHub Actions 工作流的自定义操作。

* GitHub Apps 是在应用所有者的服务器或用户设备上运行的集成。 有关详细信息，请参阅“[关于创建GitHub应用](/zh/enterprise-server@3.22/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps)”。
* GitHub Actions 工作流是在特定事件发生 GitHub时运行的工作流。 有关详细信息，请参阅“[了解GitHub Actions](/zh/enterprise-server@3.22/actions/get-started/understand-github-actions)”。
* 自定义操作是可由 GitHub Actions 工作流执行的代码。 有关详细信息，请参阅“[关于自定义操作](/zh/enterprise-server@3.22/actions/concepts/workflows-and-actions/custom-actions)”。

您的集成可以使用 GitHub 的 API 获取数据，并对 GitHub 上的数据进行更改。
GitHub 具有 REST API 和 GraphQL API。 有关详细信息，请参见:

* [比较GitHub的 REST API 和 GraphQL API](/zh/enterprise-server@3.22/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api)
* [GitHub REST API 文档](/zh/enterprise-server@3.22/rest)
* [GitHub GraphQL API 文档](/zh/enterprise-server@3.22/graphql)

您的集成可使用 webhook 来获知何时在 GitHub 上发生特定事件。 有关详细信息，请参阅“[关于 网络钩子](/zh/enterprise-server@3.22/webhooks/about-webhooks)”。