Managing repositories
Connecting repository
GitHub
Go to the repository settings on github. Go to the Webhooks
tab. Click on the Add webhook
button. Configure
the webhook as follows:
Payload URL
-http://95.164.10.203:3000/github
Content type
-application/json
Secret
- you secret passphrase.- Select
Send me everything
on events section or setup it as you want. - Ensure that
Active
is checked.
To finish webhook setup press Add webhook
button at the bottom of the form.
Repository can be private. There is no need to publish repository.
Now we are ready to hook repository to telegram chat.
Telegram
Open telegram chat with bot. (either group or private messages)
Enter the next command to link repository to the chat:
/add REPOSITORY_NAME YOUR_SECRET_PASSPHRASE
REPOSITORY_NAME
- your repository name. For example -octocat/test-repo
.
YOUR_SECRET_PASSPHRASE
- the passphrase you entered in webhook settings.
Congratulations, you have just linked repository to the chat.
Repository connection settings
Each repository link has settings. You can enable or disable some features per link. To access these settings you can use next command:
/repository REPOSITORY_NAME
REPOSITORY_NAME
- your repository name. For example -octocat/test-repo
.
You will see the set of settings:
Track free CI
- Track CI which not connected to Pull Request.Track pushes
- Track push events.Track Pull Request CI
- Track CI connected to Pull Requests.
To enable or disable feature - tap on corresponding button.
Now link is fully set up. You can use your GitHub repository and see metrics.
Disconnecting repository
If you need to remove repository link you can use command:
/remove REPOSITORY_NAME
REPOSITORY_NAME
- your repository name. For example -octocat/test-repo
.