mc-ext-github
v0.0.1
Published
Mission Control Extension for working with GitHub, including cloning repos, handling webhooks, and the status API.
Downloads
14
Readme
Mission Control GitHub Extension
This is an extension for Mission Control to use GitHub webhooks, and other features (in the future).
Setup
Add GITHUB_WEBHOOK_SECRET=a_securely_generated_random_string
(and input a random key which will be used later to configure webhooks)
A quick method for generating an alphanumeric string:
openssl rand -hex 24
Configuring a webhook with GitHub
Go to your repository on GitHub.
Click on "Settings".
Click on "Webhooks & services"
Click on Add Webhook
Enter the URL of your Mission Control with the extension webhook endpoint included
http://your-host-name/ext/mc/github/webhooks/execute-pipeline/1234
. Replace1234
with your pipeline configuration id to trigger. (Note: It is highly recommended to use HTTPS.)Enter the
GITHUB_WEBHOOK_SECRET
from your .env file.Choose "Let me select individual events".
Check the events that you want to trigger a build. You may want to check "push" and "pull request".
Click "Add webhook"