Skip to content

Commit ddf9796

Browse files
committed
chore: adjust copy
1 parent d730a68 commit ddf9796

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/pr/pr-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class PullRequestGenerator {
225225
}
226226
}
227227

228-
body += `## 🎼 PHP/Composer Dependencies\n\n`
228+
body += `## 🐘 PHP/Composer Dependencies\n\n`
229229
if (uniqueComposerUpdates.length === 1) {
230230
body += `*${uniqueComposerUpdates.length} package will be updated*\n\n`
231231
}

src/utils/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export class Logger {
1313
* Log warning message in yellow
1414
*/
1515
warn(message: string, ...args: any[]): void {
16-
console.warn(`\x1B[33m⚠\x1B[0m ${message}`, ...args)
16+
console.warn(message, ...args)
1717
}
1818

1919
/**
2020
* Log error message in red
2121
*/
2222
error(message: string, ...args: any[]): void {
23-
console.error(`\x1B[31m✖\x1B[0m ${message}`, ...args)
23+
console.error(message, ...args)
2424
}
2525

2626
/**

test/composer-non-major-pr.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('Composer Non-Major PR', () => {
7878
expect(prBody).toContain('cac')
7979

8080
// Should include Composer dependencies section
81-
expect(prBody).toContain('### PHP/Composer Dependencies')
81+
expect(prBody).toContain('## 🐘 PHP/Composer Dependencies')
8282
expect(prBody).toContain('monolog/monolog')
8383
expect(prBody).toContain('phpunit/phpunit')
8484

@@ -117,7 +117,7 @@ describe('Composer Non-Major PR', () => {
117117
const prBody = await prGenerator.generateBody(composerOnlyGroup)
118118

119119
// Should only have Composer section
120-
expect(prBody).toContain('### PHP/Composer Dependencies')
120+
expect(prBody).toContain('## 🐘 PHP/Composer Dependencies')
121121
expect(prBody).toContain('psr/log')
122122

123123
// Should NOT have npm or GitHub Actions sections
@@ -156,7 +156,7 @@ describe('Composer Non-Major PR', () => {
156156
// Both should appear in Composer section
157157
expect(prBody).toContain('symfony/http-foundation')
158158
expect(prBody).toContain('phpstan/phpstan')
159-
expect(prBody).toContain('### PHP/Composer Dependencies')
159+
expect(prBody).toContain('## 🐘 PHP/Composer Dependencies')
160160

161161
// Should have the same format as npm dependencies (no file column)
162162
expect(prBody).toContain('| Package | Change | Age | Adoption | Passing | Confidence |')

test/pr-body-major-updates.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('PR Body Generation for Major Updates', () => {
125125
const composerBody = await generator.generateBody(majorComposerUpdate)
126126

127127
expect(composerBody).toContain('| 🎼 Composer Packages | 1 |')
128-
expect(composerBody).toContain('## 🎼 PHP/Composer Dependencies')
128+
expect(composerBody).toContain('## 🐘 PHP/Composer Dependencies')
129129
expect(composerBody).toContain('*1 package will be updated*')
130130
expect(composerBody).toContain('laravel/framework')
131131

test/pr-generator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ describe('PullRequestGenerator', () => {
208208
expect(body).toContain('| 🎼 Composer Packages | 1 |')
209209

210210
// Should include detailed Composer dependencies section
211-
expect(body).toContain('## 🎼 PHP/Composer Dependencies')
211+
expect(body).toContain('## 🐘 PHP/Composer Dependencies')
212212
expect(body).toContain('*1 package will be updated*')
213213
expect(body).toContain('| Package | Change | Age | Adoption | Passing | Confidence | Type | Update |')
214214
expect(body).toContain('laravel/framework')

0 commit comments

Comments
 (0)