Skip to content

Commit ba096b3

Browse files
claudedgellow
authored andcommitted
fix: use pls/release branch instead of release-please naming
1 parent 04ac88b commit ba096b3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/core/pull-request.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class ReleasePullRequest {
7070
}
7171

7272
private get releaseBranch(): string {
73-
return 'release-please--branches--main';
73+
return 'pls-release';
7474
}
7575

7676
async findExisting(): Promise<PullRequest | null> {
@@ -239,7 +239,8 @@ export class ReleasePullRequest {
239239
const newDenoJson = JSON.stringify(denoJson, null, 2) + '\n';
240240

241241
// Get current .pls/versions.json content (or create new)
242-
let versionsContent: Record<string, string>;
242+
// Note: SHA will be set after merge when release is finalized
243+
let versionsContent: Record<string, string | { version: string; sha?: string }>;
243244
try {
244245
const file = await this.request<{ content: string }>(
245246
`/repos/${this.owner}/${this.repo}/contents/.pls/versions.json?ref=${this.baseBranch}`,
@@ -248,7 +249,10 @@ export class ReleasePullRequest {
248249
} catch {
249250
versionsContent = {};
250251
}
251-
versionsContent['.'] = bump.to;
252+
// Keep existing SHA if present, otherwise just set version
253+
const existing = versionsContent['.'];
254+
const existingSha = existing && typeof existing === 'object' ? existing.sha : undefined;
255+
versionsContent['.'] = existingSha ? { version: bump.to, sha: existingSha } : bump.to;
252256
const newVersionsJson = JSON.stringify(versionsContent, null, 2) + '\n';
253257

254258
// Create blobs for both files

0 commit comments

Comments
 (0)