Skip to content

Commit aaf5299

Browse files
committed
Allow multiples repos and GitHub Apps
Add documentation for multiple GitHub repositories support Signed-off-by: Rodrigo Nardi <[email protected]>
1 parent 6aa4ccd commit aaf5299

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,33 @@ If you need to uninstall RVM, you can do so with the following command:
209209
rvm implode
210210
```
211211

212+
# Multiple Repositories
213+
214+
## GitHub Repositories
215+
216+
The GitHub Hook Server is designed to work with multiple repositories.
217+
To add a new repository, you need to create a new entry in the `config.yml` file.
218+
The `config.yml` file is located in the root directory of the project.
219+
220+
### Example Configuration
221+
222+
```yaml
223+
github_apps:
224+
# dev
225+
- login: 1234567
226+
cert: github_private_key.pem
227+
repo: 'opensourcerouting/frr-ci-test'
228+
229+
- login: 9876543
230+
cert: github_private_key.pem
231+
repo: 'RodrigoMNardi/frr'
232+
```
233+
234+
### Configuration Parameters
235+
- `login`: The GitHub login for the application.
236+
- `cert`: The path to the private key file for the GitHub application.
237+
- `repo`: The GitHub repository to monitor.
238+
212239
# Console
213240

214241
The bin/console script allows you to interact with the application in an interactive Ruby (IRB) session.

0 commit comments

Comments
 (0)