File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -417,26 +417,17 @@ fn save_pr_branch_files(
417
417
Ok ( ( ) )
418
418
}
419
419
420
- fn set_git_user_config ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
421
- let email_output = Command :: new ( "git" )
422
- . args ( & [ "config" , "--get" , "user.email" ] )
420
+ // Set global Git config for user email and name
421
+ fn set_git_global_user_config ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
422
+ // Set global email
423
+ Command :: new ( "git" )
424
+ . args ( & [ "config" , "--global" , "user.email" , "helabot@groww.in" ] )
423
425
. output ( ) ?;
424
- if !email_output. status . success ( ) {
425
- // Set default email if not already configured
426
- Command :: new ( "git" )
427
- . args ( & [ "config" , "--local" , "user.email" , "temp@example.com" ] )
428
- . output ( ) ?;
429
- }
430
426
431
- let name_output = Command :: new ( "git" )
432
- . args ( & [ "config" , "--get" , "user.name" ] )
427
+ // Set global name
428
+ Command :: new ( "git" )
429
+ . args ( & [ "config" , "--global" , "user.name" , "Hela Bot" ] )
433
430
. output ( ) ?;
434
- if !name_output. status . success ( ) {
435
- // Set default name if not already configured
436
- Command :: new ( "git" )
437
- . args ( & [ "config" , "--local" , "user.name" , "Temporary User" ] )
438
- . output ( ) ?;
439
- }
440
431
441
432
Ok ( ( ) )
442
433
}
You can’t perform that action at this time.
0 commit comments