Skip to content

Commit

Permalink
feat(manifest): include default branch name in PR title (#843)
Browse files Browse the repository at this point in the history
helps distinguish which PR is which if you release from multiple branches
  • Loading branch information
joeldodge79 committed Mar 30, 2021
1 parent 2728bfe commit 16f00dc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions __snapshots__/manifest.js
Expand Up @@ -80,7 +80,7 @@ exports['Manifest pullRequest allows root module to be published, via special ".
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -140,7 +140,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest boostraps from HEAD manifest if first PR: changes'] = `
Expand Down Expand Up @@ -213,7 +213,7 @@ exports['Manifest pullRequest boostraps from HEAD manifest if first PR: options'
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -258,7 +258,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest boostraps from HEAD manifest if manifest was deleted in last release PR: changes'] = `
Expand Down Expand Up @@ -331,7 +331,7 @@ exports['Manifest pullRequest boostraps from HEAD manifest if manifest was delet
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -376,7 +376,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest boostraps from HEAD manifest starting at bootstrap-sha if first PR: changes'] = `
Expand Down Expand Up @@ -449,7 +449,7 @@ exports['Manifest pullRequest boostraps from HEAD manifest starting at bootstrap
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -494,7 +494,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest bootstraps a new package from curated manifest: changes'] = `
Expand Down Expand Up @@ -567,7 +567,7 @@ exports['Manifest pullRequest bootstraps a new package from curated manifest: op
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -612,7 +612,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest bootstraps a new package using default version: changes'] = `
Expand Down Expand Up @@ -685,7 +685,7 @@ exports['Manifest pullRequest bootstraps a new package using default version: op
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -730,7 +730,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest creates a PR for python and node packages: changes'] = `
Expand Down Expand Up @@ -786,7 +786,7 @@ exports['Manifest pullRequest creates a PR for python and node packages: options
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -820,7 +820,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest only includes packages that have version bumps: changes'] = `
Expand Down Expand Up @@ -854,7 +854,7 @@ exports['Manifest pullRequest only includes packages that have version bumps: op
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand All @@ -873,7 +873,7 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`

exports['Manifest pullRequest respects python releaser specific config over defaults: changes'] = `
Expand Down Expand Up @@ -959,7 +959,7 @@ exports['Manifest pullRequest respects python releaser specific config over defa
upstreamOwner: fake
upstreamRepo: repo
title: chore: release
title: chore: release main
branch: release-please/branches/main
description: :robot: I have created a release \\*beep\\* \\*boop\\*
Expand Down Expand Up @@ -1017,5 +1017,5 @@ This PR was generated with [Release Please](https://github.com/googleapis/releas
primary: main
force: true
fork: false
message: chore: release
message: chore: release main
`
2 changes: 1 addition & 1 deletion src/manifest.ts
Expand Up @@ -562,7 +562,7 @@ export class Manifest {
);
const pr = await this.gh.openPR({
branch: branchName,
title: 'chore: release',
title: `chore: release ${await this.gh.getDefaultBranch()}`,
body: body,
updates,
labels: DEFAULT_LABELS,
Expand Down

0 comments on commit 16f00dc

Please sign in to comment.