Connect your Vanilla community to GitHub so authorized staff can create GitHub issues from discussions and comments.
Set up the GitHub integration
Before you begin, make sure you can manage add-on settings in Vanilla and administer the GitHub account or organization that will own the OAuth app. Have the repositories you want staff to use ready.
- In GitHub, create an OAuth app. For the authorization callback URL, use your community’s full public URL followed by /profile/githubconnect. For example, if your community URL is https://community.example.com/forum, use https://community.example.com/forum/profile/githubconnect.
- If you plan to use the optional shared Global Login connection, add a second callback URL using your community’s full public URL followed by /profile/githubconnect/globallogin/.
- Copy the OAuth app’s Client ID and generate a Client Secret.
- In the Vanilla Dashboard, go to Settings > Addons > Addons, enable GitHub, and open its settings.
- Enter the Client ID and Secret. Under Repositories, enter each repository on a separate line in owner/repository format.
- Select Save.
The GitHub account used for a connection must have access to the repositories you configure.
Connect a shared GitHub account (optional)
To let staff use one shared GitHub connection, select Enable in the Global Login section. After the settings are saved, select Connect and authorize the GitHub account you want to share. If a staff member already has an individual GitHub connection, Vanilla uses that connection for the staff member instead of the shared one.
Create a GitHub issue
Staff who can use the GitHub action can create an issue from a discussion or comment:
- Open the discussion or comment options menu.
- Select GitHub - Create Issue.
- Choose a repository, review the issue title and body, and select Create Issue.
Vanilla creates the issue in the selected GitHub repository and displays an issue information panel on the discussion or comment for staff.