API ReferenceGit
Create a git trigger
Create a git trigger for the given repository.
Path Parameters
repo*string
The repository id
Format
uuidRequest Body
application/json
trigger*
action*
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/trigger" \ -H "Content-Type: application/json" \ -d '{ "trigger": { "event": "push" }, "action": { "endpoint": "string", "action": "webhook" } }'{
"triggerId": "b89c9c0a-30c6-475a-b185-93813e22ffcf"
}{
"message": "string"
}{
"message": "string"
}{
"message": "string"
}{
"message": "string"
}Compare two commits
Get the comparison between two commits in a repository
Create a repository
Create a repository. Once the repository is created, it will also be created on the Git server. The repository name must be unique within your account. Once created, you can then push your code to this repository. The repo will be available at `git.freestyle.sh/{repo-id}`