Skip to content

Commit 0beb510

Browse files
author
nejc
committed
feat: change default PR branch prefix to laravelplus-updater-
- Updated default pr_branch_prefix from 'upstream-sync-' to 'laravelplus-updater-' - Updated both UpstreamPrCommand.php and upstream.php config - PR branches now use format: laravelplus-updater-YYYY-MM-DD-HH-MM-SS - Better branding and identification of LaravelPlus Updater PRs - Maintains backward compatibility via UPSTREAM_PR_BRANCH_PREFIX env var Example: laravelplus-updater-2025-10-13-09-17-27
1 parent ccbd338 commit 0beb510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Config/upstream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
|
9090
*/
9191
'create_pr' => env('UPSTREAM_CREATE_PR', false),
92-
'pr_branch_prefix' => env('UPSTREAM_PR_BRANCH_PREFIX', 'upstream-sync-'),
92+
'pr_branch_prefix' => env('UPSTREAM_PR_BRANCH_PREFIX', 'laravelplus-updater-'),
9393
'pr_title' => env('UPSTREAM_PR_TITLE', 'chore: sync from upstream'),
9494
'pr_body' => env('UPSTREAM_PR_BODY', 'Automated upstream sync from {upstream_url}'),
9595
'github_token' => env('GITHUB_TOKEN'),

src/Console/Commands/UpstreamPrCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private function generatePrBranchName(array $cfg): string
232232
return $customBranch;
233233
}
234234

235-
$prefix = $cfg['pr_branch_prefix'] ?? 'upstream-sync-';
235+
$prefix = $cfg['pr_branch_prefix'] ?? 'laravelplus-updater-';
236236
$timestamp = now()->format('Y-m-d-H-i-s');
237237

238238
return $prefix.$timestamp;

0 commit comments

Comments
 (0)