git-source-settings.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 depth when fetching
  28. */
  29. fetchDepth: number
  30. /**
  31. * Indicates whether to fetch LFS objects
  32. */
  33. lfs: boolean
  34. /**
  35. * Indicates whether to checkout submodules
  36. */
  37. submodules: boolean
  38. /**
  39. * Indicates whether to recursively checkout submodules
  40. */
  41. nestedSubmodules: boolean
  42. /**
  43. * The auth token to use when fetching the repository
  44. */
  45. authToken: string
  46. /**
  47. * The SSH key to configure
  48. */
  49. sshKey: string
  50. /**
  51. * Additional SSH known hosts
  52. */
  53. sshKnownHosts: string
  54. /**
  55. * Indicates whether the server must be a known host
  56. */
  57. sshStrict: boolean
  58. /**
  59. * Indicates whether to persist the credentials on disk to enable scripting authenticated git commands
  60. */
  61. persistCredentials: boolean
  62. /**
  63. * Organization ID for the currently running workflow (used for auth settings)
  64. */
  65. workflowOrganizationId: number | undefined
  66. }