repository-provider 35.6.2 → 35.7.0
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 +8 -15
- package/src/repository-group.mjs +8 -3
- package/types/application.d.mts +0 -6
- package/types/base-object.d.mts +0 -80
- package/types/base-provider.d.mts +0 -271
- package/types/branch.d.mts +0 -74
- package/types/commit.d.mts +0 -35
- package/types/hook.d.mts +0 -73
- package/types/index.d.mts +0 -21
- package/types/issue.d.mts +0 -10
- package/types/milestone.d.mts +0 -12
- package/types/multi-group-provider.d.mts +0 -51
- package/types/named-object.d.mts +0 -46
- package/types/owned-object.d.mts +0 -113
- package/types/project.d.mts +0 -6
- package/types/pull-request.d.mts +0 -149
- package/types/ref.d.mts +0 -68
- package/types/repository-group.d.mts +0 -55
- package/types/repository-owner.d.mts +0 -103
- package/types/repository.d.mts +0 -380
- package/types/review.d.mts +0 -6
- package/types/single-group-provider.d.mts +0 -57
- package/types/tag.d.mts +0 -6
- package/types/util.d.mts +0 -34
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.7.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
7
7
|
},
|
|
8
8
|
"packageManager": "npm@11.6.0+sha512.77f3fb0dbbd881835d7bd1217deabdf7ed77fc4ec4f363df64fc3cb986404abf6c437661041080f5c5d225103508e7c9ea30cb2742b7e942675d05a10af2d7b9",
|
|
9
|
-
"types": "./types/index.d.mts",
|
|
10
9
|
"exports": {
|
|
11
10
|
".": {
|
|
12
|
-
"types": "./types/index.d.mts",
|
|
13
11
|
"default": "./src/index.mjs"
|
|
14
12
|
}
|
|
15
13
|
},
|
|
@@ -26,33 +24,29 @@
|
|
|
26
24
|
],
|
|
27
25
|
"license": "0BSD",
|
|
28
26
|
"scripts": {
|
|
29
|
-
"prepare": "node --run prepare:typescript",
|
|
30
|
-
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
|
|
31
27
|
"test": "node --run test:browser-ava && node --run test:ava",
|
|
32
28
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
33
29
|
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
|
|
34
30
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
35
31
|
"docs": "documentation readme --section=API ./src**/*.mjs",
|
|
36
|
-
"lint": "node --run lint:docs
|
|
37
|
-
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
38
|
-
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
32
|
+
"lint": "node --run lint:docs",
|
|
33
|
+
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
39
34
|
},
|
|
40
35
|
"dependencies": {
|
|
41
36
|
"content-entry": "^14.2.5",
|
|
42
37
|
"matching-iterator": "^2.1.4",
|
|
43
|
-
"pacc": "^4.39.
|
|
38
|
+
"pacc": "^4.39.2"
|
|
44
39
|
},
|
|
45
40
|
"devDependencies": {
|
|
46
41
|
"ava": "^6.4.1",
|
|
47
|
-
"browser-ava": "^2.3.
|
|
42
|
+
"browser-ava": "^2.3.35",
|
|
48
43
|
"c8": "^10.1.3",
|
|
49
44
|
"documentation": "^14.0.3",
|
|
50
45
|
"repository-provider-test-support": "^4.0.0",
|
|
51
|
-
"semantic-release": "^24.2.9"
|
|
52
|
-
"typescript": "^5.9.2"
|
|
46
|
+
"semantic-release": "^24.2.9"
|
|
53
47
|
},
|
|
54
48
|
"engines": {
|
|
55
|
-
"node": ">=22.
|
|
49
|
+
"node": ">=22.20.0"
|
|
56
50
|
},
|
|
57
51
|
"repository": {
|
|
58
52
|
"type": "git",
|
|
@@ -66,8 +60,7 @@
|
|
|
66
60
|
"inheritFrom": [
|
|
67
61
|
"arlac77/template-arlac77-github",
|
|
68
62
|
"arlac77/template-browser-ava",
|
|
69
|
-
"arlac77/template-javascript-component"
|
|
70
|
-
"arlac77/template-typescript"
|
|
63
|
+
"arlac77/template-javascript-component"
|
|
71
64
|
]
|
|
72
65
|
}
|
|
73
66
|
}
|
package/src/repository-group.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
url_attribute,
|
|
3
|
+
url_attribute_writable,
|
|
4
|
+
boolean_attribute,
|
|
5
|
+
type_attribute
|
|
6
|
+
} from "pacc";
|
|
2
7
|
import { RepositoryOwner } from "./repository-owner.mjs";
|
|
3
8
|
import { OwnedObject } from "./owned-object.mjs";
|
|
4
9
|
import { BaseProvider } from "./base-provider.mjs";
|
|
@@ -40,8 +45,8 @@ export class RepositoryGroup extends RepositoryOwner(OwnedObject) {
|
|
|
40
45
|
*/
|
|
41
46
|
type: type_attribute,
|
|
42
47
|
url: url_attribute,
|
|
43
|
-
avatarURL: url_attribute,
|
|
44
|
-
isAdmin: boolean_attribute,
|
|
48
|
+
avatarURL: { ...url_attribute, externalName: "avatar_url" },
|
|
49
|
+
isAdmin: { ...boolean_attribute, externalName: "is_admin" },
|
|
45
50
|
/**
|
|
46
51
|
* The url of home page.
|
|
47
52
|
* @return {string}
|
package/types/application.d.mts
DELETED
package/types/base-object.d.mts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates an instance of BaseObject.
|
|
3
|
-
* @param {Object} [options]
|
|
4
|
-
* @param {string} [options.id]
|
|
5
|
-
* @param {string} [options.description]
|
|
6
|
-
* @param {Object} [additionalProperties]
|
|
7
|
-
*
|
|
8
|
-
* @property {string?} id
|
|
9
|
-
* @property {string?} description
|
|
10
|
-
*/
|
|
11
|
-
export class BaseObject {
|
|
12
|
-
/**
|
|
13
|
-
* @return {string} type we represent
|
|
14
|
-
*/
|
|
15
|
-
static get type(): string;
|
|
16
|
-
/**
|
|
17
|
-
* ```
|
|
18
|
-
* Tag -> tags
|
|
19
|
-
* Repository -> repositories
|
|
20
|
-
* ```
|
|
21
|
-
* @return {string} name of the collection holding us in the owner
|
|
22
|
-
*/
|
|
23
|
-
static get collectionName(): string;
|
|
24
|
-
/**
|
|
25
|
-
* Attributes definitions.
|
|
26
|
-
* @return {Object}
|
|
27
|
-
*/
|
|
28
|
-
static attributes: {
|
|
29
|
-
id: import("pacc").AttributeDefinition;
|
|
30
|
-
description: import("pacc").AttributeDefinition;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* User modifyable attributes.
|
|
34
|
-
* @return {Object} writable attributes
|
|
35
|
-
*/
|
|
36
|
-
static get writableAttributes(): any;
|
|
37
|
-
/**
|
|
38
|
-
* Creates an instance of BaseObject.
|
|
39
|
-
* @param {Object} [options]
|
|
40
|
-
* @param {string} [options.id]
|
|
41
|
-
* @param {string} [options.description]
|
|
42
|
-
*/
|
|
43
|
-
constructor(options?: {
|
|
44
|
-
id?: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
});
|
|
47
|
-
/** @type {string} */ id: string;
|
|
48
|
-
/** @type {string} */ description: string;
|
|
49
|
-
/**
|
|
50
|
-
* Takes values from options.
|
|
51
|
-
* @param {Object} [options]
|
|
52
|
-
* @param {Object} [additionalProperties]
|
|
53
|
-
*/
|
|
54
|
-
updateAttributes(options?: any): void;
|
|
55
|
-
/**
|
|
56
|
-
* Save object attributes in the backing store.
|
|
57
|
-
*/
|
|
58
|
-
update(): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* @return {string} fullName
|
|
61
|
-
*/
|
|
62
|
-
toString(): string;
|
|
63
|
-
/**
|
|
64
|
-
* Complete name in the hierachy.
|
|
65
|
-
* @return {string}
|
|
66
|
-
*/
|
|
67
|
-
get fullName(): string;
|
|
68
|
-
get identifier(): string;
|
|
69
|
-
/**
|
|
70
|
-
* By default cannot be written to.
|
|
71
|
-
* @return {boolean} false
|
|
72
|
-
*/
|
|
73
|
-
get isWritable(): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Check for equality
|
|
76
|
-
* @param {BaseObject|undefined} other
|
|
77
|
-
* @return {boolean} true if other is present
|
|
78
|
-
*/
|
|
79
|
-
equals(other: BaseObject | undefined): boolean;
|
|
80
|
-
}
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('./project.mjs').Project} Project
|
|
3
|
-
* @typedef {import('./milestone.mjs').Milestone} Milestone
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {Object} DecodedRepositoryName
|
|
7
|
-
* @property {string} [base]
|
|
8
|
-
* @property {string} [group]
|
|
9
|
-
* @property {string} [repository]
|
|
10
|
-
* @property {string} [branch]
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* @typedef {Object} MessageDestination
|
|
14
|
-
* Endpoint to deliver log messages to.
|
|
15
|
-
* @property {function(string):void} info
|
|
16
|
-
* @property {function(string):void} debug
|
|
17
|
-
* @property {function(string):void} warn
|
|
18
|
-
* @property {function(string):void} error
|
|
19
|
-
* @property {function(string):void} trace
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* @param {Object} [options]
|
|
23
|
-
* @param {string} [options.url]
|
|
24
|
-
* @param {MessageDestination} [options.messageDestination]
|
|
25
|
-
* @property {MessageDestination} messageDestination
|
|
26
|
-
* @property {string} url
|
|
27
|
-
* @property {string} api
|
|
28
|
-
*/
|
|
29
|
-
export class BaseProvider extends BaseObject {
|
|
30
|
-
/**
|
|
31
|
-
* Prefix used to form environment variables.
|
|
32
|
-
* 'GITHUB_' -> 'GITHUB_TOKEN'
|
|
33
|
-
* @return {string} identifier for environment options
|
|
34
|
-
*/
|
|
35
|
-
static get instanceIdentifier(): string;
|
|
36
|
-
static attributes: {
|
|
37
|
-
/**
|
|
38
|
-
* Name of the provider.
|
|
39
|
-
*/
|
|
40
|
-
name: {
|
|
41
|
-
env: string;
|
|
42
|
-
type: object;
|
|
43
|
-
isKey: boolean;
|
|
44
|
-
writable: boolean;
|
|
45
|
-
mandatory: boolean;
|
|
46
|
-
collection: boolean;
|
|
47
|
-
private?: boolean;
|
|
48
|
-
depends?: string;
|
|
49
|
-
description?: string;
|
|
50
|
-
default?: any;
|
|
51
|
-
set?: Function;
|
|
52
|
-
get?: Function;
|
|
53
|
-
prepareValue?: Function;
|
|
54
|
-
values?: Set<any>;
|
|
55
|
-
externalName?: string;
|
|
56
|
-
additionalValues?: object;
|
|
57
|
-
};
|
|
58
|
-
url: import("pacc").AttributeDefinition;
|
|
59
|
-
priority: import("pacc").AttributeDefinition;
|
|
60
|
-
/**
|
|
61
|
-
* To forward info/warn and error messages to
|
|
62
|
-
*/
|
|
63
|
-
messageDestination: {
|
|
64
|
-
default: Console;
|
|
65
|
-
writable: boolean;
|
|
66
|
-
private: boolean;
|
|
67
|
-
type: object;
|
|
68
|
-
isKey: boolean;
|
|
69
|
-
mandatory: boolean;
|
|
70
|
-
collection: boolean;
|
|
71
|
-
depends?: string;
|
|
72
|
-
description?: string;
|
|
73
|
-
set?: Function;
|
|
74
|
-
get?: Function;
|
|
75
|
-
prepareValue?: Function;
|
|
76
|
-
values?: Set<any>;
|
|
77
|
-
externalName?: string;
|
|
78
|
-
env?: string[] | string;
|
|
79
|
-
additionalValues?: object;
|
|
80
|
-
};
|
|
81
|
-
id: import("pacc").AttributeDefinition;
|
|
82
|
-
description: import("pacc").AttributeDefinition;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* @typedef {Object} parsedName
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
|
-
/**
|
|
89
|
-
* Creates a new provider for a given set of options.
|
|
90
|
-
* @param {Object} options additional options
|
|
91
|
-
* @param {string} [options.instanceIdentifier] name of the provider instance
|
|
92
|
-
* @param {string} [options.description]
|
|
93
|
-
* @param {Object} env taken from process.env
|
|
94
|
-
* @return {BaseProvider|undefined} newly created provider or undefined if options are not sufficient to construct a provider
|
|
95
|
-
*/
|
|
96
|
-
static initialize(options: {
|
|
97
|
-
instanceIdentifier?: string;
|
|
98
|
-
description?: string;
|
|
99
|
-
}, env: any): BaseProvider | undefined;
|
|
100
|
-
get priority(): number;
|
|
101
|
-
/**
|
|
102
|
-
* @param {any} other
|
|
103
|
-
* @return {boolean} true if other provider is the same as the receiver
|
|
104
|
-
*/
|
|
105
|
-
equals(other: any): boolean;
|
|
106
|
-
/**
|
|
107
|
-
* All supported base urls.
|
|
108
|
-
* For github something like:
|
|
109
|
-
* - git@github.com
|
|
110
|
-
* - git://github.com
|
|
111
|
-
* - git+ssh://github.com
|
|
112
|
-
* - https://github.com
|
|
113
|
-
* - git+https://github.com
|
|
114
|
-
* By default we provide provider name with ':'.
|
|
115
|
-
* @return {string[]} common base urls of all repositories
|
|
116
|
-
*/
|
|
117
|
-
get repositoryBases(): string[];
|
|
118
|
-
/**
|
|
119
|
-
* Does the provider support the base name.
|
|
120
|
-
* @param {string} [base] to be checked
|
|
121
|
-
* @return {boolean} true if base is supported or base is undefined
|
|
122
|
-
*/
|
|
123
|
-
supportsBase(base?: string): boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Bring a repository name into its normal form by removing any clutter.
|
|
126
|
-
* Like .git suffix or #branch names.
|
|
127
|
-
* @param {string} name
|
|
128
|
-
* @param {boolean} forLookup
|
|
129
|
-
* @return {string|undefined} normalized name
|
|
130
|
-
*/
|
|
131
|
-
normalizeRepositoryName(name: string, forLookup: boolean): string | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* Bring a group name into its normal form by removing any clutter.
|
|
134
|
-
* Like .git suffix or #branch names.
|
|
135
|
-
* @param {string} name
|
|
136
|
-
* @param {boolean} forLookup
|
|
137
|
-
* @return {string|undefined} normalized name
|
|
138
|
-
*/
|
|
139
|
-
normalizeGroupName(name: string, forLookup: boolean): string | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* Are repository names case sensitive.
|
|
142
|
-
* Overwrite and return false if you want to have case insensitive repository lookup.
|
|
143
|
-
* @return {boolean} true
|
|
144
|
-
*/
|
|
145
|
-
get areRepositoryNamesCaseSensitive(): boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Are repositroy group names case sensitive.
|
|
148
|
-
* Overwrite and return false if you want to have case insensitive group lookup.
|
|
149
|
-
* @return {boolean} true
|
|
150
|
-
*/
|
|
151
|
-
get areGroupNamesCaseSensitive(): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Parses repository name and tries to split it into
|
|
154
|
-
* base, group, repository and branch.
|
|
155
|
-
* @param {string} [name]
|
|
156
|
-
* @param {string} focus where lies the focus if only one path component is given
|
|
157
|
-
* @returns {DecodedRepositoryName} result
|
|
158
|
-
*/
|
|
159
|
-
parseName(name?: string, focus?: string): DecodedRepositoryName;
|
|
160
|
-
/**
|
|
161
|
-
* Create a repository.
|
|
162
|
-
* @param {string} name of group and repository
|
|
163
|
-
* @param {Object} [options]
|
|
164
|
-
* @returns {Promise<Repository>}
|
|
165
|
-
*/
|
|
166
|
-
createRepository(name: string, options?: any): Promise<Repository>;
|
|
167
|
-
/**
|
|
168
|
-
* List provider objects of a given type.
|
|
169
|
-
*
|
|
170
|
-
* @param {string} type name of the method to deliver typed iterator projects,milestones,hooks,repositories,branches,tags
|
|
171
|
-
* @param {string[]} patterns group / repository filter
|
|
172
|
-
* @return {AsyncIterable<Repository|PullRequest|Branch|Tag|Project|Milestone|Hook>} all matching repositories of the providers
|
|
173
|
-
*/
|
|
174
|
-
list(type: string, patterns: string[]): AsyncIterable<Repository | PullRequest | Branch | Tag | Project | Milestone | Hook>;
|
|
175
|
-
/**
|
|
176
|
-
* List projects.
|
|
177
|
-
* @param {string[]|string} [patterns]
|
|
178
|
-
* @return {AsyncIterable<Project>} all matching projects of the provider
|
|
179
|
-
*/
|
|
180
|
-
projects(patterns?: string[] | string): AsyncIterable<Project>;
|
|
181
|
-
/**
|
|
182
|
-
* List milestones.
|
|
183
|
-
* @param {string[]|string} [patterns]
|
|
184
|
-
* @return {AsyncIterable<Milestone>} all matching milestones of the provider
|
|
185
|
-
*/
|
|
186
|
-
milestones(patterns?: string[] | string): AsyncIterable<Milestone>;
|
|
187
|
-
/**
|
|
188
|
-
* List repositories.
|
|
189
|
-
* @param {string[]|string} [patterns]
|
|
190
|
-
* @return {AsyncIterable<Repository>} all matching repos of the provider
|
|
191
|
-
*/
|
|
192
|
-
repositories(patterns?: string[] | string): AsyncIterable<Repository>;
|
|
193
|
-
/**
|
|
194
|
-
* List branches.
|
|
195
|
-
* @param {string[]|string} [patterns]
|
|
196
|
-
* @return {AsyncIterable<Branch>} all matching branches of the provider
|
|
197
|
-
*/
|
|
198
|
-
branches(patterns?: string[] | string): AsyncIterable<Branch>;
|
|
199
|
-
/**
|
|
200
|
-
* List tags.
|
|
201
|
-
* @param {string[]|string} [patterns]
|
|
202
|
-
* @return {AsyncIterable<Tag>} all matching tags of the provider
|
|
203
|
-
*/
|
|
204
|
-
tags(patterns?: string[] | string): AsyncIterable<Tag>;
|
|
205
|
-
/**
|
|
206
|
-
* List hooks.
|
|
207
|
-
* @param {string[]|string} [patterns]
|
|
208
|
-
* @return {AsyncIterable<Hook>} all matching hooks of the provider
|
|
209
|
-
*/
|
|
210
|
-
hooks(patterns?: string[] | string): AsyncIterable<Hook>;
|
|
211
|
-
/**
|
|
212
|
-
* List pull requests.
|
|
213
|
-
* @param {string[]|string} [patterns]
|
|
214
|
-
* @return {AsyncIterable<PullRequest>} all matching pullRequests of the provider
|
|
215
|
-
*/
|
|
216
|
-
pullRequests(patterns?: string[] | string): AsyncIterable<PullRequest>;
|
|
217
|
-
/**
|
|
218
|
-
* Deliver the provider name.
|
|
219
|
-
* @return {string} class name by default
|
|
220
|
-
*/
|
|
221
|
-
get name(): string;
|
|
222
|
-
/**
|
|
223
|
-
* We are our own provider.
|
|
224
|
-
* @return {BaseProvider} this
|
|
225
|
-
*/
|
|
226
|
-
get provider(): BaseProvider;
|
|
227
|
-
/**
|
|
228
|
-
* List all defined entries from attributes.
|
|
229
|
-
* @return {{name: string}}
|
|
230
|
-
*/
|
|
231
|
-
toJSON(): {
|
|
232
|
-
name: string;
|
|
233
|
-
};
|
|
234
|
-
initializeRepositories(): void;
|
|
235
|
-
trace(...args: any[]): any;
|
|
236
|
-
debug(...args: any[]): any;
|
|
237
|
-
info(...args: any[]): any;
|
|
238
|
-
warn(...args: any[]): any;
|
|
239
|
-
error(...args: any[]): any;
|
|
240
|
-
get repositoryGroupClass(): typeof RepositoryGroup;
|
|
241
|
-
get hookClass(): typeof Hook;
|
|
242
|
-
get repositoryClass(): typeof Repository;
|
|
243
|
-
get branchClass(): typeof Branch;
|
|
244
|
-
get tagClass(): typeof Tag;
|
|
245
|
-
get pullRequestClass(): typeof PullRequest;
|
|
246
|
-
}
|
|
247
|
-
export type Project = import("./project.mjs").Project;
|
|
248
|
-
export type Milestone = import("./milestone.mjs").Milestone;
|
|
249
|
-
export type DecodedRepositoryName = {
|
|
250
|
-
base?: string;
|
|
251
|
-
group?: string;
|
|
252
|
-
repository?: string;
|
|
253
|
-
branch?: string;
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* Endpoint to deliver log messages to.
|
|
257
|
-
*/
|
|
258
|
-
export type MessageDestination = {
|
|
259
|
-
info: (arg0: string) => void;
|
|
260
|
-
debug: (arg0: string) => void;
|
|
261
|
-
warn: (arg0: string) => void;
|
|
262
|
-
error: (arg0: string) => void;
|
|
263
|
-
trace: (arg0: string) => void;
|
|
264
|
-
};
|
|
265
|
-
import { BaseObject } from "./base-object.mjs";
|
|
266
|
-
import { Repository } from "./repository.mjs";
|
|
267
|
-
import { PullRequest } from "./pull-request.mjs";
|
|
268
|
-
import { Branch } from "./branch.mjs";
|
|
269
|
-
import { Tag } from "./tag.mjs";
|
|
270
|
-
import { Hook } from "./hook.mjs";
|
|
271
|
-
import { RepositoryGroup } from "./repository-group.mjs";
|
package/types/branch.d.mts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Abstract branch.
|
|
3
|
-
* @class Branch
|
|
4
|
-
* @see {@link Repository#_addBranch}
|
|
5
|
-
* @param {RepositoryOwner} owner
|
|
6
|
-
* @param {string} name
|
|
7
|
-
* @param {Object} options
|
|
8
|
-
*
|
|
9
|
-
* @property {Repository} repository
|
|
10
|
-
* @property {Provider} provider
|
|
11
|
-
* @property {string} name
|
|
12
|
-
*/
|
|
13
|
-
export class Branch extends Ref {
|
|
14
|
-
/**
|
|
15
|
-
* Delete the branch from the {@link Repository}.
|
|
16
|
-
* @see {@link Repository#deleteBranch}
|
|
17
|
-
* @return {Promise<any>}
|
|
18
|
-
*/
|
|
19
|
-
delete(): Promise<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Commit entries.
|
|
22
|
-
* @param {string} message commit message
|
|
23
|
-
* @param {ContentEntry[]} updates content to be commited
|
|
24
|
-
* @param {Object} options
|
|
25
|
-
* @return {Promise<CommitResult|undefined>}
|
|
26
|
-
*/
|
|
27
|
-
commit(message: string, updates: ContentEntry[], options: any): Promise<CommitResult | undefined>;
|
|
28
|
-
/**
|
|
29
|
-
* Add commits into a pull request.
|
|
30
|
-
*
|
|
31
|
-
* @param {Commit|AsyncGenerator<Commit>} commits to be commited
|
|
32
|
-
* @param {Object} options
|
|
33
|
-
* @param {Branch|string} options.pullRequestBranch to commit into
|
|
34
|
-
* @param {boolean} [options.dry=false] do not create a branch and do not commit only create dummy PR
|
|
35
|
-
* @param {boolean} options.skipWithoutCommits do not create a PR if no commits are given
|
|
36
|
-
* @param {boolean} options.bodyFromCommitMessages generate body from commit messages
|
|
37
|
-
* @param {string} [options.body] body of the PR
|
|
38
|
-
* @return {Promise<PullRequest>}
|
|
39
|
-
*/
|
|
40
|
-
commitIntoPullRequest(commits: Commit | AsyncGenerator<Commit>, options: {
|
|
41
|
-
pullRequestBranch: Branch | string;
|
|
42
|
-
dry?: boolean;
|
|
43
|
-
skipWithoutCommits: boolean;
|
|
44
|
-
bodyFromCommitMessages: boolean;
|
|
45
|
-
body?: string;
|
|
46
|
-
}): Promise<PullRequest>;
|
|
47
|
-
/**
|
|
48
|
-
* Remove entries form the branch.
|
|
49
|
-
* @param {AsyncIterable<ContentEntry>} entries
|
|
50
|
-
*/
|
|
51
|
-
removeEntries(entries: AsyncIterable<ContentEntry>): Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* Create a pull request.
|
|
54
|
-
* @param {Branch} toBranch
|
|
55
|
-
* @param {Object} [options]
|
|
56
|
-
* @return {Promise<PullRequest>}
|
|
57
|
-
*/
|
|
58
|
-
createPullRequest(toBranch: Branch, options?: any): Promise<PullRequest>;
|
|
59
|
-
_addPullRequest(pullRequest: any): Promise<void>;
|
|
60
|
-
deletePullRequest(name: any): Promise<any>;
|
|
61
|
-
/**
|
|
62
|
-
* Create a new {@link Branch} by cloning a given source branch.
|
|
63
|
-
* Simply calls Repository.createBranch() with the receiver as source branch
|
|
64
|
-
* @param {string} name the new branch
|
|
65
|
-
* @param {Object} [options] passed through
|
|
66
|
-
* @return {Promise<Branch>} newly created branch (or already present old one with the same name)
|
|
67
|
-
*/
|
|
68
|
-
createBranch(name: string, options?: any): Promise<Branch>;
|
|
69
|
-
}
|
|
70
|
-
import { Ref } from "./ref.mjs";
|
|
71
|
-
import { ContentEntry } from "content-entry";
|
|
72
|
-
import { CommitResult } from "./commit.mjs";
|
|
73
|
-
import { Commit } from "./commit.mjs";
|
|
74
|
-
import { PullRequest } from "./pull-request.mjs";
|
package/types/commit.d.mts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @property {string} ref
|
|
3
|
-
*/
|
|
4
|
-
export class CommitResult {
|
|
5
|
-
constructor(ref: any);
|
|
6
|
-
ref: any;
|
|
7
|
-
}
|
|
8
|
-
export class User {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @property {Repository} repository
|
|
12
|
-
* @property {string} message
|
|
13
|
-
* @property {string} sha
|
|
14
|
-
* @property {User} author
|
|
15
|
-
* @property {User} committer
|
|
16
|
-
*/
|
|
17
|
-
export class Commit {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @param {Repository} repository
|
|
21
|
-
* @param {Object} options
|
|
22
|
-
* @param {string} options.sha
|
|
23
|
-
* @param {string} options.message
|
|
24
|
-
* @param {string} options.author
|
|
25
|
-
* @param {string} options.committer
|
|
26
|
-
*/
|
|
27
|
-
constructor(repository: Repository, options: {
|
|
28
|
-
sha: string;
|
|
29
|
-
message: string;
|
|
30
|
-
author: string;
|
|
31
|
-
committer: string;
|
|
32
|
-
});
|
|
33
|
-
repository: Repository;
|
|
34
|
-
}
|
|
35
|
-
import { Repository } from "./repository.mjs";
|
package/types/hook.d.mts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Repository hook.
|
|
3
|
-
*/
|
|
4
|
-
export class Hook extends OwnedObject {
|
|
5
|
-
static defaultEvents: Set<string>;
|
|
6
|
-
static attributes: {
|
|
7
|
-
active: import("pacc").AttributeDefinition;
|
|
8
|
-
secret: import("pacc").AttributeDefinition;
|
|
9
|
-
url: {
|
|
10
|
-
description: string;
|
|
11
|
-
type: object;
|
|
12
|
-
isKey: boolean;
|
|
13
|
-
writable: boolean;
|
|
14
|
-
mandatory: boolean;
|
|
15
|
-
collection: boolean;
|
|
16
|
-
private?: boolean;
|
|
17
|
-
depends?: string;
|
|
18
|
-
default?: any;
|
|
19
|
-
set?: Function;
|
|
20
|
-
get?: Function;
|
|
21
|
-
prepareValue?: Function;
|
|
22
|
-
values?: Set<any>;
|
|
23
|
-
externalName?: string;
|
|
24
|
-
env?: string[] | string;
|
|
25
|
-
additionalValues?: object;
|
|
26
|
-
};
|
|
27
|
-
content_type: {
|
|
28
|
-
default: string;
|
|
29
|
-
type: object;
|
|
30
|
-
isKey: boolean;
|
|
31
|
-
writable: boolean;
|
|
32
|
-
mandatory: boolean;
|
|
33
|
-
collection: boolean;
|
|
34
|
-
private?: boolean;
|
|
35
|
-
depends?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
set?: Function;
|
|
38
|
-
get?: Function;
|
|
39
|
-
prepareValue?: Function;
|
|
40
|
-
values?: Set<any>;
|
|
41
|
-
externalName?: string;
|
|
42
|
-
env?: string[] | string;
|
|
43
|
-
additionalValues?: object;
|
|
44
|
-
};
|
|
45
|
-
insecure_ssl: import("pacc").AttributeDefinition;
|
|
46
|
-
events: {
|
|
47
|
-
default: Set<string>;
|
|
48
|
-
type: object;
|
|
49
|
-
isKey: boolean;
|
|
50
|
-
writable: boolean;
|
|
51
|
-
mandatory: boolean;
|
|
52
|
-
collection: boolean;
|
|
53
|
-
private?: boolean;
|
|
54
|
-
depends?: string;
|
|
55
|
-
description?: string;
|
|
56
|
-
set?: Function;
|
|
57
|
-
get?: Function;
|
|
58
|
-
prepareValue?: Function;
|
|
59
|
-
values?: Set<any>;
|
|
60
|
-
externalName?: string;
|
|
61
|
-
env?: string[] | string;
|
|
62
|
-
additionalValues?: object;
|
|
63
|
-
};
|
|
64
|
-
name: import("pacc").AttributeDefinition;
|
|
65
|
-
id: import("pacc").AttributeDefinition;
|
|
66
|
-
description: import("pacc").AttributeDefinition;
|
|
67
|
-
};
|
|
68
|
-
static get delteteMethodName(): string;
|
|
69
|
-
set events(value: Set<any>);
|
|
70
|
-
get events(): Set<any>;
|
|
71
|
-
_events: any;
|
|
72
|
-
}
|
|
73
|
-
import { OwnedObject } from "./owned-object.mjs";
|
package/types/index.d.mts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./base-object.mjs";
|
|
2
|
-
export * from "./named-object.mjs";
|
|
3
|
-
export * from "./repository-owner.mjs";
|
|
4
|
-
export * from "./single-group-provider.mjs";
|
|
5
|
-
export * from "./multi-group-provider.mjs";
|
|
6
|
-
export * from "./repository-group.mjs";
|
|
7
|
-
export * from "./repository.mjs";
|
|
8
|
-
export * from "./commit.mjs";
|
|
9
|
-
export * from "./branch.mjs";
|
|
10
|
-
export * from "./tag.mjs";
|
|
11
|
-
export * from "./project.mjs";
|
|
12
|
-
export * from "./issue.mjs";
|
|
13
|
-
export * from "./pull-request.mjs";
|
|
14
|
-
export * from "./hook.mjs";
|
|
15
|
-
export * from "./milestone.mjs";
|
|
16
|
-
export * from "./review.mjs";
|
|
17
|
-
export * from "./application.mjs";
|
|
18
|
-
export * from "./util.mjs";
|
|
19
|
-
export { OwnedObject } from "./owned-object.mjs";
|
|
20
|
-
export { BaseProvider } from "./base-provider.mjs";
|
|
21
|
-
export { Ref } from "./ref.mjs";
|
package/types/issue.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
export class Issue extends OwnedObject {
|
|
5
|
-
labels(): AsyncGenerator<never, void, unknown>;
|
|
6
|
-
assignees(): AsyncGenerator<never, void, unknown>;
|
|
7
|
-
assignee(): Promise<void>;
|
|
8
|
-
milestone(): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
import { OwnedObject } from "./owned-object.mjs";
|
package/types/milestone.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*/
|
|
3
|
-
export class Milestone extends OwnedObject {
|
|
4
|
-
static attributes: {
|
|
5
|
-
state: import("pacc").AttributeDefinition;
|
|
6
|
-
name: import("pacc").AttributeDefinition;
|
|
7
|
-
id: import("pacc").AttributeDefinition;
|
|
8
|
-
description: import("pacc").AttributeDefinition;
|
|
9
|
-
};
|
|
10
|
-
issues(): AsyncGenerator<never, void, unknown>;
|
|
11
|
-
}
|
|
12
|
-
import { OwnedObject } from "./owned-object.mjs";
|