github-repository-provider 9.3.0 → 9.3.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 CHANGED
@@ -51,7 +51,6 @@ for async (const entry of repository.entries('\*_/_.md')) {
51
51
  * [Parameters](#parameters-6)
52
52
  * [deleteRepository](#deleterepository)
53
53
  * [Parameters](#parameters-7)
54
- * [attributeMapping](#attributemapping)
55
54
  * [GithubProvider](#githubprovider)
56
55
  * [Examples](#examples)
57
56
  * [initializeRepositories](#initializerepositories)
@@ -68,7 +67,6 @@ for async (const entry of repository.entries('\*_/_.md')) {
68
67
  * [open](#open)
69
68
  * [Parameters](#parameters-10)
70
69
  * [GithubRepository](#githubrepository)
71
- * [defaultBranchName](#defaultbranchname)
72
70
  * [commits](#commits)
73
71
  * [Parameters](#parameters-11)
74
72
  * [commitForSha](#commitforsha)
@@ -181,10 +179,6 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
181
179
 
182
180
  * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
183
181
 
184
- ### attributeMapping
185
-
186
- Map attributes between external and internal representation.
187
-
188
182
  ## GithubProvider
189
183
 
190
184
  **Extends MultiGroupProvider**
@@ -286,10 +280,6 @@ Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
286
280
 
287
281
  Repository on GitHub.
288
282
 
289
- ### defaultBranchName
290
-
291
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** "main"
292
-
293
283
  ### commits
294
284
 
295
285
  <https://docs.github.com/en/rest/reference/commits#list-commits>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-repository-provider",
3
- "version": "9.3.0",
3
+ "version": "9.3.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -38,7 +38,7 @@
38
38
  "fetch-rate-limit-util": "^4.5.4",
39
39
  "matching-iterator": "^2.1.4",
40
40
  "one-time-execution-method": "^3.1.3",
41
- "repository-provider": "^35.6.0"
41
+ "repository-provider": "^35.6.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^24.5.2",
@@ -52,7 +52,7 @@
52
52
  "semantic-release": "^24.2.9"
53
53
  },
54
54
  "engines": {
55
- "node": ">=22.19.5"
55
+ "node": ">=22.19.0"
56
56
  },
57
57
  "repository": {
58
58
  "type": "git",
@@ -90,10 +90,7 @@ export class GithubPullRequest extends PullRequest {
90
90
  throw new Error(response.statusText + " (" + response.status + ")");
91
91
  }
92
92
 
93
- const pr = new this(source, destination, json.number, json);
94
-
95
- console.log(pr);
96
- return pr;
93
+ return new this(source, destination, json.number, json);
97
94
  }
98
95
 
99
96
  get api() {
@@ -114,7 +111,7 @@ export class GithubPullRequest extends PullRequest {
114
111
  *
115
112
  */
116
113
  async update() {
117
- const res = await this.provider.fetch(this.api, {
114
+ return await this.provider.fetch(this.api, {
118
115
  method: "PATCH",
119
116
  body: JSON.stringify({
120
117
  title: this.title,
@@ -122,6 +119,5 @@ export class GithubPullRequest extends PullRequest {
122
119
  state: this.state
123
120
  })
124
121
  });
125
- console.log(res);
126
122
  }
127
123
  }