bitbucket-repository-provider 3.9.10 → 3.10.2
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/README.md +5 -0
- package/package.json +4 -4
- package/src/bitbucket-repository.mjs +15 -0
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ repository provider for bitbucket
|
|
|
57
57
|
* [urls](#urls)
|
|
58
58
|
* [homePageURL](#homepageurl)
|
|
59
59
|
* [issuesURL](#issuesurl)
|
|
60
|
+
* [update](#update)
|
|
60
61
|
* [createBranch](#createbranch)
|
|
61
62
|
* [Parameters](#parameters-10)
|
|
62
63
|
* [deleteBranch](#deletebranch)
|
|
@@ -279,6 +280,10 @@ Deliver the url of issue tracking system.
|
|
|
279
280
|
|
|
280
281
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** '.../issues'
|
|
281
282
|
|
|
283
|
+
### update
|
|
284
|
+
|
|
285
|
+
<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put>
|
|
286
|
+
|
|
282
287
|
### createBranch
|
|
283
288
|
|
|
284
289
|
Create a new branch
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitbucket-repository-provider",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"content-entry": "^
|
|
33
|
+
"content-entry": "^3.0.1",
|
|
34
34
|
"matching-iterator": "^2.0.0",
|
|
35
35
|
"node-fetch": "^3.1.0",
|
|
36
36
|
"one-time-execution-method": "^2.0.9",
|
|
37
|
-
"repository-provider": "^
|
|
37
|
+
"repository-provider": "^26.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"ava": "^3.15.0",
|
|
41
41
|
"c8": "^7.10.0",
|
|
42
42
|
"documentation": "^13.2.5",
|
|
43
|
-
"repository-provider-test-support": "^1.8.
|
|
43
|
+
"repository-provider-test-support": "^1.8.12",
|
|
44
44
|
"semantic-release": "^18.0.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
@@ -57,6 +57,21 @@ export class BitbucketRepository extends Repository {
|
|
|
57
57
|
return this.provider.fetch(...args);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* {@link https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put}
|
|
62
|
+
*/
|
|
63
|
+
async update() {
|
|
64
|
+
return this.provider.fetch(`repositories/${this.slug}`, {
|
|
65
|
+
method: "PUT",
|
|
66
|
+
body: JSON.stringify(
|
|
67
|
+
mapAttributesInverse(
|
|
68
|
+
optionJSON(this, undefined, this.constructor.writableAttributes),
|
|
69
|
+
this.constructor.attributeMapping
|
|
70
|
+
)
|
|
71
|
+
)
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
60
75
|
async initializeHooks() {
|
|
61
76
|
let url = `repositories/${this.slug}/hooks`;
|
|
62
77
|
|