# 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="/files/mMzfayIuqr5HiSYZ8Pko" 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="/files/Qy7fYU2l2M3SsklDyoeX" 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="/files/DHnRqkg6P6D8IOmXJTnW" 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="/files/cuuaZxig57xAIrefOxf3" 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="/files/UxnX1isdREGyQFBVsUFY" 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
