github-repository-provider 7.23.37 → 7.23.41

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.23.37",
3
+ "version": "7.23.41",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,13 +36,13 @@
36
36
  "matching-iterator": "^2.0.0",
37
37
  "node-fetch": "3.1.0",
38
38
  "one-time-execution-method": "^2.0.9",
39
- "repository-provider": "^25.5.12"
39
+ "repository-provider": "^26.0.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^3.15.0",
43
43
  "c8": "^7.10.0",
44
44
  "documentation": "^13.2.5",
45
- "repository-provider-test-support": "^1.8.5",
45
+ "repository-provider-test-support": "^1.8.8",
46
46
  "semantic-release": "^18.0.1"
47
47
  },
48
48
  "engines": {
@@ -81,7 +81,7 @@ export class GithubBranch extends Branch {
81
81
  path: u.name,
82
82
  sha: u.sha,
83
83
  type: "blob",
84
- mode: "100" + u.unixMode.toString(8)
84
+ mode: "100" + u.mode.toString(8)
85
85
  };
86
86
  })
87
87
  })
@@ -20,12 +20,12 @@ export class GithubRepository extends Repository {
20
20
  static get attributes() {
21
21
  return {
22
22
  ...super.attributes,
23
- auto_init: { type: "boolean" },
24
- allow_squash_merge: { type: "boolean" },
25
- allow_merge_commit: { type: "boolean" },
26
- allow_rebase_merge: { type: "boolean" },
27
- allow_auto_merge: { type: "boolean" },
28
- delete_branch_on_merge: { type: "boolean" }
23
+ auto_init: { type: "boolean", writable: true },
24
+ allow_squash_merge: { type: "boolean", writable: true },
25
+ allow_merge_commit: { type: "boolean", writable: true },
26
+ allow_rebase_merge: { type: "boolean", writable: true },
27
+ allow_auto_merge: { type: "boolean", writable: true },
28
+ delete_branch_on_merge: { type: "boolean", writable: true }
29
29
  };
30
30
  }
31
31
 
@@ -95,7 +95,12 @@ export class GithubRepository extends Repository {
95
95
  async update() {
96
96
  return this.provider.fetch(`repos/${this.slug}`, {
97
97
  method: "PATCH",
98
- body: JSON.stringify({ description: this.description })
98
+ body: JSON.stringify(
99
+ mapAttributesInverse(
100
+ optionJSON(this, undefined, this.constructor.writableAttributes),
101
+ this.constructor.attributeMapping
102
+ )
103
+ )
99
104
  });
100
105
  }
101
106