repository-provider 28.4.3 → 29.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "28.4.3",
3
+ "version": "29.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  "ava": "^4.2.0",
37
37
  "c8": "^7.11.2",
38
38
  "documentation": "^13.2.5",
39
- "repository-provider-test-support": "^2.1.10",
39
+ "repository-provider-test-support": "^2.1.15",
40
40
  "semantic-release": "^19.0.2",
41
41
  "typescript": "^4.6.3"
42
42
  },
@@ -227,12 +227,6 @@ export class PullRequest extends NamedObject {
227
227
  return super.equals(other) && this.repository.equals(other.repository);
228
228
  }
229
229
 
230
- async write() {
231
- this._write();
232
- }
233
-
234
- async _write() {}
235
-
236
230
  /**
237
231
  * Delete the pull request from the {@link Repository}.
238
232
  * @see {@link Repository#deletePullRequest}
@@ -249,6 +249,11 @@ export class Repository extends OwnedObject {
249
249
  return this.#branches.get(name);
250
250
  }
251
251
 
252
+ get hasBranches()
253
+ {
254
+ return this.#branches.size > 0;
255
+ }
256
+
252
257
  /**
253
258
  * @return {AsyncIterator<Branch>} of all branches
254
259
  */