Git Configuration

Get Git Configuration

Reads the organization-wide default of every repository setting section, and the organization-wide only sections (bot-authored pull request attribution, included file extensions, active branches duration, issue start time). A repository without an override of a section follows this default

get/api/v1/git/config

Request

Response

Successful Response

Example response

{
  "settings": {
    "releases_detection": {
      "method": "tags",
      "pattern": ".*"
    },
    "draft_pull_requests": {
      "labels": [
        "wip",
        "do not merge"
      ],
      "title_pattern": "^.*wip.*$"
    },
    "default_branch": {
      "branch_name": "main"
    },
    "exclude_branches": {
      "patterns": [
        "^main$",
        "^release/.*"
      ]
    },
    "exclude_base_branches": {
      "patterns": [
        "^main$",
        "^release/.*"
      ]
    },
    "exclude_file_extensions": {
      "patterns": [
        "^main$",
        "^release/.*"
      ]
    },
    "coding_time_strategy": {
      "method": "first_commit"
    },
    "bot_pr_attribution": {
      "method": "merge_actor"
    },
    "include_file_extensions": {
      "patterns": [
        "\\.js$",
        "\\.ts$"
      ]
    },
    "active_branches_duration": {
      "days": 7
    },
    "issue_start_time": {
      "method": "last_transition"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.