github-repository-provider 9.0.1 → 9.0.3
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 +2 -2
- package/package.json +2 -2
- package/src/github-owner.mjs +2 -2
- package/src/github-pull-request.mjs +6 -1
- package/src/github-repository.mjs +3 -2
package/README.md
CHANGED
|
@@ -161,7 +161,7 @@ Represents github repo owner either
|
|
|
161
161
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
162
162
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`)
|
|
163
163
|
|
|
164
|
-
Returns **Repository
|
|
164
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<Repository>** newly created repository
|
|
165
165
|
|
|
166
166
|
### deleteRepository
|
|
167
167
|
|
|
@@ -288,7 +288,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
288
288
|
|
|
289
289
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
290
290
|
|
|
291
|
-
Returns **
|
|
291
|
+
Returns **AsyncIterable\<Commit>** 
|
|
292
292
|
|
|
293
293
|
### commitForSha
|
|
294
294
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-repository-provider",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ava": "^6.1.1",
|
|
46
46
|
"c8": "^9.1.0",
|
|
47
47
|
"documentation": "^14.0.3",
|
|
48
|
-
"etag-cache-leveldb": "^2.1.
|
|
48
|
+
"etag-cache-leveldb": "^2.1.1",
|
|
49
49
|
"leveldown": "^6.1.1",
|
|
50
50
|
"levelup": "^5.1.1",
|
|
51
51
|
"repository-provider-test-support": "^3.1.2",
|
package/src/github-owner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RepositoryGroup } from "repository-provider";
|
|
1
|
+
import { RepositoryGroup, Repository } from "repository-provider";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents github repo owner either
|
|
@@ -26,7 +26,7 @@ export class GithubOwner extends RepositoryGroup {
|
|
|
26
26
|
* {@link https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user}
|
|
27
27
|
* @param {string} name
|
|
28
28
|
* @param {Object} options
|
|
29
|
-
* @return {Repository} newly created repository
|
|
29
|
+
* @return {Promise<Repository>} newly created repository
|
|
30
30
|
*/
|
|
31
31
|
async createRepository(name, options = {}) {
|
|
32
32
|
const response = await this.provider.fetch(`${this.api}/repos`, {
|
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
language_attribute,
|
|
8
8
|
default_attribute,
|
|
9
9
|
mapAttributesInverse,
|
|
10
|
-
optionJSON
|
|
10
|
+
optionJSON,
|
|
11
|
+
Commit
|
|
11
12
|
} from "repository-provider";
|
|
12
13
|
import { getHeaderLink } from "fetch-link-util";
|
|
13
14
|
import { defaultStateActions, errorHandler } from "fetch-rate-limit-util";
|
|
@@ -70,7 +71,7 @@ export class GithubRepository extends Repository {
|
|
|
70
71
|
/**
|
|
71
72
|
* {@link https://docs.github.com/en/rest/reference/commits#list-commits}
|
|
72
73
|
* @param {Object} options
|
|
73
|
-
* @returns {
|
|
74
|
+
* @returns {AsyncIterable<Commit>}
|
|
74
75
|
*/
|
|
75
76
|
async *commits(options) {
|
|
76
77
|
let next = `${this.api}/commits`;
|