github-repository-provider 7.33.33 → 7.33.35

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": "github-repository-provider",
3
- "version": "7.33.33",
3
+ "version": "7.33.35",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  "matching-iterator": "^2.0.11",
37
37
  "node-fetch": "^3.3.0",
38
38
  "one-time-execution-method": "^3.0.6",
39
- "repository-provider": "^32.5.0"
39
+ "repository-provider": "^32.5.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^5.1.0",
@@ -45,7 +45,7 @@
45
45
  "etag-cache-leveldb": "^1.4.1",
46
46
  "leveldown": "^6.1.1",
47
47
  "levelup": "^5.1.1",
48
- "repository-provider-test-support": "^2.2.31",
48
+ "repository-provider-test-support": "^2.2.32",
49
49
  "semantic-release": "^19.0.5"
50
50
  },
51
51
  "engines": {
@@ -58,6 +58,9 @@ export class GithubOwner extends RepositoryGroup {
58
58
  const response = await this.provider.fetch(`repos/${this.name}/${name}`, {
59
59
  method: "DELETE"
60
60
  });
61
- return super.deleteRepository(name);
61
+ if (response.ok) {
62
+ return super.deleteRepository(name);
63
+ }
64
+ throw new Error(`Unable to delete repo: ${response.statusText}`);
62
65
  }
63
66
  }
@@ -2,6 +2,7 @@ import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
2
  import {
3
3
  Repository,
4
4
  boolean_attribute,
5
+ url_attribute,
5
6
  mapAttributesInverse,
6
7
  optionJSON
7
8
  } from "repository-provider";
@@ -44,7 +45,8 @@ export class GithubRepository extends Repository {
44
45
  allow_merge_commit: boolean_attribute,
45
46
  allow_rebase_merge: boolean_attribute,
46
47
  allow_auto_merge: boolean_attribute,
47
- delete_branch_on_merge: boolean_attribute
48
+ delete_branch_on_merge: boolean_attribute,
49
+ issuesURL: url_attribute
48
50
  };
49
51
  }
50
52