scripts_list_r_git {civis}R Documentation

Get the git metadata attached to an item

Description

Get the git metadata attached to an item

Usage

scripts_list_r_git(id)

Arguments

id

integer required. The ID of the file.

Value

A list containing the following elements:

gitRef

string, 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.

gitBranch

string, The git branch that the file is on.

gitPath

string, The path of the file in the repository.

gitRepo

list, A list containing the following elements:

  • id integer, The ID for this git repository.

  • repoUrl string, The URL for this git repository.

  • createdAt string,

  • updatedAt string,

gitRefType

string, Specifies if the file is versioned by branch or tag.

pullFromGit

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


[Package civis version 3.1.2 Index]