-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/git-integration'
- Loading branch information
Showing
117 changed files
with
2,629 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Git Integration | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Whether Statamic's git integration should be enabled. This feature | ||
| assumes that git is already installed and accessible by your | ||
| PHP process' server user. For more info, see the docs at: | ||
| | ||
| https://statamic.dev/git-integration | ||
| | ||
*/ | ||
|
||
'enabled' => env('STATAMIC_GIT_ENABLED', false), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Automatically Run | ||
|-------------------------------------------------------------------------- | ||
| | ||
| By default, commits are automatically queued when `Saved` or `Deleted` | ||
| events are fired. If you prefer users to manually trigger commits | ||
| using the `Git` utility interface, you may set this to `false`. | ||
| | ||
*/ | ||
|
||
'automatic' => env('STATAMIC_GIT_AUTOMATIC', true), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Dispatch Delay | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When `Saved` and `Deleted` events queue up commits, you may wish to | ||
| set a delay time in minutes for each queued job. This can allow | ||
| for more consolidated commits when you have multiple users | ||
| making simultaneous content changes to your repository. | ||
| | ||
| Note: Not supported by default `sync` queue driver. | ||
| | ||
*/ | ||
|
||
'dispatch_delay' => env('STATAMIC_GIT_DISPATCH_DELAY', 0), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Git User | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The git user that will be used when committing changes. By default, it | ||
| will attempt to commit with the authenticated user's name and email | ||
| when possible, falling back to the below user when not available. | ||
| | ||
*/ | ||
|
||
'use_authenticated' => true, | ||
|
||
'user' => [ | ||
'name' => env('STATAMIC_GIT_USER_NAME', 'Spock'), | ||
'email' => env('STATAMIC_GIT_USER_EMAIL', 'spock@example.com'), | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Tracked Paths | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Define the tracked paths to be considered when staging changes. Default | ||
| stache and file locations are already set up for you, but feel free | ||
| to modify these paths to suit your storage config. Referencing | ||
| absolute paths to external repos is also completely valid. | ||
| | ||
*/ | ||
|
||
'paths' => [ | ||
base_path('content'), | ||
base_path('users'), | ||
resource_path('blueprints'), | ||
resource_path('fieldsets'), | ||
resource_path('forms'), | ||
resource_path('users'), | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Commands | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Define a list commands to be run when Statamic is ready to `git add` | ||
| and `git commit` your changes. These commands will be run once | ||
| per repo, attempting to consolidate commits where possible. | ||
| | ||
*/ | ||
|
||
'commands' => [ | ||
'git add {{ paths }}', | ||
'git -c "user.name={{ name }}" -c "user.email={{ email }}" commit -m "{{ message }}"', | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Push | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Determine whether `git push` should be run after the commands above | ||
| have finished. This is disabled by default, but can be enabled | ||
| globally, or per environment using the provided variable. | ||
| | ||
*/ | ||
|
||
'push' => env('STATAMIC_GIT_PUSH', false), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Ignored Events | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Statamic will listen on all `Saved` and `Deleted` events, as well | ||
| as any events registered by installed addons. If you wish to | ||
| ignore any specific events, you may reference them here. | ||
| | ||
*/ | ||
|
||
'ignored_events' => [ | ||
// \Statamic\Events\Data\UserSaved::class, | ||
// \Statamic\Events\Data\UserDeleted::class, | ||
], | ||
|
||
]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.