@oh-gc/cli 0.7.1 → 0.7.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 +36 -0
- package/dist/api/issues.d.ts +43 -0
- package/dist/api/issues.js +33 -0
- package/dist/api/issues.js.map +1 -1
- package/dist/api/prs.d.ts +52 -0
- package/dist/api/prs.js +63 -0
- package/dist/api/prs.js.map +1 -1
- package/dist/api/repos.d.ts +36 -0
- package/dist/api/repos.js +39 -0
- package/dist/api/repos.js.map +1 -1
- package/dist/api/tags.d.ts +25 -0
- package/dist/api/tags.js +34 -0
- package/dist/api/tags.js.map +1 -1
- package/dist/commands/branch/create.d.ts +14 -0
- package/dist/commands/branch/create.js +48 -0
- package/dist/commands/branch/create.js.map +1 -0
- package/dist/commands/branch/delete.d.ts +13 -0
- package/dist/commands/branch/delete.js +42 -0
- package/dist/commands/branch/delete.js.map +1 -0
- package/dist/commands/branch/protect-rule-create.d.ts +15 -0
- package/dist/commands/branch/protect-rule-create.js +53 -0
- package/dist/commands/branch/protect-rule-create.js.map +1 -0
- package/dist/commands/branch/protect-rule-delete.d.ts +13 -0
- package/dist/commands/branch/protect-rule-delete.js +42 -0
- package/dist/commands/branch/protect-rule-delete.js.map +1 -0
- package/dist/commands/branch/protect-rule-update.d.ts +15 -0
- package/dist/commands/branch/protect-rule-update.js +57 -0
- package/dist/commands/branch/protect-rule-update.js.map +1 -0
- package/dist/commands/branch/protect-rules.d.ts +12 -0
- package/dist/commands/branch/protect-rules.js +53 -0
- package/dist/commands/branch/protect-rules.js.map +1 -0
- package/dist/commands/commit/comment.d.ts +14 -0
- package/dist/commands/commit/comment.js +48 -0
- package/dist/commands/commit/comment.js.map +1 -0
- package/dist/commands/commit/comments.d.ts +15 -0
- package/dist/commands/commit/comments.js +57 -0
- package/dist/commands/commit/comments.js.map +1 -0
- package/dist/commands/file/create.d.ts +18 -0
- package/dist/commands/file/create.js +64 -0
- package/dist/commands/file/create.js.map +1 -0
- package/dist/commands/file/delete.d.ts +16 -0
- package/dist/commands/file/delete.js +56 -0
- package/dist/commands/file/delete.js.map +1 -0
- package/dist/commands/file/update.d.ts +19 -0
- package/dist/commands/file/update.js +69 -0
- package/dist/commands/file/update.js.map +1 -0
- package/dist/commands/issue/branches.d.ts +14 -0
- package/dist/commands/issue/branches.js +69 -0
- package/dist/commands/issue/branches.js.map +1 -0
- package/dist/commands/issue/comment-delete.d.ts +16 -0
- package/dist/commands/issue/comment-delete.js +42 -0
- package/dist/commands/issue/comment-delete.js.map +1 -0
- package/dist/commands/issue/comment-edit.d.ts +17 -0
- package/dist/commands/issue/comment-edit.js +48 -0
- package/dist/commands/issue/comment-edit.js.map +1 -0
- package/dist/commands/issue/comment-get.d.ts +16 -0
- package/dist/commands/issue/comment-get.js +50 -0
- package/dist/commands/issue/comment-get.js.map +1 -0
- package/dist/commands/issue/comment-history.d.ts +16 -0
- package/dist/commands/issue/comment-history.js +51 -0
- package/dist/commands/issue/comment-history.js.map +1 -0
- package/dist/commands/issue/comment-reactions.d.ts +19 -0
- package/dist/commands/issue/comment-reactions.js +58 -0
- package/dist/commands/issue/comment-reactions.js.map +1 -0
- package/dist/commands/issue/prs.d.ts +14 -0
- package/dist/commands/issue/prs.js +56 -0
- package/dist/commands/issue/prs.js.map +1 -0
- package/dist/commands/pr/assignees.d.ts +20 -0
- package/dist/commands/pr/assignees.js +76 -0
- package/dist/commands/pr/assignees.js.map +1 -0
- package/dist/commands/pr/comment-delete.d.ts +16 -0
- package/dist/commands/pr/comment-delete.js +42 -0
- package/dist/commands/pr/comment-delete.js.map +1 -0
- package/dist/commands/pr/comment-edit.d.ts +17 -0
- package/dist/commands/pr/comment-edit.js +48 -0
- package/dist/commands/pr/comment-edit.js.map +1 -0
- package/dist/commands/pr/comment-get.d.ts +16 -0
- package/dist/commands/pr/comment-get.js +49 -0
- package/dist/commands/pr/comment-get.js.map +1 -0
- package/dist/commands/pr/comment-history.d.ts +16 -0
- package/dist/commands/pr/comment-history.js +51 -0
- package/dist/commands/pr/comment-history.js.map +1 -0
- package/dist/commands/pr/comment-reactions.d.ts +19 -0
- package/dist/commands/pr/comment-reactions.js +58 -0
- package/dist/commands/pr/comment-reactions.js.map +1 -0
- package/dist/commands/pr/files.d.ts +16 -0
- package/dist/commands/pr/files.js +52 -0
- package/dist/commands/pr/files.js.map +1 -0
- package/dist/commands/pr/history.d.ts +16 -0
- package/dist/commands/pr/history.js +51 -0
- package/dist/commands/pr/history.js.map +1 -0
- package/dist/commands/pr/labels.d.ts +1 -0
- package/dist/commands/pr/labels.js +18 -0
- package/dist/commands/pr/labels.js.map +1 -1
- package/dist/commands/pr/linked-issues.d.ts +18 -0
- package/dist/commands/pr/linked-issues.js +56 -0
- package/dist/commands/pr/linked-issues.js.map +1 -0
- package/dist/commands/pr/option-reviewers.d.ts +16 -0
- package/dist/commands/pr/option-reviewers.js +50 -0
- package/dist/commands/pr/option-reviewers.js.map +1 -0
- package/dist/commands/pr/settings-update.d.ts +18 -0
- package/dist/commands/pr/settings-update.js +74 -0
- package/dist/commands/pr/settings-update.js.map +1 -0
- package/dist/commands/pr/settings.d.ts +10 -0
- package/dist/commands/pr/settings.js +45 -0
- package/dist/commands/pr/settings.js.map +1 -0
- package/dist/commands/tag/create.d.ts +15 -0
- package/dist/commands/tag/create.js +58 -0
- package/dist/commands/tag/create.js.map +1 -0
- package/dist/commands/tag/delete.d.ts +13 -0
- package/dist/commands/tag/delete.js +42 -0
- package/dist/commands/tag/delete.js.map +1 -0
- package/dist/commands/tag/protect-create.d.ts +14 -0
- package/dist/commands/tag/protect-create.js +57 -0
- package/dist/commands/tag/protect-create.js.map +1 -0
- package/dist/commands/tag/protect-delete.d.ts +13 -0
- package/dist/commands/tag/protect-delete.js +42 -0
- package/dist/commands/tag/protect-delete.js.map +1 -0
- package/dist/commands/tag/protect-get.d.ts +13 -0
- package/dist/commands/tag/protect-get.js +48 -0
- package/dist/commands/tag/protect-get.js.map +1 -0
- package/dist/commands/tag/protect-update.d.ts +14 -0
- package/dist/commands/tag/protect-update.js +54 -0
- package/dist/commands/tag/protect-update.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const contents_1 = require("../../api/contents");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class FileCreate extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(FileCreate);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const content = Buffer.from(flags.content).toString('base64');
|
|
25
|
+
const params = { message: flags.message, content };
|
|
26
|
+
if (flags.branch)
|
|
27
|
+
params.branch = flags.branch;
|
|
28
|
+
if (flags['author-name'] || flags['author-email']) {
|
|
29
|
+
params.author = {
|
|
30
|
+
name: flags['author-name'] || '',
|
|
31
|
+
email: flags['author-email'] || '',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const result = await (0, contents_1.createFile)(token, owner, repo, args.path, params);
|
|
35
|
+
if (flags.json) {
|
|
36
|
+
(0, index_2.printJson)(result);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
this.log(`Created ${args.path} (${result.commit.sha.substring(0, 7)})`);
|
|
40
|
+
}
|
|
41
|
+
catch (err) {
|
|
42
|
+
if (err instanceof client_1.GitCodeError)
|
|
43
|
+
this.error(err.message);
|
|
44
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
FileCreate.description = 'Create a file in the repository';
|
|
49
|
+
FileCreate.examples = [
|
|
50
|
+
'<%= config.bin %> file create README.md --content "# Hello" --message "Add README"',
|
|
51
|
+
];
|
|
52
|
+
FileCreate.args = {
|
|
53
|
+
path: core_1.Args.string({ description: 'File path in the repository', required: true }),
|
|
54
|
+
};
|
|
55
|
+
FileCreate.flags = {
|
|
56
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
57
|
+
content: core_1.Flags.string({ description: 'File content (will be base64 encoded)', required: true }),
|
|
58
|
+
message: core_1.Flags.string({ description: 'Commit message', required: true }),
|
|
59
|
+
branch: core_1.Flags.string({ description: 'Target branch' }),
|
|
60
|
+
'author-name': core_1.Flags.string({ description: 'Commit author name' }),
|
|
61
|
+
'author-email': core_1.Flags.string({ description: 'Commit author email' }),
|
|
62
|
+
};
|
|
63
|
+
exports.default = FileCreate;
|
|
64
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/file/create.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AACzC,qDAAgD;AAChD,8CAA6C;AAC7C,iDAA+C;AAC/C,6CAA+C;AAC/C,0CAA0C;AAE1C,MAAqB,UAAW,SAAQ,0BAAW;IAmBjD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAEpD,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAA;QACxB,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;QAE9D,IAAI,KAAa,EAAE,IAAY,CAAA;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YAAY,qBAAY;gBAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACxD,IAAI,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;QAC7E,CAAC;IACH,CAAC;;AAtDM,sBAAW,GAAG,iCAAiC,CAAA;AAC/C,mBAAQ,GAAG;IAChB,oFAAoF;CACrF,CAAA;AAEM,eAAI,GAAG;IACZ,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CAClF,CAAA;AAEM,gBAAK,GAAG;IACb,GAAG,0BAAW,CAAC,SAAS;IACxB,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,uCAAuC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/F,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACtD,aAAa,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAClE,cAAc,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACrE,CAAA;kBAjBkB,UAAU"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RepoCommand } from '../../repo-command';
|
|
2
|
+
export default class FileDelete extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
path: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
sha: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
message: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const contents_1 = require("../../api/contents");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class FileDelete extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(FileDelete);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const params = {
|
|
25
|
+
message: flags.message,
|
|
26
|
+
sha: flags.sha,
|
|
27
|
+
};
|
|
28
|
+
if (flags.branch)
|
|
29
|
+
params.branch = flags.branch;
|
|
30
|
+
const result = await (0, contents_1.deleteFile)(token, owner, repo, args.path, params);
|
|
31
|
+
if (flags.json) {
|
|
32
|
+
(0, index_2.printJson)(result);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.log(`Deleted ${args.path} (${result.commit.sha.substring(0, 7)})`);
|
|
36
|
+
}
|
|
37
|
+
catch (err) {
|
|
38
|
+
if (err instanceof client_1.GitCodeError)
|
|
39
|
+
this.error(err.message);
|
|
40
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
FileDelete.description = 'Delete a file from the repository';
|
|
45
|
+
FileDelete.examples = ['<%= config.bin %> file delete old-file.txt --sha abc123 --message "Remove old file"'];
|
|
46
|
+
FileDelete.args = {
|
|
47
|
+
path: core_1.Args.string({ description: 'File path in the repository', required: true }),
|
|
48
|
+
};
|
|
49
|
+
FileDelete.flags = {
|
|
50
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
51
|
+
sha: core_1.Flags.string({ description: 'Current file blob SHA', required: true }),
|
|
52
|
+
message: core_1.Flags.string({ description: 'Commit message', required: true }),
|
|
53
|
+
branch: core_1.Flags.string({ description: 'Target branch' }),
|
|
54
|
+
};
|
|
55
|
+
exports.default = FileDelete;
|
|
56
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/commands/file/delete.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AACzC,qDAAgD;AAChD,8CAA6C;AAC7C,iDAA+C;AAC/C,6CAA+C;AAC/C,0CAA0C;AAE1C,MAAqB,UAAW,SAAQ,0BAAW;IAejD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAEpD,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAA;QACxB,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;QAE9D,IAAI,KAAa,EAAE,IAAY,C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AAQ,EAAE,IAAI,EAAE,CAAC;CAClF,CAAA;AAEM,gBAAK,GAAG;IACb,GAAG,0BAAW,CAAC,SAAS;IACxB,GAAG,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3E,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxE,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;CACvD,CAAA;kBAbkB,UAAU"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RepoCommand } from '../../repo-command';
|
|
2
|
+
export default class FileUpdate extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
path: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
sha: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
content: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
message: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
'author-name': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
'author-email': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const contents_1 = require("../../api/contents");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class FileUpdate extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(FileUpdate);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const content = Buffer.from(flags.content).toString('base64');
|
|
25
|
+
const params = {
|
|
26
|
+
message: flags.message,
|
|
27
|
+
content,
|
|
28
|
+
sha: flags.sha,
|
|
29
|
+
};
|
|
30
|
+
if (flags.branch)
|
|
31
|
+
params.branch = flags.branch;
|
|
32
|
+
if (flags['author-name'] || flags['author-email']) {
|
|
33
|
+
params.author = {
|
|
34
|
+
name: flags['author-name'] || '',
|
|
35
|
+
email: flags['author-email'] || '',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
const result = await (0, contents_1.updateFile)(token, owner, repo, args.path, params);
|
|
39
|
+
if (flags.json) {
|
|
40
|
+
(0, index_2.printJson)(result);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.log(`Updated ${args.path} (${result.commit.sha.substring(0, 7)})`);
|
|
44
|
+
}
|
|
45
|
+
catch (err) {
|
|
46
|
+
if (err instanceof client_1.GitCodeError)
|
|
47
|
+
this.error(err.message);
|
|
48
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
FileUpdate.description = 'Update a file in the repository';
|
|
53
|
+
FileUpdate.examples = [
|
|
54
|
+
'<%= config.bin %> file update README.md --sha abc123 --content "# Updated" --message "Update README"',
|
|
55
|
+
];
|
|
56
|
+
FileUpdate.args = {
|
|
57
|
+
path: core_1.Args.string({ description: 'File path in the repository', required: true }),
|
|
58
|
+
};
|
|
59
|
+
FileUpdate.flags = {
|
|
60
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
61
|
+
sha: core_1.Flags.string({ description: 'Current file blob SHA', required: true }),
|
|
62
|
+
content: core_1.Flags.string({ description: 'New file content (will be base64 encoded)', required: true }),
|
|
63
|
+
message: core_1.Flags.string({ description: 'Commit message', required: true }),
|
|
64
|
+
branch: core_1.Flags.string({ description: 'Target branch' }),
|
|
65
|
+
'author-name': core_1.Flags.string({ description: 'Commit author name' }),
|
|
66
|
+
'author-email': core_1.Flags.string({ description: 'Commit author email' }),
|
|
67
|
+
};
|
|
68
|
+
exports.default = FileUpdate;
|
|
69
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/file/update.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AACzC,qDAAgD;AAChD,8CAA6C;AAC7C,iDAA+C;AAC/C,6CAA+C;AAC/C,0CAA0C;AAE1C,MAAqB,UAAW,SAAQ,0BAAW;IAoBjD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAEpD,MAAM,KAAK,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ommand } from '../../repo-command';
|
|
2
|
+
export default class IssueBranches extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
number: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
set: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const issues_1 = require("../../api/issues");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class IssueBranches extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(IssueBranches);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
if (flags.set) {
|
|
25
|
+
const branchNames = flags.set.split(',').map((b) => b.trim());
|
|
26
|
+
await (0, issues_1.setIssueRelatedBranches)(token, owner, repo, args.number, branchNames);
|
|
27
|
+
if (flags.json) {
|
|
28
|
+
(0, index_2.printJson)({ branch_names: branchNames });
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.log(`Set related branches: ${branchNames.join(', ')}`);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const branches = await (0, issues_1.listIssueRelatedBranches)(token, owner, repo, args.number);
|
|
35
|
+
if (flags.json) {
|
|
36
|
+
(0, index_2.printJson)(branches);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (branches.length === 0) {
|
|
40
|
+
this.log('No related branches');
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
for (const branch of branches) {
|
|
44
|
+
this.log(branch);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
if (err instanceof client_1.GitCodeError)
|
|
51
|
+
this.error(err.message);
|
|
52
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
IssueBranches.description = 'List or set branches related to an issue';
|
|
57
|
+
IssueBranches.examples = [
|
|
58
|
+
'<%= config.bin %> issue branches 42',
|
|
59
|
+
'<%= config.bin %> issue branches 42 --set feature-x,bugfix-y',
|
|
60
|
+
];
|
|
61
|
+
IssueBranches.args = {
|
|
62
|
+
number: core_1.Args.string({ description: 'Issue number', required: true }),
|
|
63
|
+
};
|
|
64
|
+
IssueBranches.flags = {
|
|
65
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
66
|
+
set: core_1.Flags.string({ description: 'Comma-separated branch names to set as related' }),
|
|
67
|
+
};
|
|
68
|
+
exports.default = IssueBranches;
|
|
69
|
+
//# sourceMappingURL=branches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branches.js","sourceRoot":"","sources":["../../../src/commands/issue/branches.ts"],"names":[],"mappings":";;AAAA,sCA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AAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;gBAEhF,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;oBACf,IAAA,iBAAS,EAAC,QAAQ,CAAC,CAAA;oBACnB,OAAM;gBACR,CAAC;gBAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC1B,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;gBACjC,CAAC;qBAAM,CAAC;oBACN,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE,CAAC;wBAC9B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;oBAClB,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,qBAAY;gBAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACxD,IAAI,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;QAC7E,CAAC;IACH,CAAC;;AA3DM,yBAAW,GAAG,0CAA0C,CAAA;AACxD,sBAAQ,GAAG;IAChB,qCAAqC;IACrC,8DAA8D;CAC/D,CAAA;AAEM,kBAAI,GAAG;IACZ,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACrE,CAAA;AAEM,mBAAK,GAAG;IACb,GAAG,0BAAW,CAAC,SAAS;IACxB,GAAG,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gDAAgD,EAAE,CAAC;CACrF,CAAA;kBAdkB,aAAa"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RepoCommand } from '../../repo-command';
|
|
2
|
+
export default class IssueCommentDelete extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<number, {
|
|
7
|
+
max?: number | undefined;
|
|
8
|
+
min?: number | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
static flags: {
|
|
12
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const issues_1 = require("../../api/issues");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
class IssueCommentDelete extends repo_command_1.RepoCommand {
|
|
9
|
+
async run() {
|
|
10
|
+
const { args, flags } = await this.parse(IssueCommentDelete);
|
|
11
|
+
const token = (0, index_1.getToken)();
|
|
12
|
+
if (!token)
|
|
13
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
14
|
+
let owner, repo;
|
|
15
|
+
try {
|
|
16
|
+
;
|
|
17
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
this.error(err.message);
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
await (0, issues_1.deleteIssueComment)(token, owner, repo, args.id);
|
|
24
|
+
this.log(`Deleted comment #${args.id}`);
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
if (err instanceof client_1.GitCodeError)
|
|
28
|
+
this.error(err.message);
|
|
29
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
IssueCommentDelete.description = 'Delete an issue comment';
|
|
34
|
+
IssueCommentDelete.examples = ['<%= config.bin %> issue comment-delete 12345'];
|
|
35
|
+
IssueCommentDelete.args = {
|
|
36
|
+
id: core_1.Args.integer({ description: 'Comment ID', required: true }),
|
|
37
|
+
};
|
|
38
|
+
IssueCommentDelete.flags = {
|
|
39
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
40
|
+
};
|
|
41
|
+
exports.default = IssueCommentDelete;
|
|
42
|
+
//# sourceMappingURL=comment-delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-delete.js","sourceRoot":"","sources":["../../../src/commands/issue/comment-delete.ts"],"names":[],"mappings":";;AAAA,sCAAkC;AAClC,qDAAgD;AAChD,8CAA6C;AAC7C,6CAAqD;AACrD,6CAA+C;AAE/C,MAAqB,kBAAmB,SAAQ,0BAAW;IAYzD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAA;QAE5D,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAA;QACxB,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;QAE9D,IAAI,KAAa,EAAE,IAAY,CAAA;QAC/B,IAAI,CAAC;YACH,CAAC;YAAA,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAA;QACvD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAA;QACpC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,IAAA,2BAAkB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;YACrD,IAAI,CAAC,GAAG,CAAC,oBAAoB,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QACzC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,qBAAY;gBAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACxD,IAAI,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;QAC7E,CAAC;IACH,CAAC;;AA/BM,8BAAW,GAAG,yBAAyB,CAAA;AACvC,2BAAQ,GAAG,CAAC,8CAA8C,CAAC,CAAA;AAE3D,uBAAI,GAAG;IACZ,EAAE,EAAE,WAAI,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CAChE,CAAA;AAEM,wBAAK,GAAG;IACb,GAAG,0BAAW,CAAC,SAAS;CACzB,CAAA;kBAVkB,kBAAkB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RepoCommand } from '../../repo-command';
|
|
2
|
+
export default class IssueCommentEdit extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<number, {
|
|
7
|
+
max?: number | undefined;
|
|
8
|
+
min?: number | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
static flags: {
|
|
12
|
+
body: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const issues_1 = require("../../api/issues");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class IssueCommentEdit extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(IssueCommentEdit);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const comment = await (0, issues_1.editIssueComment)(token, owner, repo, args.id, flags.body);
|
|
25
|
+
if (flags.json) {
|
|
26
|
+
(0, index_2.printJson)(comment);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.log(`Updated comment #${args.id}`);
|
|
30
|
+
}
|
|
31
|
+
catch (err) {
|
|
32
|
+
if (err instanceof client_1.GitCodeError)
|
|
33
|
+
this.error(err.message);
|
|
34
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
IssueCommentEdit.description = 'Edit an issue comment';
|
|
39
|
+
IssueCommentEdit.examples = ['<%= config.bin %> issue comment-edit 12345 --body "Updated text"'];
|
|
40
|
+
IssueCommentEdit.args = {
|
|
41
|
+
id: core_1.Args.integer({ description: 'Comment ID', required: true }),
|
|
42
|
+
};
|
|
43
|
+
IssueCommentEdit.flags = {
|
|
44
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
45
|
+
body: core_1.Flags.string({ description: 'New comment body', required: true }),
|
|
46
|
+
};
|
|
47
|
+
exports.default = IssueCommentEdit;
|
|
48
|
+
//# sourceMappingURL=comment-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-edit.js","sourceRoot":"","sources":["../../../src/commands/issue/comment-edit.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AACzC,qDAAgD;AAChD,8CAA6C;AAC7C,6CAAmD;AACnD,6CAA+C;AAC/C,0CAA0C;AAE1C,MAAqB,gBAAiB,SAAQ,0BAAW;IAavD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;QAE1D,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAA;QACxB,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;QAE9D,IAAI,KAAa,EAAE,IAAY,CAAA;QAC/B,IAAI,CAAC;YACH,CAAC;YAAA,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAA;QACvD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAA;QACpC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAA,yBAAgB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;YAE/E,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;gBACf,IAAA,iBAAS,EAAC,OAAO,CAAC,CAAA;gBAClB,OAAM;YACR,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,oBAAoB,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QACzC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,qBAAY;gBAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACxD,IAAI,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;QAC7E,CAAC;IACH,CAAC;;AAtCM,4BAAW,GAAG,uBAAuB,CAAA;AACrC,yBAAQ,GAAG,CAAC,kEAAkE,CAAC,CAAA;AAE/E,qBAAI,GAAG;IACZ,EAAE,EAAE,WAAI,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CAChE,CAAA;AAEM,sBAAK,GAAG;IACb,GAAG,0BAAW,CAAC,SAAS;IACxB,IAAI,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACxE,CAAA;kBAXkB,gBAAgB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RepoCommand } from '../../repo-command';
|
|
2
|
+
export default class IssueCommentGet extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<number, {
|
|
7
|
+
max?: number | undefined;
|
|
8
|
+
min?: number | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
static flags: {
|
|
12
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const issues_1 = require("../../api/issues");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class IssueCommentGet extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(IssueCommentGet);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const comment = await (0, issues_1.getIssueComment)(token, owner, repo, args.id);
|
|
25
|
+
if (flags.json) {
|
|
26
|
+
(0, index_2.printJson)(comment);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.log(`ID: ${comment.id}`);
|
|
30
|
+
this.log(`Author: ${comment.user.login}`);
|
|
31
|
+
this.log(`Type: ${comment.comment_type ?? '-'}`);
|
|
32
|
+
this.log(`\n${comment.body}`);
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
if (err instanceof client_1.GitCodeError)
|
|
36
|
+
this.error(err.message);
|
|
37
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
IssueCommentGet.description = 'Get a single issue comment';
|
|
42
|
+
IssueCommentGet.examples = ['<%= config.bin %> issue comment-get 12345'];
|
|
43
|
+
IssueCommentGet.args = {
|
|
44
|
+
id: core_1.Args.integer({ description: 'Comment ID', required: true }),
|
|
45
|
+
};
|
|
46
|
+
IssueCommentGet.flags = {
|
|
47
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
48
|
+
};
|
|
49
|
+
exports.default = IssueCommentGet;
|
|
50
|
+
//# sourceMappingURL=comment-get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-get.js","sourceRoot":"","sources":["../../../src/commands/issue/comment-get.ts"],"names":[],"mappings":";;AAAA,sCAAkC;AAClC,qDAAgD;AAChD,8CAA6C;AAC7C,6CAAkD;AAClD,6CAA+C;AAC/C,0CAA0C;AAE1C,MAAqB,eAAgB,SAAQ,0BAAW;IAYtD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QAEzD,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAA;QACxB,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;QAE9D,IAAI,KAAa,EAAE,IAAY,CAAA;QAC/B,IAAI,CAAC;YACH,CAAC;YAAA,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAA;QACvD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAA;QACpC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAe,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;YAElE,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;gBACf,IAAA,iBAAS,EAAC,OAAO,CAAC,CAAA;gBAClB,OAAM;YACR,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,CAAC,EAAE,EAAE,CAAC,CAAA;YACjC,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;YACzC,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,CAAC,YAAY,IAAI,GAAG,EAAE,CAAC,CAAA;YAClD,IAAI,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,qBAAY;gBAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACxD,IAAI,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;QAC7E,CAAC;IACH,CAAC;;AAxCM,2BAAW,GAAG,4BAA4B,CAAA;AAC1C,wBAAQ,GAAG,CAAC,2CAA2C,CAAC,CAAA;AAExD,oBAAI,GAAG;IACZ,EAAE,EAAE,WAAI,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CAChE,CAAA;AAEM,qBAAK,GAAG;IACb,GAAG,0BAAW,CAAC,SAAS;CACzB,CAAA;kBAVkB,eAAe"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RepoCommand } from '../../repo-command';
|
|
2
|
+
export default class IssueCommentHistory extends RepoCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<number, {
|
|
7
|
+
max?: number | undefined;
|
|
8
|
+
min?: number | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
static flags: {
|
|
12
|
+
repo: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const repo_command_1 = require("../../repo-command");
|
|
5
|
+
const index_1 = require("../../config/index");
|
|
6
|
+
const issues_1 = require("../../api/issues");
|
|
7
|
+
const client_1 = require("../../api/client");
|
|
8
|
+
const index_2 = require("../../ui/index");
|
|
9
|
+
class IssueCommentHistory extends repo_command_1.RepoCommand {
|
|
10
|
+
async run() {
|
|
11
|
+
const { args, flags } = await this.parse(IssueCommentHistory);
|
|
12
|
+
const token = (0, index_1.getToken)();
|
|
13
|
+
if (!token)
|
|
14
|
+
this.error('Not logged in. Run: oh-gc auth login');
|
|
15
|
+
let owner, repo;
|
|
16
|
+
try {
|
|
17
|
+
;
|
|
18
|
+
({ owner, repo } = this.resolveRepoFromFlags(flags));
|
|
19
|
+
}
|
|
20
|
+
catch (err) {
|
|
21
|
+
this.error(err.message);
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const history = await (0, issues_1.listIssueCommentHistory)(token, owner, repo, args.id);
|
|
25
|
+
if (flags.json) {
|
|
26
|
+
(0, index_2.printJson)(history);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
(0, index_2.printTable)(history.map((h) => ({
|
|
30
|
+
user: h.user.login,
|
|
31
|
+
content: h.content.substring(0, 50),
|
|
32
|
+
date: (0, index_2.formatDate)(h.created_at),
|
|
33
|
+
})), ['user', 'content', 'date']);
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
if (err instanceof client_1.GitCodeError)
|
|
37
|
+
this.error(err.message);
|
|
38
|
+
this.error('Could not connect to GitCode. Check your internet connection.');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
IssueCommentHistory.description = 'View modification history of an issue comment';
|
|
43
|
+
IssueCommentHistory.examples = ['<%= config.bin %> issue comment-history 12345'];
|
|
44
|
+
IssueCommentHistory.args = {
|
|
45
|
+
id: core_1.Args.integer({ description: 'Comment ID', required: true }),
|
|
46
|
+
};
|
|
47
|
+
IssueCommentHistory.flags = {
|
|
48
|
+
...repo_command_1.RepoCommand.repoFlags,
|
|
49
|
+
};
|
|
50
|
+
exports.default = IssueCommentHistory;
|
|
51
|
+
//# sourceMappingURL=comment-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-history.js","sourceRoot":"","sources":["../../../src/commands/issue/comment-history.ts"],"names":[],"mappings":";;AAAA,sCAAkC;AAClC,qDAAgD;AAChD,8CAA6C;AAC7C,6CAA0D;AAC1D,6CAA+C;AAC/C,0CAAkE;AAElE,MAAqB,mBAAoB,SAAQ,0BAAW;IAY1D,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;QAE7D,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAA;QACxB,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAA;QAE9D,IAAI,KAAa,EAAE,IAAY,CAAA;QAC/B,IAAI,CAAC;YACH,CAAC;YAAA,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAA;QACvD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,KAAK,CAAE,GAAa,CAAC,OAAO,CAAC,CAAA;QACpC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAA,gCAAuB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;YAE1E,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;gBACf,IAAA,iBAAS,EAAC,OAAO,CAAC,CAAA;gBAClB,OAAM;YACR,CAAC;YAED,IAAA,kBAAU,EACR,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAClB,IAAI,E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