@oh-my-ghaad/gitlab 0.0.11 → 0.0.13

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @oh-my-ghaad/gitlab@0.0.7 build /Volumes/T7/repos/oh-my-ghaad/packages/adapter-gitlab
3
+ > @oh-my-ghaad/gitlab@0.0.12 build /Volumes/T7/repos/oh-my-ghaad/packages/adapter-gitlab
4
4
  > tsup src/index.ts --dts --dts-resolve --format esm,cjs
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -9,11 +9,11 @@
9
9
  CLI Target: esnext
10
10
  ESM Build start
11
11
  CJS Build start
12
- CJS dist/index.cjs 9.24 KB
13
- CJS ⚡️ Build success in 12ms
14
- ESM dist/index.js 8.20 KB
15
- ESM ⚡️ Build success in 12ms
12
+ ESM dist/index.js 7.45 KB
13
+ ESM ⚡️ Build success in 11ms
14
+ CJS dist/index.cjs 8.49 KB
15
+ CJS ⚡️ Build success in 11ms
16
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
17
+ DTS ⚡️ Build success in 513ms
18
+ DTS dist/index.d.ts 995.00 B
19
+ DTS dist/index.d.cts 995.00 B
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [0.0.13](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.12...v0.0.13) (2025-10-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove PR methods and other unused methods ([2227905](https://github.com/cmgriffing/oh-my-ghaad/commit/222790537f47c5cc385187cc4656d2450d47f7a7))
7
+
8
+
9
+
10
+ ## [0.0.12](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.11...v0.0.12) (2025-10-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * make existing file check be an exclusive if else if ([ce355be](https://github.com/cmgriffing/oh-my-ghaad/commit/ce355bed7a8f21bbc7f4cc149ec43e547288d1dc))
16
+
17
+
18
+
1
19
  ## [0.0.11](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.10...v0.0.11) (2025-10-06)
2
20
 
3
21
 
package/dist/index.cjs CHANGED
@@ -177,8 +177,7 @@ var GitlabAdapter = class extends import_core.Adapter {
177
177
  if (existingFileOrError.cause.response.status === 401 && this.unauthorizedHandler) {
178
178
  this.unauthorizedHandler();
179
179
  }
180
- }
181
- if (existingFileOrError) {
180
+ } else if (existingFileOrError) {
182
181
  throw new Error("File already exists");
183
182
  }
184
183
  const createdFileOrError = await this.api.Commits.create(
@@ -281,37 +280,6 @@ var GitlabAdapter = class extends import_core.Adapter {
281
280
  }
282
281
  return;
283
282
  }
284
- // TODO: Why did I add this method?
285
- async createCommit({}) {
286
- return;
287
- }
288
- // -----------------------------------------------------------------------------
289
- // TODO: Pull Requests and File History are not yet implemented or used in the demo app yet
290
- // -----------------------------------------------------------------------------
291
- async fetchFileHistory(path) {
292
- return [];
293
- }
294
- async fetchPullRequests() {
295
- return [];
296
- }
297
- async createPullRequest() {
298
- return;
299
- }
300
- async fetchPullRequest() {
301
- return {
302
- id: "",
303
- title: "",
304
- description: "",
305
- commitSha: "",
306
- createdAt: ""
307
- };
308
- }
309
- async updatePullRequest() {
310
- return;
311
- }
312
- async deletePullRequest() {
313
- return;
314
- }
315
283
  };
316
284
  // Annotate the CommonJS export names for ESM import in node:
317
285
  0 && (module.exports = {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Adapter, IAdapter, CommitRequest } from '@oh-my-ghaad/core';
1
+ import { Adapter, IAdapter } from '@oh-my-ghaad/core';
2
2
 
3
3
  declare class GitlabAdapter extends Adapter implements IAdapter {
4
4
  readonly name = "GitLab";
@@ -21,19 +21,6 @@ declare class GitlabAdapter extends Adapter implements IAdapter {
21
21
  createFile(path: string, content: string, message?: string): Promise<void>;
22
22
  updateFile(path: string, content: string, message?: string): Promise<void>;
23
23
  deleteFile(path: string, message?: string): Promise<void>;
24
- createCommit({}: CommitRequest): Promise<void>;
25
- fetchFileHistory(path: string): Promise<any[]>;
26
- fetchPullRequests(): Promise<any[]>;
27
- createPullRequest(): Promise<void>;
28
- fetchPullRequest(): Promise<{
29
- id: string;
30
- title: string;
31
- description: string;
32
- commitSha: string;
33
- createdAt: string;
34
- }>;
35
- updatePullRequest(): Promise<void>;
36
- deletePullRequest(): Promise<void>;
37
24
  }
38
25
 
39
26
  export { GitlabAdapter };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Adapter, IAdapter, CommitRequest } from '@oh-my-ghaad/core';
1
+ import { Adapter, IAdapter } from '@oh-my-ghaad/core';
2
2
 
3
3
  declare class GitlabAdapter extends Adapter implements IAdapter {
4
4
  readonly name = "GitLab";
@@ -21,19 +21,6 @@ declare class GitlabAdapter extends Adapter implements IAdapter {
21
21
  createFile(path: string, content: string, message?: string): Promise<void>;
22
22
  updateFile(path: string, content: string, message?: string): Promise<void>;
23
23
  deleteFile(path: string, message?: string): Promise<void>;
24
- createCommit({}: CommitRequest): Promise<void>;
25
- fetchFileHistory(path: string): Promise<any[]>;
26
- fetchPullRequests(): Promise<any[]>;
27
- createPullRequest(): Promise<void>;
28
- fetchPullRequest(): Promise<{
29
- id: string;
30
- title: string;
31
- description: string;
32
- commitSha: string;
33
- createdAt: string;
34
- }>;
35
- updatePullRequest(): Promise<void>;
36
- deletePullRequest(): Promise<void>;
37
24
  }
38
25
 
39
26
  export { GitlabAdapter };
package/dist/index.js CHANGED
@@ -152,8 +152,7 @@ var GitlabAdapter = class extends Adapter {
152
152
  if (existingFileOrError.cause.response.status === 401 && this.unauthorizedHandler) {
153
153
  this.unauthorizedHandler();
154
154
  }
155
- }
156
- if (existingFileOrError) {
155
+ } else if (existingFileOrError) {
157
156
  throw new Error("File already exists");
158
157
  }
159
158
  const createdFileOrError = await this.api.Commits.create(
@@ -256,37 +255,6 @@ var GitlabAdapter = class extends Adapter {
256
255
  }
257
256
  return;
258
257
  }
259
- // TODO: Why did I add this method?
260
- async createCommit({}) {
261
- return;
262
- }
263
- // -----------------------------------------------------------------------------
264
- // TODO: Pull Requests and File History are not yet implemented or used in the demo app yet
265
- // -----------------------------------------------------------------------------
266
- async fetchFileHistory(path) {
267
- return [];
268
- }
269
- async fetchPullRequests() {
270
- return [];
271
- }
272
- async createPullRequest() {
273
- return;
274
- }
275
- async fetchPullRequest() {
276
- return {
277
- id: "",
278
- title: "",
279
- description: "",
280
- commitSha: "",
281
- createdAt: ""
282
- };
283
- }
284
- async updatePullRequest() {
285
- return;
286
- }
287
- async deletePullRequest() {
288
- return;
289
- }
290
258
  };
291
259
  export {
292
260
  GitlabAdapter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-ghaad/gitlab",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
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.11"
13
+ "@oh-my-ghaad/core": "0.0.13"
14
14
  },
15
15
  "devDependencies": {
16
16
  "tsup": "^8.5.0",
package/src/adapter.ts CHANGED
@@ -168,9 +168,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
168
168
  ) {
169
169
  this.unauthorizedHandler();
170
170
  }
171
- }
172
-
173
- if (existingFileOrError) {
171
+ } else if (existingFileOrError) {
174
172
  throw new Error("File already exists");
175
173
  }
176
174
 
@@ -304,42 +302,4 @@ export class GitlabAdapter extends Adapter implements IAdapter {
304
302
 
305
303
  return;
306
304
  }
307
-
308
- // TODO: Why did I add this method?
309
- async createCommit({}: CommitRequest) {
310
- return;
311
- }
312
-
313
- // -----------------------------------------------------------------------------
314
- // TODO: Pull Requests and File History are not yet implemented or used in the demo app yet
315
- // -----------------------------------------------------------------------------
316
- async fetchFileHistory(path: string) {
317
- return [];
318
- }
319
-
320
- async fetchPullRequests() {
321
- return [];
322
- }
323
-
324
- async createPullRequest() {
325
- return;
326
- }
327
-
328
- async fetchPullRequest() {
329
- return {
330
- id: "",
331
- title: "",
332
- description: "",
333
- commitSha: "",
334
- createdAt: "",
335
- };
336
- }
337
-
338
- async updatePullRequest() {
339
- return;
340
- }
341
-
342
- async deletePullRequest() {
343
- return;
344
- }
345
305
  }