bitbucketdc-cli 1.0.6 → 1.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/dist/index.js +980 -34
- package/package.json +5 -4
- package/dist/commands/commit/changes.d.ts +0 -3
- package/dist/commands/commit/changes.d.ts.map +0 -1
- package/dist/commands/commit/changes.js +0 -27
- package/dist/commands/commit/changes.js.map +0 -1
- package/dist/commands/commit/diff.d.ts +0 -3
- package/dist/commands/commit/diff.d.ts.map +0 -1
- package/dist/commands/commit/diff.js +0 -38
- package/dist/commands/commit/diff.js.map +0 -1
- package/dist/commands/commit/index.d.ts +0 -3
- package/dist/commands/commit/index.d.ts.map +0 -1
- package/dist/commands/commit/index.js +0 -16
- package/dist/commands/commit/index.js.map +0 -1
- package/dist/commands/compare/changes.d.ts +0 -3
- package/dist/commands/compare/changes.d.ts.map +0 -1
- package/dist/commands/compare/changes.js +0 -30
- package/dist/commands/compare/changes.js.map +0 -1
- package/dist/commands/compare/diff.d.ts +0 -3
- package/dist/commands/compare/diff.d.ts.map +0 -1
- package/dist/commands/compare/diff.js +0 -32
- package/dist/commands/compare/diff.js.map +0 -1
- package/dist/commands/compare/index.d.ts +0 -3
- package/dist/commands/compare/index.d.ts.map +0 -1
- package/dist/commands/compare/index.js +0 -16
- package/dist/commands/compare/index.js.map +0 -1
- package/dist/commands/file/index.d.ts +0 -3
- package/dist/commands/file/index.d.ts.map +0 -1
- package/dist/commands/file/index.js +0 -16
- package/dist/commands/file/index.js.map +0 -1
- package/dist/commands/file/list.d.ts +0 -3
- package/dist/commands/file/list.d.ts.map +0 -1
- package/dist/commands/file/list.js +0 -30
- package/dist/commands/file/list.js.map +0 -1
- package/dist/commands/file/show.d.ts +0 -3
- package/dist/commands/file/show.d.ts.map +0 -1
- package/dist/commands/file/show.js +0 -24
- package/dist/commands/file/show.js.map +0 -1
- package/dist/commands/pr/activities.d.ts +0 -3
- package/dist/commands/pr/activities.d.ts.map +0 -1
- package/dist/commands/pr/activities.js +0 -37
- package/dist/commands/pr/activities.js.map +0 -1
- package/dist/commands/pr/can-merge.d.ts +0 -3
- package/dist/commands/pr/can-merge.d.ts.map +0 -1
- package/dist/commands/pr/can-merge.js +0 -21
- package/dist/commands/pr/can-merge.js.map +0 -1
- package/dist/commands/pr/changes.d.ts +0 -3
- package/dist/commands/pr/changes.d.ts.map +0 -1
- package/dist/commands/pr/changes.js +0 -23
- package/dist/commands/pr/changes.js.map +0 -1
- package/dist/commands/pr/comment.d.ts +0 -3
- package/dist/commands/pr/comment.d.ts.map +0 -1
- package/dist/commands/pr/comment.js +0 -27
- package/dist/commands/pr/comment.js.map +0 -1
- package/dist/commands/pr/create.d.ts +0 -3
- package/dist/commands/pr/create.d.ts.map +0 -1
- package/dist/commands/pr/create.js +0 -50
- package/dist/commands/pr/create.js.map +0 -1
- package/dist/commands/pr/decline.d.ts +0 -3
- package/dist/commands/pr/decline.d.ts.map +0 -1
- package/dist/commands/pr/decline.js +0 -21
- package/dist/commands/pr/decline.js.map +0 -1
- package/dist/commands/pr/delete-comment.d.ts +0 -3
- package/dist/commands/pr/delete-comment.d.ts.map +0 -1
- package/dist/commands/pr/delete-comment.js +0 -31
- package/dist/commands/pr/delete-comment.js.map +0 -1
- package/dist/commands/pr/delete.d.ts +0 -3
- package/dist/commands/pr/delete.d.ts.map +0 -1
- package/dist/commands/pr/delete.js +0 -21
- package/dist/commands/pr/delete.js.map +0 -1
- package/dist/commands/pr/diff.d.ts +0 -3
- package/dist/commands/pr/diff.d.ts.map +0 -1
- package/dist/commands/pr/diff.js +0 -43
- package/dist/commands/pr/diff.js.map +0 -1
- package/dist/commands/pr/edit-comment.d.ts +0 -3
- package/dist/commands/pr/edit-comment.d.ts.map +0 -1
- package/dist/commands/pr/edit-comment.js +0 -33
- package/dist/commands/pr/edit-comment.js.map +0 -1
- package/dist/commands/pr/file-comment.d.ts +0 -3
- package/dist/commands/pr/file-comment.d.ts.map +0 -1
- package/dist/commands/pr/file-comment.js +0 -25
- package/dist/commands/pr/file-comment.js.map +0 -1
- package/dist/commands/pr/file-diff.d.ts +0 -3
- package/dist/commands/pr/file-diff.d.ts.map +0 -1
- package/dist/commands/pr/file-diff.js +0 -25
- package/dist/commands/pr/file-diff.js.map +0 -1
- package/dist/commands/pr/get.d.ts +0 -3
- package/dist/commands/pr/get.d.ts.map +0 -1
- package/dist/commands/pr/get.js +0 -21
- package/dist/commands/pr/get.js.map +0 -1
- package/dist/commands/pr/inbox.d.ts +0 -3
- package/dist/commands/pr/inbox.d.ts.map +0 -1
- package/dist/commands/pr/inbox.js +0 -19
- package/dist/commands/pr/inbox.js.map +0 -1
- package/dist/commands/pr/index.d.ts +0 -3
- package/dist/commands/pr/index.d.ts.map +0 -1
- package/dist/commands/pr/index.js +0 -61
- package/dist/commands/pr/index.js.map +0 -1
- package/dist/commands/pr/line-comment.d.ts +0 -3
- package/dist/commands/pr/line-comment.d.ts.map +0 -1
- package/dist/commands/pr/line-comment.js +0 -36
- package/dist/commands/pr/line-comment.js.map +0 -1
- package/dist/commands/pr/merge.d.ts +0 -3
- package/dist/commands/pr/merge.d.ts.map +0 -1
- package/dist/commands/pr/merge.js +0 -28
- package/dist/commands/pr/merge.js.map +0 -1
- package/dist/commands/pr/reaction-add.d.ts +0 -3
- package/dist/commands/pr/reaction-add.d.ts.map +0 -1
- package/dist/commands/pr/reaction-add.js +0 -30
- package/dist/commands/pr/reaction-add.js.map +0 -1
- package/dist/commands/pr/reaction-remove.d.ts +0 -3
- package/dist/commands/pr/reaction-remove.d.ts.map +0 -1
- package/dist/commands/pr/reaction-remove.js +0 -29
- package/dist/commands/pr/reaction-remove.js.map +0 -1
- package/dist/commands/pr/review.d.ts +0 -3
- package/dist/commands/pr/review.d.ts.map +0 -1
- package/dist/commands/pr/review.js +0 -29
- package/dist/commands/pr/review.js.map +0 -1
- package/dist/commands/pr/update.d.ts +0 -3
- package/dist/commands/pr/update.d.ts.map +0 -1
- package/dist/commands/pr/update.js +0 -32
- package/dist/commands/pr/update.js.map +0 -1
- package/dist/commands/project/index.d.ts +0 -3
- package/dist/commands/project/index.d.ts.map +0 -1
- package/dist/commands/project/index.js +0 -13
- package/dist/commands/project/index.js.map +0 -1
- package/dist/commands/project/list.d.ts +0 -3
- package/dist/commands/project/list.d.ts.map +0 -1
- package/dist/commands/project/list.js +0 -23
- package/dist/commands/project/list.js.map +0 -1
- package/dist/commands/repo/attachment/download.d.ts +0 -3
- package/dist/commands/repo/attachment/download.d.ts.map +0 -1
- package/dist/commands/repo/attachment/download.js +0 -23
- package/dist/commands/repo/attachment/download.js.map +0 -1
- package/dist/commands/repo/attachment/index.d.ts +0 -3
- package/dist/commands/repo/attachment/index.d.ts.map +0 -1
- package/dist/commands/repo/attachment/index.js +0 -15
- package/dist/commands/repo/attachment/index.js.map +0 -1
- package/dist/commands/repo/attachment/upload.d.ts +0 -3
- package/dist/commands/repo/attachment/upload.d.ts.map +0 -1
- package/dist/commands/repo/attachment/upload.js +0 -41
- package/dist/commands/repo/attachment/upload.js.map +0 -1
- package/dist/commands/repo/index.d.ts +0 -3
- package/dist/commands/repo/index.d.ts.map +0 -1
- package/dist/commands/repo/index.js +0 -15
- package/dist/commands/repo/index.js.map +0 -1
- package/dist/commands/repo/list.d.ts +0 -3
- package/dist/commands/repo/list.d.ts.map +0 -1
- package/dist/commands/repo/list.js +0 -14
- package/dist/commands/repo/list.js.map +0 -1
- package/dist/commands/user/index.d.ts +0 -3
- package/dist/commands/user/index.d.ts.map +0 -1
- package/dist/commands/user/index.js +0 -15
- package/dist/commands/user/index.js.map +0 -1
- package/dist/commands/user/list.d.ts +0 -3
- package/dist/commands/user/list.d.ts.map +0 -1
- package/dist/commands/user/list.js +0 -15
- package/dist/commands/user/list.js.map +0 -1
- package/dist/commands/user/profile.d.ts +0 -3
- package/dist/commands/user/profile.d.ts.map +0 -1
- package/dist/commands/user/profile.js +0 -14
- package/dist/commands/user/profile.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/utils/client.d.ts +0 -3
- package/dist/utils/client.d.ts.map +0 -1
- package/dist/utils/client.js +0 -19
- package/dist/utils/client.js.map +0 -1
- package/dist/utils/output.d.ts +0 -3
- package/dist/utils/output.d.ts.map +0 -1
- package/dist/utils/output.js +0 -48
- package/dist/utils/output.js.map +0 -1
- package/dist/utils/strip-response.d.ts +0 -6
- package/dist/utils/strip-response.d.ts.map +0 -1
- package/dist/utils/strip-response.js +0 -30
- package/dist/utils/strip-response.js.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function create(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('create')
|
|
6
|
-
.description('Create a new pull request')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--from <branch>', 'Source branch name (e.g., feature-x)')
|
|
10
|
-
.requiredOption('--to <branch>', 'Target branch name (e.g., main)')
|
|
11
|
-
.requiredOption('--title <text>', 'Pull request title')
|
|
12
|
-
.option('--description <text>', 'Pull request description in markdown')
|
|
13
|
-
.option('--reviewers <usernames>', 'Comma-separated reviewer usernames')
|
|
14
|
-
.option('--draft', 'Create as draft pull request')
|
|
15
|
-
.addHelpText('after', `\nExamples:
|
|
16
|
-
bitbucketdc pr create --project PROJ --repo my-repo --from feature-x --to main --title "Add feature"
|
|
17
|
-
bitbucketdc pr create --project PROJ --repo my-repo --from fix/bug --to develop --title "Fix bug" --reviewers jsmith,jdoe
|
|
18
|
-
bitbucketdc pr create --project PROJ --repo my-repo --from wip --to main --title "WIP" --draft`)
|
|
19
|
-
.action(async (opts) => {
|
|
20
|
-
const client = getClient();
|
|
21
|
-
let reviewers = opts.reviewers?.split(',').map((r) => r.trim());
|
|
22
|
-
// Auto-fetch default reviewers if none provided
|
|
23
|
-
if (!reviewers || reviewers.length === 0) {
|
|
24
|
-
const repo = await client.repositories.get({
|
|
25
|
-
projectKey: opts.project,
|
|
26
|
-
repositorySlug: opts.repo,
|
|
27
|
-
});
|
|
28
|
-
const defaultReviewers = await client.pullRequests.getRequiredReviewers({
|
|
29
|
-
projectKey: opts.project,
|
|
30
|
-
repositorySlug: opts.repo,
|
|
31
|
-
repositoryId: repo.id,
|
|
32
|
-
sourceBranch: opts.from,
|
|
33
|
-
targetBranch: opts.to,
|
|
34
|
-
});
|
|
35
|
-
reviewers = defaultReviewers.map((r) => r.name);
|
|
36
|
-
}
|
|
37
|
-
const result = await client.pullRequests.create({
|
|
38
|
-
projectKey: opts.project,
|
|
39
|
-
repositorySlug: opts.repo,
|
|
40
|
-
fromBranch: opts.from,
|
|
41
|
-
toBranch: opts.to,
|
|
42
|
-
title: opts.title,
|
|
43
|
-
description: opts.description,
|
|
44
|
-
reviewers,
|
|
45
|
-
draft: opts.draft,
|
|
46
|
-
});
|
|
47
|
-
output(result);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/pr/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,2BAA2B,CAAC;SACxC,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,iBAAiB,EAAE,sCAAsC,CAAC;SACzE,cAAc,CAAC,eAAe,EAAE,iCAAiC,CAAC;SAClE,cAAc,CAAC,gBAAgB,EAAE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AAE,IAAI,CAAC,IAAI;YACrB,QAAQ,EAAE,IAAI,CAAC,EAAE;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS;YACT,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CACF,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decline.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/decline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,QAiBtC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function decline(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('decline')
|
|
6
|
-
.description('Decline a pull request')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID', parseInt)
|
|
10
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr decline --project PROJ --repo my-repo --id 42')
|
|
11
|
-
.action(async (opts) => {
|
|
12
|
-
const client = getClient();
|
|
13
|
-
const result = await client.pullRequests.decline({
|
|
14
|
-
projectKey: opts.project,
|
|
15
|
-
repositorySlug: opts.repo,
|
|
16
|
-
pullRequestId: opts.id,
|
|
17
|
-
});
|
|
18
|
-
output(result);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=decline.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decline.js","sourceRoot":"","sources":["../../../src/commands/pr/decline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,MAAM;SACH,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,wBAAwB,CAAC;SACrC,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC;SACvD,WAAW,CAAC,OAAO,EAAE,6EAA6E,CAAC;SACnG,MAAM,CAAC,KAAK,EAAE,IAAmD,EAAE,EAAE;QACpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC;YAC/C,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,IAAI,CAAC,EAAE;SACvB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-comment.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/delete-comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,QAgC5C"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function deleteComment(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('delete-comment')
|
|
6
|
-
.description('Delete a pull request comment')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID', parseInt)
|
|
10
|
-
.requiredOption('--comment-id <n>', 'Comment ID to delete', parseInt)
|
|
11
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr delete-comment --project PROJ --repo my-repo --id 42 --comment-id 123')
|
|
12
|
-
.action(async (opts) => {
|
|
13
|
-
const client = getClient();
|
|
14
|
-
// Fetch current version for optimistic locking — agents shouldn't need to track this
|
|
15
|
-
const comment = await client.pullRequests.getComment({
|
|
16
|
-
projectKey: opts.project,
|
|
17
|
-
repositorySlug: opts.repo,
|
|
18
|
-
pullRequestId: opts.id,
|
|
19
|
-
commentId: opts.commentId,
|
|
20
|
-
});
|
|
21
|
-
await client.pullRequests.deleteComment({
|
|
22
|
-
projectKey: opts.project,
|
|
23
|
-
repositorySlug: opts.repo,
|
|
24
|
-
pullRequestId: opts.id,
|
|
25
|
-
commentId: opts.commentId,
|
|
26
|
-
version: comment.version,
|
|
27
|
-
});
|
|
28
|
-
output({ deleted: true, commentId: opts.commentId });
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=delete-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-comment.js","sourceRoot":"","sources":["../../../src/commands/pr/delete-comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,aAAa,CAAC,MAAe;IAC3C,MAAM;SACH,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,+BAA+B,CAAC;SAC5C,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC;SACvD,cAAc,CAAC,kBAAkB,EAAE,sBAAsB,EAAE,QAAQ,CAAC;SACpE,WAAW,CACV,OAAO,EACP,qGAAqG,CACtG;SACA,MAAM,CAAC,KAAK,EAAE,IAAsE,EAAE,EAAE;QACvF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,qFAAqF;QACrF,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC;YACnD,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,IAAI,CAAC,EAAE;YACtB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;QAEH,MAAM,MAAM,CAAC,YAAY,CAAC,aAAa,CAAC;YACtC,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,IAAI,CAAC,EAAE;YACtB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,QAiBvC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function deletePr(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('delete')
|
|
6
|
-
.description('Delete a pull request')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID', parseInt)
|
|
10
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr delete --project PROJ --repo my-repo --id 42')
|
|
11
|
-
.action(async (opts) => {
|
|
12
|
-
const client = getClient();
|
|
13
|
-
await client.pullRequests.deletePullRequest({
|
|
14
|
-
projectKey: opts.project,
|
|
15
|
-
repositorySlug: opts.repo,
|
|
16
|
-
pullRequestId: opts.id,
|
|
17
|
-
});
|
|
18
|
-
output({ deleted: true, pullRequestId: opts.id });
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=delete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/commands/pr/delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,uBAAuB,CAAC;SACpC,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC;SACvD,WAAW,CAAC,OAAO,EAAE,4EAA4E,CAAC;SAClG,MAAM,CAAC,KAAK,EAAE,IAAmD,EAAE,EAAE;QACpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC;YAC1C,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,IAAI,CAAC,EAAE;SACvB,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,QAoDnC"}
|
package/dist/commands/pr/diff.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Option } from 'commander';
|
|
2
|
-
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output } from '../../utils/output.js';
|
|
4
|
-
export function diff(parent) {
|
|
5
|
-
parent
|
|
6
|
-
.command('diff')
|
|
7
|
-
.description('Get diff for a pull request')
|
|
8
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
9
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
10
|
-
.requiredOption('--id <n>', 'Pull request ID')
|
|
11
|
-
.option('--path <path>', 'File path (omit for full PR diff)')
|
|
12
|
-
.option('--since <hash>', 'Since commit hash')
|
|
13
|
-
.option('--until <hash>', 'Until commit hash')
|
|
14
|
-
.option('--context <n>', 'Number of context lines around changes (default: 10)', parseInt)
|
|
15
|
-
.addOption(new Option('--whitespace <mode>', 'Whitespace handling (default: show)').choices(['show', 'ignore-all']))
|
|
16
|
-
.addOption(new Option('--format <fmt>', 'Response format (default: text)').choices(['text', 'json']))
|
|
17
|
-
.addHelpText('after', `\nExamples:
|
|
18
|
-
bitbucketdc pr diff --project PROJ --repo my-repo --id 42
|
|
19
|
-
bitbucketdc pr diff --project PROJ --repo my-repo --id 42 --path src/main.ts
|
|
20
|
-
bitbucketdc pr diff --project PROJ --repo my-repo --id 42 --format json
|
|
21
|
-
bitbucketdc pr diff --project PROJ --repo my-repo --id 42 --context 5 --whitespace ignore-all`)
|
|
22
|
-
.action(async (opts) => {
|
|
23
|
-
const client = getClient();
|
|
24
|
-
const result = await client.pullRequests.getDiff({
|
|
25
|
-
projectKey: opts.project,
|
|
26
|
-
repositorySlug: opts.repo,
|
|
27
|
-
pullRequestId: parseInt(opts.id),
|
|
28
|
-
path: opts.path,
|
|
29
|
-
sinceId: opts.since,
|
|
30
|
-
untilId: opts.until,
|
|
31
|
-
contextLines: opts.context,
|
|
32
|
-
whitespace: opts.whitespace,
|
|
33
|
-
format: opts.format || 'text',
|
|
34
|
-
});
|
|
35
|
-
if (typeof result === 'string') {
|
|
36
|
-
process.stdout.write(result);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
output(result);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=diff.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../src/commands/pr/diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,6BAA6B,CAAC;SAC1C,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,CAAC;SAC7C,MAAM,CAAC,eAAe,EAAE,mCAAmC,CAAC;SAC5D,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;SAC7C,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC;SAC7C,MAAM,CAAC,eAAe,EAAE,sDAAsD,EAAE,QAAQ,CAAC;SACzF,SAAS,CAAC,IAA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,QAkC1C"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function editComment(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('edit-comment')
|
|
6
|
-
.description('Edit a pull request comment')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID', parseInt)
|
|
10
|
-
.requiredOption('--comment-id <n>', 'Comment ID to edit', parseInt)
|
|
11
|
-
.requiredOption('--text <content>', 'New comment text')
|
|
12
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr edit-comment --project PROJ --repo my-repo --id 42 --comment-id 123 --text "Updated text"')
|
|
13
|
-
.action(async (opts) => {
|
|
14
|
-
const client = getClient();
|
|
15
|
-
// Fetch current version for optimistic locking — agents shouldn't need to track this
|
|
16
|
-
const comment = await client.pullRequests.getComment({
|
|
17
|
-
projectKey: opts.project,
|
|
18
|
-
repositorySlug: opts.repo,
|
|
19
|
-
pullRequestId: opts.id,
|
|
20
|
-
commentId: opts.commentId,
|
|
21
|
-
});
|
|
22
|
-
const result = await client.pullRequests.editComment({
|
|
23
|
-
projectKey: opts.project,
|
|
24
|
-
repositorySlug: opts.repo,
|
|
25
|
-
pullRequestId: opts.id,
|
|
26
|
-
commentId: opts.commentId,
|
|
27
|
-
text: opts.text,
|
|
28
|
-
version: comment.version,
|
|
29
|
-
});
|
|
30
|
-
output(result);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=edit-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-comment.js","sourceRoot":"","sources":["../../../src/commands/pr/edit-comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,M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ment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,QAwB1C"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function fileComment(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('file-comment')
|
|
6
|
-
.description('Add a file-level comment to a pull request')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID')
|
|
10
|
-
.requiredOption('--text <text>', 'Comment text')
|
|
11
|
-
.requiredOption('--path <path>', 'File path to attach comment to (e.g., src/main.ts)')
|
|
12
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr file-comment --project PROJ --repo my-repo --id 42 --text "This file needs refactoring" --path src/main.ts')
|
|
13
|
-
.action(async (opts) => {
|
|
14
|
-
const client = getClient();
|
|
15
|
-
const result = await client.pullRequests.addComment({
|
|
16
|
-
projectKey: opts.project,
|
|
17
|
-
repositorySlug: opts.repo,
|
|
18
|
-
pullRequestId: parseInt(opts.id),
|
|
19
|
-
text: opts.text,
|
|
20
|
-
path: opts.path,
|
|
21
|
-
});
|
|
22
|
-
output(result);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=file-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-comment.js","sourceRoot":"","sources":["../../../src/commands/pr/file-comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,4CAA4C,CAAC;SACzD,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,CAAC;SAC7C,cAAc,CAAC,eAAe,EAAE,cAAc,CAAC;SAC/C,cAAc,CAAC,eAAe,EAAE,oDAAoD,CAAC;SACrF,WAAW,CACV,OAAO,EACP,0IAA0I,CAC3I;SACA,MAAM,CAAC,KAAK,EAAE,IAA+E,EAAE,EAAE;QAChG,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC;YAClD,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-diff.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/file-diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,QAwBvC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function fileDiff(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('file-diff')
|
|
6
|
-
.description('Get structured line-by-line diff for a specific file')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID')
|
|
10
|
-
.requiredOption('--path <path>', 'File path (e.g., src/main.ts)')
|
|
11
|
-
.option('--context <n>', 'Number of context lines around changes (default: 10)', parseInt)
|
|
12
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr file-diff --project PROJ --repo my-repo --id 42 --path src/main.ts\n bitbucketdc pr file-diff --project PROJ --repo my-repo --id 42 --path src/main.ts --context 5')
|
|
13
|
-
.action(async (opts) => {
|
|
14
|
-
const client = getClient();
|
|
15
|
-
const result = await client.pullRequests.getFileDiff({
|
|
16
|
-
projectKey: opts.project,
|
|
17
|
-
repositorySlug: opts.repo,
|
|
18
|
-
pullRequestId: parseInt(opts.id),
|
|
19
|
-
path: opts.path,
|
|
20
|
-
contextLines: opts.context,
|
|
21
|
-
});
|
|
22
|
-
output(result);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=file-diff.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-diff.js","sourceRoot":"","sources":["../../../src/commands/pr/file-diff.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,sDAAsD,CAAC;SACnE,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,CAAC;SAC7C,cAAc,CAAC,eAAe,EAAE,+BAA+B,CAAC;SAChE,MAAM,CAAC,eAAe,EAAE,sDAAsD,EAAE,QAAQ,CAAC;SACzF,WAAW,CACV,OAAO,EACP,mMAAmM,CACpM;SACA,MAAM,CAAC,KAAK,EAAE,IAAmF,EAAE,EAAE;QACpG,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC;YACnD,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAY,EAAE,IAAI,CAAC,OAAO;SAC3B,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,QAiBlC"}
|
package/dist/commands/pr/get.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function get(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('get')
|
|
6
|
-
.description('Get pull request details')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID')
|
|
10
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr get --project PROJ --repo my-repo --id 42')
|
|
11
|
-
.action(async (opts) => {
|
|
12
|
-
const client = getClient();
|
|
13
|
-
const result = await client.pullRequests.get({
|
|
14
|
-
projectKey: opts.project,
|
|
15
|
-
repositorySlug: opts.repo,
|
|
16
|
-
pullRequestId: parseInt(opts.id),
|
|
17
|
-
});
|
|
18
|
-
output(result);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=get.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/pr/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,GAAG,CAAC,MAAe;IACjC,MAAM;SACH,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,0BAA0B,CAAC;SACvC,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,CAAC;SAC7C,WAAW,CAAC,OAAO,EAAE,yEAAyE,CAAC;SAC/F,MAAM,CAAC,KAAK,EAAE,IAAmD,EAAE,EAAE;QACpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;YAC3C,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;SACjC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,QAkBpC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function inbox(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('inbox')
|
|
6
|
-
.description('List pull requests in your reviewer inbox')
|
|
7
|
-
.option('--start <n>', 'Starting index for pagination (default: 0)', parseInt)
|
|
8
|
-
.option('--limit <n>', 'Maximum number of pull requests to return (default: 25)', parseInt)
|
|
9
|
-
.addHelpText('after', '\nExamples:\n bitbucketdc pr inbox\n bitbucketdc pr inbox --limit 10\n bitbucketdc pr inbox --start 25 --limit 25')
|
|
10
|
-
.action(async (opts) => {
|
|
11
|
-
const client = getClient();
|
|
12
|
-
const result = await client.pullRequests.getInbox({
|
|
13
|
-
start: opts.start,
|
|
14
|
-
limit: opts.limit,
|
|
15
|
-
});
|
|
16
|
-
output(result);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=inbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../../src/commands/pr/inbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,2CAA2C,CAAC;SACxD,MAAM,CAAC,aAAa,EAAE,4CAA4C,EAAE,QAAQ,CAAC;SAC7E,MAAM,CAAC,aAAa,EAAE,yDAAyD,EAAE,QAAQ,CAAC;SAC1F,WAAW,CACV,OAAO,EACP,sHAAsH,CACvH;SACA,MAAM,CAAC,KAAK,EAAE,IAAwC,EAAE,EAAE;QACzD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC;YAChD,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsBpC,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,QA0ClD"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { activities } from './activities.js';
|
|
2
|
-
import { canMerge } from './can-merge.js';
|
|
3
|
-
import { changes } from './changes.js';
|
|
4
|
-
import { comment } from './comment.js';
|
|
5
|
-
import { create } from './create.js';
|
|
6
|
-
import { decline } from './decline.js';
|
|
7
|
-
import { deleteComment } from './delete-comment.js';
|
|
8
|
-
import { deletePr } from './delete.js';
|
|
9
|
-
import { diff } from './diff.js';
|
|
10
|
-
import { editComment } from './edit-comment.js';
|
|
11
|
-
import { fileComment } from './file-comment.js';
|
|
12
|
-
import { fileDiff } from './file-diff.js';
|
|
13
|
-
import { get } from './get.js';
|
|
14
|
-
import { inbox } from './inbox.js';
|
|
15
|
-
import { lineComment } from './line-comment.js';
|
|
16
|
-
import { merge } from './merge.js';
|
|
17
|
-
import { reactionAdd } from './reaction-add.js';
|
|
18
|
-
import { reactionRemove } from './reaction-remove.js';
|
|
19
|
-
import { review } from './review.js';
|
|
20
|
-
import { update } from './update.js';
|
|
21
|
-
export function registerPrCommands(program) {
|
|
22
|
-
const pr = program
|
|
23
|
-
.command('pr')
|
|
24
|
-
.description('Pull request operations')
|
|
25
|
-
.addHelpText('after', `
|
|
26
|
-
Examples:
|
|
27
|
-
$ bitbucketdc pr inbox
|
|
28
|
-
$ bitbucketdc pr get --project PROJ --repo my-repo --id 42
|
|
29
|
-
$ bitbucketdc pr changes --project PROJ --repo my-repo --id 42
|
|
30
|
-
$ bitbucketdc pr diff --project PROJ --repo my-repo --id 42
|
|
31
|
-
$ bitbucketdc pr create --project PROJ --repo my-repo --from feature-x --to main --title "Add feature"
|
|
32
|
-
$ bitbucketdc pr comment --project PROJ --repo my-repo --id 42 --text "Looks good!"
|
|
33
|
-
$ bitbucketdc pr review --project PROJ --repo my-repo --id 42 --status APPROVED
|
|
34
|
-
$ bitbucketdc pr update --project PROJ --repo my-repo --id 42 --title "New title"
|
|
35
|
-
$ bitbucketdc pr can-merge --project PROJ --repo my-repo --id 42
|
|
36
|
-
$ bitbucketdc pr merge --project PROJ --repo my-repo --id 42
|
|
37
|
-
$ bitbucketdc pr decline --project PROJ --repo my-repo --id 42
|
|
38
|
-
$ bitbucketdc pr delete --project PROJ --repo my-repo --id 42
|
|
39
|
-
`);
|
|
40
|
-
inbox(pr);
|
|
41
|
-
get(pr);
|
|
42
|
-
changes(pr);
|
|
43
|
-
diff(pr);
|
|
44
|
-
fileDiff(pr);
|
|
45
|
-
activities(pr);
|
|
46
|
-
create(pr);
|
|
47
|
-
comment(pr);
|
|
48
|
-
fileComment(pr);
|
|
49
|
-
lineComment(pr);
|
|
50
|
-
deleteComment(pr);
|
|
51
|
-
editComment(pr);
|
|
52
|
-
reactionAdd(pr);
|
|
53
|
-
reactionRemove(pr);
|
|
54
|
-
review(pr);
|
|
55
|
-
update(pr);
|
|
56
|
-
canMerge(pr);
|
|
57
|
-
merge(pr);
|
|
58
|
-
decline(pr);
|
|
59
|
-
deletePr(pr);
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/pr/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,M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E,CAAC,CAAC;IACX,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB,aAAa,CAAC,EAAE,CAAC,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,CAAC;IAChB,cAAc,CAAC,EAAE,CAAC,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,QAAQ,CAAC,EAAE,CAAC,CAAC;IACb,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-comment.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/line-comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,QAiD1C"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Option } from 'commander';
|
|
2
|
-
import { getClient } from '../../utils/client.js';
|
|
3
|
-
import { output } from '../../utils/output.js';
|
|
4
|
-
export function lineComment(parent) {
|
|
5
|
-
parent
|
|
6
|
-
.command('line-comment')
|
|
7
|
-
.description('Add an inline comment to a specific line in a pull request')
|
|
8
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
9
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
10
|
-
.requiredOption('--id <n>', 'Pull request ID')
|
|
11
|
-
.requiredOption('--text <text>', 'Comment text')
|
|
12
|
-
.requiredOption('--path <path>', 'File path (e.g., src/main.ts)')
|
|
13
|
-
.requiredOption('--line <n>', 'Line number to comment on')
|
|
14
|
-
.addOption(new Option('--line-type <type>', 'Type of line').choices(['ADDED', 'REMOVED', 'CONTEXT']).makeOptionMandatory())
|
|
15
|
-
.addOption(new Option('--file-type <type>', 'Side of diff: FROM (source/old) or TO (destination/new)')
|
|
16
|
-
.choices(['FROM', 'TO'])
|
|
17
|
-
.makeOptionMandatory())
|
|
18
|
-
.addHelpText('after', `\nExamples:
|
|
19
|
-
bitbucketdc pr line-comment --project PROJ --repo my-repo --id 42 --text "Use const here" --path src/main.ts --line 15 --line-type ADDED --file-type TO
|
|
20
|
-
bitbucketdc pr line-comment --project PROJ --repo my-repo --id 42 --text "Was this intentional?" --path src/old.ts --line 8 --line-type REMOVED --file-type FROM`)
|
|
21
|
-
.action(async (opts) => {
|
|
22
|
-
const client = getClient();
|
|
23
|
-
const result = await client.pullRequests.addComment({
|
|
24
|
-
projectKey: opts.project,
|
|
25
|
-
repositorySlug: opts.repo,
|
|
26
|
-
pullRequestId: parseInt(opts.id),
|
|
27
|
-
text: opts.text,
|
|
28
|
-
path: opts.path,
|
|
29
|
-
line: parseInt(opts.line),
|
|
30
|
-
lineType: opts.lineType,
|
|
31
|
-
fileType: opts.fileType,
|
|
32
|
-
});
|
|
33
|
-
output(result);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=line-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-comment.js","sourceRoot":"","sources":["../../../src/commands/pr/line-comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,4DAA4D,CAAC;SACzE,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,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AE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,QA2BpC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { getClient } from '../../utils/client.js';
|
|
2
|
-
import { output } from '../../utils/output.js';
|
|
3
|
-
export function merge(parent) {
|
|
4
|
-
parent
|
|
5
|
-
.command('merge')
|
|
6
|
-
.description('Merge a pull request')
|
|
7
|
-
.requiredOption('--project <key>', 'Bitbucket project key')
|
|
8
|
-
.requiredOption('--repo <slug>', 'Repository slug')
|
|
9
|
-
.requiredOption('--id <n>', 'Pull request ID', parseInt)
|
|
10
|
-
.option('--strategy <id>', 'Merge strategy (e.g., squash, no-ff, ff, ff-only, rebase-no-ff, rebase-ff-only)')
|
|
11
|
-
.option('--message <text>', 'Custom merge commit message')
|
|
12
|
-
.addHelpText('after', `\nExamples:
|
|
13
|
-
bitbucketdc pr merge --project PROJ --repo my-repo --id 42
|
|
14
|
-
bitbucketdc pr merge --project PROJ --repo my-repo --id 42 --strategy squash
|
|
15
|
-
bitbucketdc pr merge --project PROJ --repo my-repo --id 42 --message "Merge feature X"`)
|
|
16
|
-
.action(async (opts) => {
|
|
17
|
-
const client = getClient();
|
|
18
|
-
const result = await client.pullRequests.merge({
|
|
19
|
-
projectKey: opts.project,
|
|
20
|
-
repositorySlug: opts.repo,
|
|
21
|
-
pullRequestId: opts.id,
|
|
22
|
-
strategyId: opts.strategy,
|
|
23
|
-
message: opts.message,
|
|
24
|
-
});
|
|
25
|
-
output(result);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=merge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../src/commands/pr/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,sBAAsB,CAAC;SACnC,cAAc,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAC1D,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC;SACvD,MAAM,CAAC,iBAAiB,EAAE,iFAAiF,CAAC;SAC5G,MAAM,CAAC,kBAAkB,EAAE,6BAA6B,CAAC;SACzD,WAAW,CACV,OAAO,EACP;;;yFAGmF,CACpF;SACA,MAAM,CAAC,KAAK,EAAE,IAAwF,EAAE,EAAE;QACzG,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC;YAC7C,UAAU,EAAE,IAAI,CAAC,OAAO;YACxB,cAAc,EAAE,IAAI,CAAC,IAAI;YACzB,aAAa,EAAE,IAAI,CAAC,EAAE;YACtB,UAAU,EAAE,IAAI,CAAC,QAAQ;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reaction-add.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/reaction-add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAI5C,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,QA8B1C"}
|