LogoFreestyle
API Reference/Git

List git triggers for a repository

List git triggers for the given repository.

GET/git/v1/repo/{repo}/trigger

Path Parameters

repoRequiredstring

The repository id

Response Body

200

Success

triggersRequiredarray<object>

400

Invalid request

messageRequiredstring

403

User does not have permission to access this repository

messageRequiredstring

404

Repository does not exist

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/repo/<string>/trigger"

Success

{
  "triggers": [
    {
      "repositoryId": "5aa3e9fa-2d0a-4c21-ad54-43217e2bc9c0",
      "trigger": {
        "branches": [
          "string"
        ],
        "globs": [
          "string"
        ],
        "event": "push"
      },
      "action": {
        "endpoint": "string",
        "action": "webhook"
      },
      "managed": true,
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ]
}