github-repository-provider 7.33.24 → 7.33.26

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.24",
3
+ "version": "7.33.26",
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.3.21"
39
+ "repository-provider": "^32.4.2"
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.28",
48
+ "repository-provider-test-support": "^2.2.29",
49
49
  "semantic-release": "^19.0.5"
50
50
  },
51
51
  "engines": {
@@ -1,4 +1,4 @@
1
- import { PullRequest } from "repository-provider";
1
+ import { PullRequest, boolean_attribute } from "repository-provider";
2
2
  import { getHeaderLink } from "fetch-link-util";
3
3
 
4
4
  /**
@@ -23,9 +23,7 @@ export class GithubPullRequest extends PullRequest {
23
23
  static get attributes() {
24
24
  return {
25
25
  ...super.attributes,
26
- maintainer_can_modify: {
27
- type: "boolean"
28
- }
26
+ maintainer_can_modify: boolean_attribute
29
27
  };
30
28
  }
31
29
 
@@ -1,5 +1,5 @@
1
1
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
- import { Repository } from "repository-provider";
2
+ import { Repository, boolean_attribute } from "repository-provider";
3
3
  import { getHeaderLink } from "fetch-link-util";
4
4
  import { defaultStateActions, errorHandler } from "fetch-rate-limit-util";
5
5
 
@@ -35,15 +35,11 @@ export class GithubRepository extends Repository {
35
35
  ...super.attributes,
36
36
  isLocked: { type: "boolean", writable: false },
37
37
  auto_init: { type: "boolean", writable: true },
38
- allow_squash_merge: { type: "boolean", writable: true, default: false },
39
- allow_merge_commit: { type: "boolean", writable: true, default: false },
40
- allow_rebase_merge: { type: "boolean", writable: true, default: false },
41
- allow_auto_merge: { type: "boolean", writable: true, default: false },
42
- delete_branch_on_merge: {
43
- type: "boolean",
44
- writable: true,
45
- default: false
46
- }
38
+ allow_squash_merge: boolean_attribute,
39
+ allow_merge_commit: boolean_attribute,
40
+ allow_rebase_merge: boolean_attribute,
41
+ allow_auto_merge: boolean_attribute,
42
+ delete_branch_on_merge: boolean_attribute
47
43
  };
48
44
  }
49
45