-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #412 add webhooks for instant version updates
- Loading branch information
1 parent
4486e30
commit 1243ce8
Showing
7 changed files
with
213 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Triggering version updates over HTTP | ||
|
||
To queue an update of your package you can use the `POST /api/packages/:packageName/update` endpoint. | ||
|
||
## `POST /api/packages/:packageName/update` | ||
|
||
Queues an update for the specified package. | ||
|
||
Query params: | ||
`secret`: string (optional) provide the secret as query | ||
`header`: string (optional) provide which header is used to check the secret (must start with X-) | ||
|
||
Body params: (application/x-www-form-urlencoded, multipart/form-data or application/json) | ||
`secret`: string (optional) provide the secret as body param | ||
|
||
## `POST /api/packages/:packageName/update/github` | ||
|
||
Queues an update for the specified package. Compatible with GitHub webhooks and only triggers on `create` events. Must pass secret as query param and not in GitHub webhook settings. | ||
|
||
## `POST /api/packages/:packageName/update/gitlab` | ||
|
||
Queues an update for the specified package. Compatible with GitLab webhooks and only triggers on `tag_push` events. The secret is specified in the GitLab control panel. | ||
|
||
Calls `POST /api/packages/:packageName/update` with `header=X-Gitlab-Token` query param after hook parsing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters