Srophé Application : Documentation

GitHub webhooks

The Srophe application provides a script for syncing both data and code repositories to your GitHub repository, making it easier for distributed contributions to be pushed to the website as they are made on GitHub.


github-xq library module:

Use of script

Edit modules/git-sync.xql to add details for your application and your GitHub repository. (Do not save these details to a GitHub repository)

githubxq:execute-webhook($data as item()*, 
    $application-path as xs:string, 
    $repo as xs:string, 
    $branch as xs:string?, 
    $key as xs:string, 
    $rateLimitToken as xs:string?)



let $data := request:get-data()

Note: The XQuery responding to GitHub must be run with elevated privileges in order to save and edit the files in your application.

Example: sm:chmod(xs:anyURI(xs:anyURI('YOUR-ENDPOINT.xql'), "rwsr-xr-x"))

Set up GitHub webhooks

Read about webhooks here: []

Webhook settings: