github-repository-provider 7.33.31 → 7.33.32
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 +1 -1
- package/src/github-repository.mjs +10 -5
package/package.json
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Repository,
|
|
4
|
+
boolean_attribute,
|
|
5
|
+
mapAttributesInverse,
|
|
6
|
+
optionJSON
|
|
7
|
+
} from "repository-provider";
|
|
3
8
|
import { getHeaderLink } from "fetch-link-util";
|
|
4
9
|
import { defaultStateActions, errorHandler } from "fetch-rate-limit-util";
|
|
5
10
|
|
|
@@ -35,7 +40,7 @@ export class GithubRepository extends Repository {
|
|
|
35
40
|
...super.attributes,
|
|
36
41
|
isLocked: { type: "boolean", writable: false },
|
|
37
42
|
auto_init: { type: "boolean", writable: true },
|
|
38
|
-
allow_squash_merge: boolean_attribute,
|
|
43
|
+
allow_squash_merge: boolean_attribute,
|
|
39
44
|
allow_merge_commit: boolean_attribute,
|
|
40
45
|
allow_rebase_merge: boolean_attribute,
|
|
41
46
|
allow_auto_merge: boolean_attribute,
|
|
@@ -259,9 +264,9 @@ export class GithubRepository extends Repository {
|
|
|
259
264
|
}
|
|
260
265
|
|
|
261
266
|
/**
|
|
262
|
-
* @TODO generalize for all repos ?
|
|
263
|
-
* @param {string} ref
|
|
264
|
-
* @param {string} sha
|
|
267
|
+
* @TODO generalize for all repos ?
|
|
268
|
+
* @param {string} ref
|
|
269
|
+
* @param {string} sha
|
|
265
270
|
*/
|
|
266
271
|
_setRefId(ref, sha) {
|
|
267
272
|
ref = ref.replace(/^refs\//, "");
|