Setup GitHub Integration¶
CodeMC supports integrating with GitHub for features such as creating new builds on commits or return a build status on Pull requests, commits, etc.
This page tries to explain how you can enable such features.
Setup Automatic Builds¶
CodeMC allows to create new builds whenever commits are done to a connected GitHub Repository.
The setup can be done either for an entire Organization, meaning that it applies to all repositories hosted on that Organization, or for a specific repository alone. The steps are the same, except for where you access the settings:
- Go to your Organization/Repository and press the Settings Tab.
- Click Webhooks on the left sidebar.
- Click the Add Webhook Button on the top-right of the page.
- Add
https://ci.codemc.io/github-webhook/
as the value of Payload URL. - For Which events would you like to trigger this webhook? either leave it at "Just the
push
event." or select "Let me select individual events." and select the following options:Pull requests
Pushes
Repositories
- Save your Webhook by clicking the Add webhook button at the bottom.
Setup a Commit Status¶
Work in Progress
This section is currently being reworked and not available right now.