git-source-settings.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. export interface IGitSourceSettings {
  2. /**
  3. * The location on disk where the repository will be placed
  4. */
  5. repositoryPath: string
  6. /**
  7. * The repository owner
  8. */
  9. repositoryOwner: string
  10. /**
  11. * The repository name
  12. */
  13. repositoryName: string
  14. /**
  15. * The ref to fetch
  16. */
  17. ref: string
  18. /**
  19. * The commit to checkout
  20. */
  21. commit: string
  22. /**
  23. * Indicates whether to clean the repository
  24. */
  25. clean: boolean
  26. /**
  27. * The array of folders to make the sparse checkout
  28. */
  29. sparseCheckout: string[]
  30. /**
  31. * Indicates whether to use cone mode in the sparse checkout (if any)
  32. */
  33. sparseCheckoutConeMode: boolean
  34. /**
  35. * The depth when fetching
  36. */
  37. fetchDepth: number
  38. /**
  39. * Fetch tags, even if fetchDepth > 0 (default: false)
  40. */
  41. fetchTags: boolean
  42. /**
  43. * Indicates whether to use the --progress option when fetching
  44. */
  45. showProgress: boolean
  46. /**
  47. * Indicates whether to fetch LFS objects
  48. */
  49. lfs: boolean
  50. /**
  51. * Indicates whether to checkout submodules
  52. */
  53. submodules: boolean
  54. /**
  55. * Indicates whether to recursively checkout submodules
  56. */
  57. nestedSubmodules: boolean
  58. /**
  59. * The auth token to use when fetching the repository
  60. */
  61. authToken: string
  62. /**
  63. * The SSH key to configure
  64. */
  65. sshKey: string
  66. /**
  67. * Additional SSH known hosts
  68. */
  69. sshKnownHosts: string
  70. /**
  71. * Indicates whether the server must be a known host
  72. */
  73. sshStrict: boolean
  74. /**
  75. * Indicates whether to persist the credentials on disk to enable scripting authenticated git commands
  76. */
  77. persistCredentials: boolean
  78. /**
  79. * Organization ID for the currently running workflow (used for auth settings)
  80. */
  81. workflowOrganizationId: number | undefined
  82. /**
  83. * Indicates whether to add repositoryPath as safe.directory in git global config
  84. */
  85. setSafeDirectory: boolean
  86. /**
  87. * User override on the GitHub Server/Host URL that hosts the repository to be cloned
  88. */
  89. githubServerUrl: string | undefined
  90. }