Skip to content

Commit 7f0a14f

Browse files
committed
chore: wip
1 parent 25f8108 commit 7f0a14f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/pr/pr-generator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ export class PullRequestGenerator {
205205
if (packageInfo.homepage && packageInfo.repository?.url) {
206206
const sourceUrl = this.getComposerRedirectSourceUrl(packageInfo.repository.url, update.name)
207207
packageCell = `[${update.name}](${packageInfo.homepage}) ([source](${sourceUrl}))`
208-
} else if (packageInfo.repository?.url) {
208+
}
209+
else if (packageInfo.repository?.url) {
209210
const sourceUrl = this.getComposerRedirectSourceUrl(packageInfo.repository.url, update.name)
210211
packageCell = `[${update.name}](${sourceUrl})`
211-
} else {
212+
}
213+
else {
212214
// Fallback to Packagist page
213215
packageCell = `[${update.name}](https://packagist.org/packages/${encodeURIComponent(update.name)})`
214216
}

test/composer-mixed-updates.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ describe('Composer Mixed Updates (Major + Minor)', () => {
4242
{ name: 'another/package', constraint: '*', current: '1.5.0', latest: '2.1.0' },
4343
]
4444

45-
const includedUpdates: Array<{ name: string; constraint: string; current: string; latest: string; updateType: string; shouldGetIndividualPR: boolean }> = []
46-
const excludedUpdates: Array<{ name: string; constraint: string; current: string; latest: string }> = []
45+
const includedUpdates: Array<{ name: string, constraint: string, current: string, latest: string, updateType: string, shouldGetIndividualPR: boolean }> = []
46+
const excludedUpdates: Array<{ name: string, constraint: string, current: string, latest: string }> = []
4747

4848
packages.forEach((pkg) => {
4949
const shouldInclude = shouldIncludeUpdate(pkg.constraint, pkg.current, pkg.latest)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Composer Non-Major PR', () => {
66
let prGenerator: PullRequestGenerator
77

88
beforeEach(() => {
9-
const mockConfig = {
9+
const _mockConfig = {
1010
repository: {
1111
owner: 'test-owner',
1212
name: 'test-repo',

0 commit comments

Comments
 (0)