Setup and Configuration
You will be redirected to GitHub to authorize the WunderGraph Hub application.
You can either select ‘All repositories’ or ‘Select repositories’ to connect the repositories you want to connect to the subgraphs in WunderGraph Hub.

Now you can navigate to any of your graphs, Click on the dropdown on the top left corner, select "Integrations" and select "Git".

Pull Request Lifecycle
The GitHub integration automatically synchronizes pull request states with your schema proposal status, ensuring your development workflow stays aligned with your schema management process. Pull Request State Management:| State | Behavior |
|---|---|
| Ready for Review | When a proposal is created in opened state, a pull request is automatically created in “ready for review” state across all mapped repositories. |
| Draft | When a proposal is moved to draft state, the pull request transitions to draft state. |
| Closed | When the proposal is closed, the corresponding pull request is also closed. |
| Reopened | If a closed proposal is reopened, the pull request is also reopened. |
How It Works
Streamlined Development Workflow
The GitHub integration eliminates the friction between schema design and implementation by automatically creating branches in your mapped repositories whenever a schema proposal is made. This means developers can immediately start implementing changes without manual setup.Automatic Pull Request Creation
When a schema proposal is created in the hub, the integration automatically:- Creates a new branch in the mapped repository
- Stores the proposed schema files directly in the branch
- Creates a pull request with the schema changes on new changes after creating a proposal or by openning the proposal.

