client.scripts.get_sql_git

A method of the Scripts endpoint.

get_sql_git(id: int) Response

Get the git metadata attached to an item

API URL: GET /scripts/sql/{id}/git

import civis
client = civis.APIClient()
response = client.scripts.get_sql_git(...)
Parameters:
idint

The ID of the item.

Returns:
civis.Response
  • git_refstr

    A git reference specifying an unambiguous version of the file. Can be a branch name, tag or the full or shortened SHA of a commit.

  • git_branchstr

    The git branch that the file is on.

  • git_pathstr

    The path of the file in the repository.

  • git_repocivis.Response
    • idint

      The ID for this git repository.

    • repo_urlstr

      The URL for this git repository.

    • created_at : str (time)

    • updated_at : str (time)

  • git_ref_typestr

    Specifies if the file is versioned by branch or tag.

  • pull_from_gitbool

    Automatically pull latest commit from git. Only works for scripts and workflows (assuming you have the feature enabled)