com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Enabling Git Repository Notifications
You can enable Git repository notifications via the REST API as shown below:
Overview
Description | Enable notifications to be received from the Git repository. |
Resource Path |
|
HTTP Method | POST |
Request/Response Format | application/JSON |
Command format | curl -X POST -H "Content-Type: application/json" -d @'<JSON_PAYLOAD>' -k -v -u <USERNAME>:<PASSWORD> https://<PRIVATE_PAAS_HOST>:<PRIVATE_PAAS_HTTPS_PORT>/api/repo/notify
|
Example
Add the Git repository details defined in the <PRIVATE_PAAS_CARTRIDGES>/git_notifications.json
 file.
cd <PRIVATE_PAAS_CARTRIDGES>/ curl -X POST -H "Content-Type: application/json" -d @'git_notifications.json' -k -v -u admin:admin https://localhost:9443/api/repo/notify
Sample output
> POST /api/repo/notify HTTP/1.1 > Host: localhost:9443 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Content-Length: 92 > < HTTP/1.1 200 OK < Date: Mon, 19 Oct 2015 06:48:12 GMT < Content-Type: application/json < Transfer-Encoding: chunked < Server: WSO2 Carbon Server < {"status":"success","message":"Repository notification sent successfully"}
You will come across the following HTTP status codes while enabling the Git repository notifications:
HTTP status code | 200, 500 See the descriptions of the HTTP status codes here. |
Â
Â
Sample request
{ "repository":{ "url":"https://github.com/imesh/stratos-php-applications.git" } }
This REST API will be used when setting a WebHook. For more information, see Setting a WebHook at GitHub.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.