> For the complete documentation index, see [llms.txt](https://docs.linuxfoundation.org/lfx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxfoundation.org/lfx/community-management/integrations/github-integration.md).

# GitHub Integration

### Connect GitHub

Follow these steps to integrate GitHub:

1. On the home page, search for the project group.
2. On the project card, click **Settings**.

<figure><img src="https://3411187760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2DCN9UgoRgMEkgnLyP-887967055%2Fuploads%2Fgit-blob-c271d54c2583d62b8966408938bd2014fa5ce019%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. On the [**MANAGE PROJEC**](https://cm.lfx.dev/admin/project-groups/210f2bd4-5a60-4031-b261-eb6dc68025dd/projects)[**TS**](https://cm.lfx.dev/admin/project-groups/210f2bd4-5a60-4031-b261-eb6dc68025dd/projects) page, scroll down to see the listed projects.
4. Select the project, and click **Manage Integrations** CTA.

<figure><img src="https://3411187760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2DCN9UgoRgMEkgnLyP-887967055%2Fuploads%2Fgit-blob-c5937fab9f5b9efb6457f8ada7ee31df7cb87924%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

5. On the **INTEGRATIONS** page, you will see all the connectors. Check the GitHub connector.
6. Click **Connect.**
7. On the pop-up window, select your organization and the repositories that you want to connect.
   1. If you are a GitHub admin, click the **choose organization to connect** CTA button.
   2. If you are not an admin, then select the next option as shown in the image.

<figure><img src="https://3411187760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2DCN9UgoRgMEkgnLyP-887967055%2Fuploads%2Fgit-blob-c6865edfc0454cc539636408f1cffca7b4715749%2FsEI67yO.gif?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Only GitHub users with admin permissions can connect to CM's GitHub integration. If you are an organization member, you will need approval from the GitHub workspace admin.
{% endhint %}

<figure><img src="https://3411187760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2DCN9UgoRgMEkgnLyP-887967055%2Fuploads%2Fgit-blob-5d0389b645ddf002860cb5de3cbb70c114f23388%2Fconnect_github.gif?alt=media" alt=""><figcaption></figcaption></figure>

7. On the GitHub page, install **LFX CM** to connect project repositories for the data integration.
8. Once you complete the integration, the data will start syncing from the connected repositories.
9. After GitHub is connected, hover over (1) to see the list of repositories.

<figure><img src="https://3411187760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2DCN9UgoRgMEkgnLyP-887967055%2Fuploads%2Fgit-blob-d4d2c37b05aa3de6b606cce703a66190bdf530d5%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

9. Add each of these repositories to their associated project under [Git](/lfx/community-management/integrations/git-integration.md) integration.

Activities Collected:

* Stars/Un-stars
* Forks
* Issues
* Pull requests
* Discussions
* Comments on issues/pull requests/discussions
* Closing of issues/pull requests/discussions


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.linuxfoundation.org/lfx/community-management/integrations/github-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
