# Sending new responses to GitHub https://docs.tinydialog.com/data-connectors/github Connect a tinyDialog widget to a GitHub repository and automatically turn new responses into issues or discussions. The GitHub data connector creates an issue or discussion in a public or private repository when someone submits a new response to your widget. The post body includes the feedback and the survey name. In the post body, tinyDialog formats GitHub mentions, references such as `#123` and `GH-123`, and `github.com` links from the feedback as inline code to avoid notifications and cross-references. ## Connect a widget to GitHub To connect or sync a repository, you need admin access to that repository on GitHub. 1. In the tinyDialog dashboard, open the survey for your widget and go to **Setup & Connections**. 2. Click **Create Data-Connector** and select **GitHub**. 3. If the repository is already listed under **GitHub Repository**, select it. To add a repository, click **Connect GitHub** or, if repositories are already connected, open **Manage access** and select **Add GitHub Access**. Install the tinyDialog GitHub App or update its repository access, then authorize the connection. Select the repository when you return to tinyDialog. 4. Under **Delivery Destination**, select **Issue** or **Discussion**. Make sure the corresponding feature is enabled in the repository’s GitHub settings. For **Discussion**, select a category under **Discussion Category**. 5. Optionally enter a **Display Name** to identify the connector in tinyDialog. Open [**Advanced Settings**](https://docs.tinydialog.com/data-connectors/github#customize-the-label-and-title) to customize the label or title. 6. Click **Create Connector**. The repository picker marks public repositories with a **Public** badge. Anyone on GitHub can see feedback sent to a public repository, including any personal details respondents type. ### GitHub Discussions To send responses to GitHub Discussions, open the repository’s **Settings** on GitHub and enable **Discussions** under **Features** ([Enable Discussions on GitHub](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/enabling-or-disabling-github-discussions-for-a-repository)). When you select a repository and choose **Discussion**, tinyDialog loads the available categories. If you just enabled Discussions or added a category on GitHub, click **Refresh** next to **Discussion Category**. If Discussions is turned off or the selected category is deleted on GitHub, **Edit Connector** shows a warning. Enable Discussions and refresh the list, choose an available category if needed, or pause the connector. ### Sync existing installations If the tinyDialog GitHub App is already installed and a repository is missing from the list, open **Manage access** next to **GitHub Repository** and select **Sync Existing**. If the dialog shows **Connect GitHub** or **Reconnect GitHub**, click **Sync Existing** beside it. Authorize with GitHub to link repositories you administer from active installations and remove connections the app can no longer access. - If GitHub asks you to request installation approval, wait for a GitHub organization owner to approve the request. Then click **Sync Existing** to link the approved repositories you administer. - tinyDialog automatically updates repository names and visibility when they change on GitHub. It removes access when the app is uninstalled or suspended, or when a repository is removed from the installation, transferred, or deleted. To link a new repository or restore access, authorize the connection through tinyDialog. ### Disconnect a repository In a GitHub connector dialog, select the repository under **GitHub Repository**. Open **Manage access**, select **Disconnect Repository**, and click **Confirm Disconnect**. Disconnecting a repository stops delivery from every connector that uses it. The GitHub App stays installed. ### Restore repository access If an enabled connector loses access to its repository, it stops delivering new responses and shows an **Access lost** badge. Open **Edit Connector** to see which repository is unavailable. 1. If the app lost access on GitHub, restore it there. Use **Reconnect GitHub** to install the app again or update which repositories it can access. 2. Once the app has access on GitHub, use **Sync Existing** to restore the connection. Sign in with a GitHub account that has admin access to the repository. If the repository is under a new installation, select it again and click **Save Connector**. You can also select a different connected repository and save, or pause the connector with the **Enabled** switch. ## Customize the label and title - **GitHub Label (optional)** applies an existing repository label, such as `tinydialog-submitted`, to each issue or discussion the connector creates. - **Title Template (optional)** sets the title. Use `%USER_MESSAGE%` to insert the widget response. For example, `[TinyDialog] %USER_MESSAGE%` turns `The search button is broken` into `[TinyDialog] The search button is broken`. By default, the connector uses the response as the title. tinyDialog trims the resulting title to 256 characters. ## Use the same repository for multiple widgets Create a connector in **Setup & Connections** for each widget and select the same repository. Each connector can have its own destination, discussion category, label, and title template. For example, a bug report widget can create issues labeled `bug`, while a feature request widget starts discussions in the Ideas category. ## Edit or pause a connector In **Setup & Connections**, click **Edit Connector** next to any connector (GitHub, Webhook, or E-Mail) to update its configuration. To temporarily pause a connector without deleting it, turn off the **Enabled** switch and click **Save Connector**. Disabled connectors appear muted at the bottom of the list with a **Disabled** badge and are not triggered by new widget responses. You can still run manual tests with **Test Connector** while a connector is disabled. ## Test the connector In **Setup & Connections**, click **Test Connector** in the connector list. Open the selected repository to confirm that the sample issue or discussion has the title and label you expect. If the test fails, open **Trigger History** in tinyDialog to see the delivery error. Use **Edit Connector** to update the settings and test again.