Skip to content

Commit

Permalink
Merge branch 'master' into update-framework-readme-contribution-section
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva authored Oct 30, 2023
2 parents e39b0c9 + 16a1cb5 commit 3155033
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions monorepo/DevTools/src/MonorepoReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ protected function makeMonorepoCommit(): void
$this->output->write('Committing framework version change... ');

$this->runUnlessDryRun('git add .', true);
$this->runUnlessDryRun('git commit -m "Version v'.$this->newVersion.'"');
$this->runUnlessDryRun('git commit -m "HydePHP v'.$this->newVersion.' - '.date('Y-m-d').'"');

$this->exitIfFailed();

Expand All @@ -326,7 +326,7 @@ protected function prepareHydePR(): void

protected function prepareDocsPR(): void
{
$this->preparePackagePR('hyde', 'upcoming', 'Merge upcoming documentation', 'This PR merges the upcoming documentation for v'.$this->newVersion.' into the master branch.');
$this->preparePackagePR('hydephp.com', 'upcoming', 'Merge upcoming documentation', 'This PR merges the upcoming documentation for `v'.$this->newVersion.'` into the master branch.');
}

protected function getTitle(): string
Expand Down Expand Up @@ -354,11 +354,13 @@ protected function preparePackagePR(string $package, string $branch = 'develop',

protected function prepareMonorepoPR(): void
{
$title = $this->isPatch()
? "Framework version v$this->newVersion"
: "HydePHP v$this->newVersion - ".date('Y-m-d');

$body = $this->releaseBody;
if ($this->isPatch()) {
$title = "Framework version v$this->newVersion";
$body = '';
} else {
$title = "HydePHP v$this->newVersion - ".date('Y-m-d');
$body = $this->releaseBody;
}

// Inject "version" before version in PR body
$body = preg_replace('/## \[(.*)]/', '## Version [v$1]', $body, 1);
Expand Down

0 comments on commit 3155033

Please sign in to comment.