@oh-my-ghaad/gitlab 0.0.6 → 0.0.8
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/.turbo/turbo-build.log +19 -0
- package/CHANGELOG.md +13 -0
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +2 -2
- package/src/adapter.ts +9 -9
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @oh-my-ghaad/gitlab@0.0.7 build /Volumes/T7/repos/oh-my-ghaad/packages/adapter-gitlab
|
|
4
|
+
> tsup src/index.ts --dts --dts-resolve --format esm,cjs
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.0
|
|
9
|
+
[34mCLI[39m Target: esnext
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m9.24 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 12ms
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m8.20 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 12ms
|
|
16
|
+
DTS Build start
|
|
17
|
+
DTS ⚡️ Build success in 505ms
|
|
18
|
+
DTS dist/index.d.ts 1.41 KB
|
|
19
|
+
DTS dist/index.d.cts 1.41 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [0.0.8](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.7...v0.0.8) (2025-10-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* instead of storing owner and repo separate, store the whole RepositoryResponse object ([db60e6b](https://github.com/cmgriffing/oh-my-ghaad/commit/db60e6b65f2232613a2de3ba6c0a45a51cbb0b27))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.0.7](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.6...v0.0.7) (2025-10-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
## [0.0.6](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.5...v0.0.6) (2025-10-04)
|
|
2
15
|
|
|
3
16
|
|
package/dist/index.cjs
CHANGED
|
@@ -101,7 +101,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
101
101
|
}
|
|
102
102
|
async fetchFile(path) {
|
|
103
103
|
const fileOrError = await this.api.RepositoryFiles.show(
|
|
104
|
-
this.repo,
|
|
104
|
+
this.repo.id,
|
|
105
105
|
path,
|
|
106
106
|
"HEAD"
|
|
107
107
|
).catch((error) => {
|
|
@@ -125,7 +125,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
125
125
|
}
|
|
126
126
|
async fetchDirectory(directoryPath) {
|
|
127
127
|
const filesOrError = await this.api.Repositories.allRepositoryTrees(
|
|
128
|
-
this.repo,
|
|
128
|
+
this.repo.id,
|
|
129
129
|
{
|
|
130
130
|
path: directoryPath
|
|
131
131
|
}
|
|
@@ -149,7 +149,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
151
|
async createFile(path, content, message) {
|
|
152
|
-
const branchesOrError = await this.api.Branches.all(this.repo).catch(
|
|
152
|
+
const branchesOrError = await this.api.Branches.all(this.repo.id).catch(
|
|
153
153
|
(error) => {
|
|
154
154
|
console.error(error);
|
|
155
155
|
return error;
|
|
@@ -166,7 +166,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
166
166
|
throw new Error("Failed to find default branch");
|
|
167
167
|
}
|
|
168
168
|
const existingFileOrError = await this.api.RepositoryFiles.show(
|
|
169
|
-
this.repo,
|
|
169
|
+
this.repo.id,
|
|
170
170
|
path,
|
|
171
171
|
branch.name
|
|
172
172
|
).catch((error) => {
|
|
@@ -183,7 +183,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
183
183
|
throw new Error("File already exists");
|
|
184
184
|
}
|
|
185
185
|
const createdFileOrError = await this.api.Commits.create(
|
|
186
|
-
this.repo,
|
|
186
|
+
this.repo.id,
|
|
187
187
|
branch.name,
|
|
188
188
|
message || `Create file: ${path}`,
|
|
189
189
|
[
|
|
@@ -207,7 +207,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
async updateFile(path, content, message) {
|
|
210
|
-
const branchesOrError = await this.api.Branches.all(this.repo).catch(
|
|
210
|
+
const branchesOrError = await this.api.Branches.all(this.repo.id).catch(
|
|
211
211
|
(error) => {
|
|
212
212
|
console.error(error);
|
|
213
213
|
return error;
|
|
@@ -224,7 +224,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
224
224
|
throw new Error("Failed to find default branch");
|
|
225
225
|
}
|
|
226
226
|
const existingFileOrError = await this.api.RepositoryFiles.show(
|
|
227
|
-
this.repo,
|
|
227
|
+
this.repo.id,
|
|
228
228
|
path,
|
|
229
229
|
branch.name
|
|
230
230
|
).catch((error) => {
|
|
@@ -241,7 +241,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
241
241
|
throw new Error("File does not exist");
|
|
242
242
|
}
|
|
243
243
|
const createdFileOrError = await this.api.Commits.create(
|
|
244
|
-
this.repo,
|
|
244
|
+
this.repo.id,
|
|
245
245
|
branch.name,
|
|
246
246
|
message || `Create file: ${path}`,
|
|
247
247
|
[
|
|
@@ -266,7 +266,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
266
266
|
}
|
|
267
267
|
async deleteFile(path, message) {
|
|
268
268
|
const responseOrError = await this.api.RepositoryFiles.remove(
|
|
269
|
-
this.repo,
|
|
269
|
+
this.repo.id,
|
|
270
270
|
path,
|
|
271
271
|
"HEAD",
|
|
272
272
|
message || `Delete file: ${path}`
|
package/dist/index.js
CHANGED
|
@@ -76,7 +76,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
76
76
|
}
|
|
77
77
|
async fetchFile(path) {
|
|
78
78
|
const fileOrError = await this.api.RepositoryFiles.show(
|
|
79
|
-
this.repo,
|
|
79
|
+
this.repo.id,
|
|
80
80
|
path,
|
|
81
81
|
"HEAD"
|
|
82
82
|
).catch((error) => {
|
|
@@ -100,7 +100,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
100
100
|
}
|
|
101
101
|
async fetchDirectory(directoryPath) {
|
|
102
102
|
const filesOrError = await this.api.Repositories.allRepositoryTrees(
|
|
103
|
-
this.repo,
|
|
103
|
+
this.repo.id,
|
|
104
104
|
{
|
|
105
105
|
path: directoryPath
|
|
106
106
|
}
|
|
@@ -124,7 +124,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
async createFile(path, content, message) {
|
|
127
|
-
const branchesOrError = await this.api.Branches.all(this.repo).catch(
|
|
127
|
+
const branchesOrError = await this.api.Branches.all(this.repo.id).catch(
|
|
128
128
|
(error) => {
|
|
129
129
|
console.error(error);
|
|
130
130
|
return error;
|
|
@@ -141,7 +141,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
141
141
|
throw new Error("Failed to find default branch");
|
|
142
142
|
}
|
|
143
143
|
const existingFileOrError = await this.api.RepositoryFiles.show(
|
|
144
|
-
this.repo,
|
|
144
|
+
this.repo.id,
|
|
145
145
|
path,
|
|
146
146
|
branch.name
|
|
147
147
|
).catch((error) => {
|
|
@@ -158,7 +158,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
158
158
|
throw new Error("File already exists");
|
|
159
159
|
}
|
|
160
160
|
const createdFileOrError = await this.api.Commits.create(
|
|
161
|
-
this.repo,
|
|
161
|
+
this.repo.id,
|
|
162
162
|
branch.name,
|
|
163
163
|
message || `Create file: ${path}`,
|
|
164
164
|
[
|
|
@@ -182,7 +182,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
async updateFile(path, content, message) {
|
|
185
|
-
const branchesOrError = await this.api.Branches.all(this.repo).catch(
|
|
185
|
+
const branchesOrError = await this.api.Branches.all(this.repo.id).catch(
|
|
186
186
|
(error) => {
|
|
187
187
|
console.error(error);
|
|
188
188
|
return error;
|
|
@@ -199,7 +199,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
199
199
|
throw new Error("Failed to find default branch");
|
|
200
200
|
}
|
|
201
201
|
const existingFileOrError = await this.api.RepositoryFiles.show(
|
|
202
|
-
this.repo,
|
|
202
|
+
this.repo.id,
|
|
203
203
|
path,
|
|
204
204
|
branch.name
|
|
205
205
|
).catch((error) => {
|
|
@@ -216,7 +216,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
216
216
|
throw new Error("File does not exist");
|
|
217
217
|
}
|
|
218
218
|
const createdFileOrError = await this.api.Commits.create(
|
|
219
|
-
this.repo,
|
|
219
|
+
this.repo.id,
|
|
220
220
|
branch.name,
|
|
221
221
|
message || `Create file: ${path}`,
|
|
222
222
|
[
|
|
@@ -241,7 +241,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
241
241
|
}
|
|
242
242
|
async deleteFile(path, message) {
|
|
243
243
|
const responseOrError = await this.api.RepositoryFiles.remove(
|
|
244
|
-
this.repo,
|
|
244
|
+
this.repo.id,
|
|
245
245
|
path,
|
|
246
246
|
"HEAD",
|
|
247
247
|
message || `Delete file: ${path}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-ghaad/gitlab",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@gitbeaker/rest": "^43.5.0",
|
|
13
|
-
"@oh-my-ghaad/core": "0.0.
|
|
13
|
+
"@oh-my-ghaad/core": "0.0.8"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"tsup": "^8.5.0",
|
package/src/adapter.ts
CHANGED
|
@@ -65,7 +65,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
65
65
|
|
|
66
66
|
async fetchFile(path: string) {
|
|
67
67
|
const fileOrError = await this.api.RepositoryFiles.show(
|
|
68
|
-
this.repo,
|
|
68
|
+
this.repo.id,
|
|
69
69
|
path,
|
|
70
70
|
"HEAD"
|
|
71
71
|
).catch((error: GitbeakerRequestError) => {
|
|
@@ -96,7 +96,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
96
96
|
|
|
97
97
|
async fetchDirectory(directoryPath: string) {
|
|
98
98
|
const filesOrError = await this.api.Repositories.allRepositoryTrees(
|
|
99
|
-
this.repo,
|
|
99
|
+
this.repo.id,
|
|
100
100
|
{
|
|
101
101
|
path: directoryPath,
|
|
102
102
|
}
|
|
@@ -129,7 +129,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
async createFile(path: string, content: string, message?: string) {
|
|
132
|
-
const branchesOrError = await this.api.Branches.all(this.repo).catch(
|
|
132
|
+
const branchesOrError = await this.api.Branches.all(this.repo.id).catch(
|
|
133
133
|
(error: GitbeakerRequestError) => {
|
|
134
134
|
console.error(error);
|
|
135
135
|
return error;
|
|
@@ -153,7 +153,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
const existingFileOrError = await this.api.RepositoryFiles.show(
|
|
156
|
-
this.repo,
|
|
156
|
+
this.repo.id,
|
|
157
157
|
path,
|
|
158
158
|
branch.name
|
|
159
159
|
).catch((error: GitbeakerRequestError) => {
|
|
@@ -176,7 +176,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
const createdFileOrError = await this.api.Commits.create(
|
|
179
|
-
this.repo,
|
|
179
|
+
this.repo.id,
|
|
180
180
|
branch.name,
|
|
181
181
|
message || `Create file: ${path}`,
|
|
182
182
|
[
|
|
@@ -206,7 +206,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
async updateFile(path: string, content: string, message?: string) {
|
|
209
|
-
const branchesOrError = await this.api.Branches.all(this.repo).catch(
|
|
209
|
+
const branchesOrError = await this.api.Branches.all(this.repo.id).catch(
|
|
210
210
|
(error: GitbeakerRequestError) => {
|
|
211
211
|
console.error(error);
|
|
212
212
|
return error;
|
|
@@ -230,7 +230,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
const existingFileOrError = await this.api.RepositoryFiles.show(
|
|
233
|
-
this.repo,
|
|
233
|
+
this.repo.id,
|
|
234
234
|
path,
|
|
235
235
|
branch.name
|
|
236
236
|
).catch((error: GitbeakerRequestError) => {
|
|
@@ -253,7 +253,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
const createdFileOrError = await this.api.Commits.create(
|
|
256
|
-
this.repo,
|
|
256
|
+
this.repo.id,
|
|
257
257
|
branch.name,
|
|
258
258
|
message || `Create file: ${path}`,
|
|
259
259
|
[
|
|
@@ -284,7 +284,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
284
284
|
|
|
285
285
|
async deleteFile(path: string, message?: string) {
|
|
286
286
|
const responseOrError = await this.api.RepositoryFiles.remove(
|
|
287
|
-
this.repo,
|
|
287
|
+
this.repo.id,
|
|
288
288
|
path,
|
|
289
289
|
"HEAD",
|
|
290
290
|
message || `Delete file: ${path}`
|