text4u
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Git Integration
  6. |--------------------------------------------------------------------------
  7. |
  8. | Whether Statamic's git integration should be enabled. This feature
  9. | assumes that git is already installed and accessible by your
  10. | PHP process' server user. For more info, see the docs at:
  11. |
  12. | https://statamic.dev/git-automation
  13. |
  14. */
  15. 'enabled' => env('STATAMIC_GIT_ENABLED', false),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Automatically Run
  19. |--------------------------------------------------------------------------
  20. |
  21. | By default, commits are automatically queued when `Saved` or `Deleted`
  22. | events are fired. If you prefer users to manually trigger commits
  23. | using the `Git` utility interface, you may set this to `false`.
  24. |
  25. | https://statamic.dev/git-automation#committing-changes
  26. |
  27. */
  28. 'automatic' => env('STATAMIC_GIT_AUTOMATIC', true),
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Queue Connection
  32. |--------------------------------------------------------------------------
  33. |
  34. | You may choose which queue connection should be used when dispatching
  35. | commit jobs. Unless specified, the default connection will be used.
  36. |
  37. | https://statamic.dev/git-automation#queueing-commits
  38. |
  39. */
  40. 'queue_connection' => env('STATAMIC_GIT_QUEUE_CONNECTION'),
  41. /*
  42. |--------------------------------------------------------------------------
  43. | Dispatch Delay
  44. |--------------------------------------------------------------------------
  45. |
  46. | When `Saved` and `Deleted` events queue up commits, you may wish to
  47. | set a delay time in minutes for each queued job. This can allow
  48. | for more consolidated commits when you have multiple users
  49. | making simultaneous content changes to your repository.
  50. |
  51. | Note: Not supported by default `sync` queue driver.
  52. |
  53. */
  54. 'dispatch_delay' => env('STATAMIC_GIT_DISPATCH_DELAY', 0),
  55. /*
  56. |--------------------------------------------------------------------------
  57. | Git User
  58. |--------------------------------------------------------------------------
  59. |
  60. | The git user that will be used when committing changes. By default, it
  61. | will attempt to commit with the authenticated user's name and email
  62. | when possible, falling back to the below user when not available.
  63. |
  64. | https://statamic.dev/git-automation#git-user
  65. |
  66. */
  67. 'use_authenticated' => true,
  68. 'user' => [
  69. 'name' => env('STATAMIC_GIT_USER_NAME', 'Spock'),
  70. 'email' => env('STATAMIC_GIT_USER_EMAIL', 'spock@example.com'),
  71. ],
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Tracked Paths
  75. |--------------------------------------------------------------------------
  76. |
  77. | Define the tracked paths to be considered when staging changes. Default
  78. | stache and file locations are already set up for you, but feel free
  79. | to modify these paths to suit your storage config. Referencing
  80. | absolute paths to external repos is also completely valid.
  81. |
  82. */
  83. 'paths' => [
  84. base_path('content'),
  85. base_path('users'),
  86. resource_path('blueprints'),
  87. resource_path('fieldsets'),
  88. resource_path('forms'),
  89. resource_path('users'),
  90. resource_path('preferences.yaml'),
  91. storage_path('forms'),
  92. public_path('assets'),
  93. ],
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Git Binary
  97. |--------------------------------------------------------------------------
  98. |
  99. | By default, Statamic will try to use the "git" command, but you can set
  100. | an absolute path to the git binary if necessary for your environment.
  101. |
  102. */
  103. 'binary' => env('STATAMIC_GIT_BINARY', 'git'),
  104. /*
  105. |--------------------------------------------------------------------------
  106. | Commands
  107. |--------------------------------------------------------------------------
  108. |
  109. | Define a list commands to be run when Statamic is ready to `git add`
  110. | and `git commit` your changes. These commands will be run once
  111. | per repo, attempting to consolidate commits where possible.
  112. |
  113. | https://statamic.dev/git-automation#customizing-commits
  114. |
  115. */
  116. 'commands' => [
  117. 'git add {{ paths }}',
  118. 'git -c "user.name={{ name }}" -c "user.email={{ email }}" commit -m "{{ message }}"',
  119. ],
  120. /*
  121. |--------------------------------------------------------------------------
  122. | Push
  123. |--------------------------------------------------------------------------
  124. |
  125. | Determine whether `git push` should be run after the commands above
  126. | have finished. This is disabled by default, but can be enabled
  127. | globally, or per environment using the provided variable.
  128. |
  129. | https://statamic.dev/git-automation#pushing-changes
  130. |
  131. */
  132. 'push' => env('STATAMIC_GIT_PUSH', false),
  133. /*
  134. |--------------------------------------------------------------------------
  135. | Ignored Events
  136. |--------------------------------------------------------------------------
  137. |
  138. | Statamic will listen on all `Saved` and `Deleted` events, as well
  139. | as any events registered by installed addons. If you wish to
  140. | ignore any specific events, you may reference them here.
  141. |
  142. */
  143. 'ignored_events' => [
  144. // \Statamic\Events\UserSaved::class,
  145. // \Statamic\Events\UserDeleted::class,
  146. ],
  147. /*
  148. |--------------------------------------------------------------------------
  149. | Locale
  150. |--------------------------------------------------------------------------
  151. |
  152. | The locale to be used when translating commit messages, etc. By
  153. | default, the authenticated user's locale will be used, but
  154. | feel free to override this using the provided variable.
  155. |
  156. */
  157. 'locale' => env('STATAMIC_GIT_LOCALE', null),
  158. ];