repository-provider 34.0.3 → 35.0.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": "35.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,16 +34,16 @@
34
34
  "pacc": "^2.1.5"
35
35
  },
36
36
  "devDependencies": {
37
- "ava": "^6.0.1",
38
- "browser-ava": "^2.1.6",
39
- "c8": "^8.0.1",
37
+ "ava": "^6.1.0",
38
+ "browser-ava": "^2.1.8",
39
+ "c8": "^9.1.0",
40
40
  "documentation": "^14.0.2",
41
- "repository-provider-test-support": "^3.0.1",
42
- "semantic-release": "^22.0.12",
41
+ "repository-provider-test-support": "^3.0.2",
42
+ "semantic-release": "^23.0.0",
43
43
  "typescript": "^5.3.3"
44
44
  },
45
45
  "engines": {
46
- "node": ">=20.10.0"
46
+ "node": ">=20.11.0"
47
47
  },
48
48
  "repository": {
49
49
  "type": "git",
@@ -24,7 +24,7 @@ export const boolean_read_only_attribute = {
24
24
  default: false
25
25
  };
26
26
 
27
- export const uuid_attiribute = {
27
+ export const uuid_attribute = {
28
28
  ...default_attribute,
29
29
  isKey: true
30
30
  };
@@ -104,5 +104,6 @@ export const active_attribute = {
104
104
  default: true,
105
105
  writable: true
106
106
  };
107
+
107
108
  export const language_attribute = default_attribute;
108
109
  export const type_attribute = default_attribute;
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(