Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.46 KB

RepositoryRep.md

File metadata and controls

38 lines (32 loc) · 1.46 KB

LaunchDarklyApi::RepositoryRep

Properties

Name Type Description Notes
name String The repository name
source_link String A URL to access the repository [optional]
commit_url_template String A template for constructing a valid URL to view the commit [optional]
hunk_url_template String A template for constructing a valid URL to view the hunk [optional]
type String The type of repository
default_branch String The repository's default branch
enabled Boolean Whether or not a repository is enabled for code reference scanning
version Integer The version of the repository's saved information
branches Array<BranchRep> An array of the repository's branches that have been scanned for code references [optional]
_links Hash<String, Object>
_access Access [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::RepositoryRep.new(
  name: LaunchDarkly-Docs,
  source_link: https://github.com/launchdarkly/LaunchDarkly-Docs,
  commit_url_template: /commit/${sha},
  hunk_url_template: /blob/${sha}/${filePath}#L${lineNumber},
  type: github,
  default_branch: main,
  enabled: true,
  version: 3,
  branches: null,
  _links: null,
  _access: null
)