repository-provider 34.0.3 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2023 by arlac77
1
+ Copyright (c) 2017-2024 by arlac77
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "34.0.3",
3
+ "version": "34.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "ava": "^6.0.1",
38
- "browser-ava": "^2.1.6",
39
- "c8": "^8.0.1",
38
+ "browser-ava": "^2.1.7",
39
+ "c8": "^9.0.0",
40
40
  "documentation": "^14.0.2",
41
41
  "repository-provider-test-support": "^3.0.1",
42
42
  "semantic-release": "^22.0.12",
package/src/branch.mjs CHANGED
@@ -149,10 +149,10 @@ export class Branch extends Ref {
149
149
  }
150
150
 
151
151
  if (options.bodyFromCommitMessages) {
152
- options.body = body;
152
+ options.body = options.body ? options.body + '\n' + body : body;
153
153
  }
154
154
 
155
- if (body.length > 0 && !options.skipWithoutCommits) {
155
+ if (options.body?.length > 0 && !options.skipWithoutCommits) {
156
156
  return prBranch.createPullRequest(this, options);
157
157
  } else {
158
158
  return new PullRequest(