-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorbit-git.php
40 lines (34 loc) · 1.21 KB
/
orbit-git.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
return [
/*
| Should programmatic changes to the orbit models be tracked by git
*/
'enabled' => env('ORBIT_GIT_ENABLED', true),
/*
| Name which is used for the commit. Can be overwritten with
| OrbitGit::resolveNameUsing(fn() => '...')
*/
'name' => env('ORBIT_GIT_NAME'),
/*
| Email which is used for the commit. Can be overwritten with
| OrbitGit::resolveEmailUsing(fn() => '...')
*/
'email' => env('ORBIT_GIT_EMAIL'),
/*
| Folder in which changes will be tracked with git. (Default: base_path())
*/
'root' => env('ORBIT_GIT_ROOT', base_path()),
/*
| Path to the git binary. (Default: '/usr/bin/git')
*/
'binary' => env('ORBIT_GIT_BINARY', '/usr/bin/git'),
/*
| Email which is used for the commit. Can be overwritten with
| OrbitGit::resolveMessageUsing(fn($event) => '...')
| OrbitGit::resolveCreatedMessageUsing(fn($event) => '...')
| OrbitGit::resolveDeletedMessageUsing(fn($event) => '...')
| OrbitGit::resolveForceDeletedMessageUsing(fn($event) => '...')
| OrbitGit::resolveUpdatedMessageUsing(fn($event) => '...')
*/
'message_template' => '[AUTO] {event} {model} {primary_key}',
];