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

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

Success

{
  "triggers": [
    {
      "repositoryId": "string",
      "trigger": {
        "branches": [
          "string"
        ],
        "globs": [
          "string"
        ],
        "event": "push"
      },
      "action": {
        "endpoint": "string",
        "action": "webhook"
      },
      "managed": true,
      "id": "string",
      "createdAt": 0
    }
  ]
}