definition.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. key: git
  2. title: Git
  3. description: Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people.
  4. author: requarks.io
  5. logo: https://static.requarks.io/logo/git-alt.svg
  6. website: https://git-scm.com/
  7. isAvailable: true
  8. supportedModes:
  9. - sync
  10. - push
  11. - pull
  12. defaultMode: sync
  13. schedule: PT5M
  14. props:
  15. authType:
  16. type: String
  17. default: 'ssh'
  18. title: Authentication Type
  19. hint: Use SSH for maximum security.
  20. enum:
  21. - 'basic'
  22. - 'ssh'
  23. order: 1
  24. repoUrl:
  25. type: String
  26. title: Repository URI
  27. hint: Git-compliant URI (e.g. git@github.com:org/repo.git for ssh, https://github.com/org/repo.git for basic)
  28. order: 2
  29. branch:
  30. type: String
  31. default: 'master'
  32. hint: The branch to use during pull / push
  33. order: 3
  34. sshPrivateKeyMode:
  35. type: String
  36. title: SSH Private Key Mode
  37. hint: SSH Authentication Only - The mode to use to load the private key. Fill in the corresponding field below.
  38. order: 11
  39. default: 'path'
  40. enum:
  41. - 'path'
  42. - 'contents'
  43. sshPrivateKeyPath:
  44. type: String
  45. title: A - SSH Private Key Path
  46. hint: SSH Authentication Only - Absolute path to the key. The key must NOT be passphrase-protected. Mode must be set to path to use this option.
  47. order: 12
  48. sshPrivateKeyContent:
  49. type: String
  50. title: B - SSH Private Key Contents
  51. hint: SSH Authentication Only - Paste the contents of the private key. The key must NOT be passphrase-protected. Mode must be set to contents to use this option.
  52. multiline: true
  53. order: 13
  54. verifySSL:
  55. type: Boolean
  56. default: true
  57. title: Verify SSL Certificate
  58. hint: Some hosts requires SSL certificate checking to be disabled. Leave enabled for proper security.
  59. order: 14
  60. basicUsername:
  61. type: String
  62. title: Username
  63. hint: Basic Authentication Only
  64. order: 20
  65. basicPassword:
  66. type: String
  67. title: Password / PAT
  68. hint: Basic Authentication Only
  69. order: 21
  70. defaultEmail:
  71. type: String
  72. title: Default Author Email
  73. default: 'name@company.com'
  74. hint: 'Used as fallback in case the author of the change is not present.'
  75. order: 22
  76. defaultName:
  77. type: String
  78. title: Default Author Name
  79. default: 'John Smith'
  80. hint: 'Used as fallback in case the author of the change is not present.'
  81. order: 23
  82. localRepoPath:
  83. type: String
  84. title: Local Repository Path
  85. default: './data/repo'
  86. hint: 'Path where the local git repository will be created.'
  87. order: 30
  88. gitBinaryPath:
  89. type: String
  90. title: Git Binary Path
  91. default: ''
  92. hint: Optional - Absolute path to the Git binary, when not available in PATH. Leave empty to use the default PATH location (recommended).
  93. order: 50
  94. actions:
  95. - handler: syncUntracked
  96. label: Add Untracked Changes
  97. hint: Output all content from the DB to the local Git repository to ensure all untracked content is saved. If you enabled Git after content was created or you temporarily disabled Git, you'll want to execute this action to add the missing untracked changes.
  98. - handler: sync
  99. label: Force Sync
  100. hint: Will trigger an immediate sync operation, regardless of the current sync schedule. The sync direction is respected.
  101. - handler: importAll
  102. label: Import Everything
  103. hint: Will import all content currently in the local Git repository, regardless of the latest commit state. Useful for importing content from the remote repository created before git was enabled.