@activepieces/piece-github 0.8.2 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -17
- package/src/index.js +98 -75
- package/src/index.d.ts +0 -6
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-labels-to-issue.d.ts +0 -33
- package/src/lib/actions/add-labels-to-issue.d.ts.map +0 -1
- package/src/lib/actions/add-labels-to-issue.js +0 -36
- package/src/lib/actions/add-labels-to-issue.js.map +0 -1
- package/src/lib/actions/create-branch.d.ts +0 -25
- package/src/lib/actions/create-branch.d.ts.map +0 -1
- package/src/lib/actions/create-branch.js +0 -45
- package/src/lib/actions/create-branch.js.map +0 -1
- package/src/lib/actions/create-comment-on-a-issue.d.ts +0 -17
- package/src/lib/actions/create-comment-on-a-issue.d.ts.map +0 -1
- package/src/lib/actions/create-comment-on-a-issue.js +0 -43
- package/src/lib/actions/create-comment-on-a-issue.js.map +0 -1
- package/src/lib/actions/create-commit-comment.d.ts +0 -19
- package/src/lib/actions/create-commit-comment.d.ts.map +0 -1
- package/src/lib/actions/create-commit-comment.js +0 -60
- package/src/lib/actions/create-commit-comment.js.map +0 -1
- package/src/lib/actions/create-discussion-comment.d.ts +0 -17
- package/src/lib/actions/create-discussion-comment.d.ts.map +0 -1
- package/src/lib/actions/create-discussion-comment.js +0 -60
- package/src/lib/actions/create-discussion-comment.js.map +0 -1
- package/src/lib/actions/create-gist.d.ts +0 -11
- package/src/lib/actions/create-gist.d.ts.map +0 -1
- package/src/lib/actions/create-gist.js +0 -63
- package/src/lib/actions/create-gist.js.map +0 -1
- package/src/lib/actions/create-issue.d.ts +0 -35
- package/src/lib/actions/create-issue.d.ts.map +0 -1
- package/src/lib/actions/create-issue.js +0 -53
- package/src/lib/actions/create-issue.js.map +0 -1
- package/src/lib/actions/create-pull-request-review-comment.d.ts +0 -20
- package/src/lib/actions/create-pull-request-review-comment.d.ts.map +0 -1
- package/src/lib/actions/create-pull-request-review-comment.js +0 -61
- package/src/lib/actions/create-pull-request-review-comment.js.map +0 -1
- package/src/lib/actions/delete-branch.d.ts +0 -24
- package/src/lib/actions/delete-branch.d.ts.map +0 -1
- package/src/lib/actions/delete-branch.js +0 -31
- package/src/lib/actions/delete-branch.js.map +0 -1
- package/src/lib/actions/find-branch.d.ts +0 -16
- package/src/lib/actions/find-branch.d.ts.map +0 -1
- package/src/lib/actions/find-branch.js +0 -50
- package/src/lib/actions/find-branch.js.map +0 -1
- package/src/lib/actions/find-issue.d.ts +0 -17
- package/src/lib/actions/find-issue.d.ts.map +0 -1
- package/src/lib/actions/find-issue.js +0 -60
- package/src/lib/actions/find-issue.js.map +0 -1
- package/src/lib/actions/find-user.d.ts +0 -8
- package/src/lib/actions/find-user.d.ts.map +0 -1
- package/src/lib/actions/find-user.js +0 -49
- package/src/lib/actions/find-user.js.map +0 -1
- package/src/lib/actions/get-issue-information.d.ts +0 -16
- package/src/lib/actions/get-issue-information.d.ts.map +0 -1
- package/src/lib/actions/get-issue-information.js +0 -35
- package/src/lib/actions/get-issue-information.js.map +0 -1
- package/src/lib/actions/lock-issue.d.ts +0 -21
- package/src/lib/actions/lock-issue.d.ts.map +0 -1
- package/src/lib/actions/lock-issue.js +0 -55
- package/src/lib/actions/lock-issue.js.map +0 -1
- package/src/lib/actions/raw-graphql-query.d.ts +0 -9
- package/src/lib/actions/raw-graphql-query.d.ts.map +0 -1
- package/src/lib/actions/raw-graphql-query.js +0 -36
- package/src/lib/actions/raw-graphql-query.js.map +0 -1
- package/src/lib/actions/unlock-issue.d.ts +0 -16
- package/src/lib/actions/unlock-issue.d.ts.map +0 -1
- package/src/lib/actions/unlock-issue.js +0 -35
- package/src/lib/actions/unlock-issue.js.map +0 -1
- package/src/lib/actions/update-issue.d.ts +0 -55
- package/src/lib/actions/update-issue.d.ts.map +0 -1
- package/src/lib/actions/update-issue.js +0 -81
- package/src/lib/actions/update-issue.js.map +0 -1
- package/src/lib/auth.d.ts +0 -12
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -75
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/auth-helpers.d.ts +0 -20
- package/src/lib/common/auth-helpers.d.ts.map +0 -1
- package/src/lib/common/auth-helpers.js +0 -118
- package/src/lib/common/auth-helpers.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -82
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -322
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/trigger/index.d.ts +0 -1349
- package/src/lib/trigger/index.d.ts.map +0 -1
- package/src/lib/trigger/index.js +0 -1208
- package/src/lib/trigger/index.js.map +0 -1
- package/src/lib/trigger/new-branch.d.ts +0 -55
- package/src/lib/trigger/new-branch.d.ts.map +0 -1
- package/src/lib/trigger/new-branch.js +0 -78
- package/src/lib/trigger/new-branch.js.map +0 -1
- package/src/lib/trigger/new-collaborator.d.ts +0 -55
- package/src/lib/trigger/new-collaborator.d.ts.map +0 -1
- package/src/lib/trigger/new-collaborator.js +0 -85
- package/src/lib/trigger/new-collaborator.js.map +0 -1
- package/src/lib/trigger/new-commit.d.ts +0 -55
- package/src/lib/trigger/new-commit.d.ts.map +0 -1
- package/src/lib/trigger/new-commit.js +0 -85
- package/src/lib/trigger/new-commit.js.map +0 -1
- package/src/lib/trigger/new-label.d.ts +0 -55
- package/src/lib/trigger/new-label.d.ts.map +0 -1
- package/src/lib/trigger/new-label.js +0 -83
- package/src/lib/trigger/new-label.js.map +0 -1
- package/src/lib/trigger/new-mention.d.ts +0 -55
- package/src/lib/trigger/new-mention.d.ts.map +0 -1
- package/src/lib/trigger/new-mention.js +0 -98
- package/src/lib/trigger/new-mention.js.map +0 -1
- package/src/lib/trigger/new-milestone.d.ts +0 -55
- package/src/lib/trigger/new-milestone.d.ts.map +0 -1
- package/src/lib/trigger/new-milestone.js +0 -86
- package/src/lib/trigger/new-milestone.js.map +0 -1
- package/src/lib/trigger/new-release.d.ts +0 -55
- package/src/lib/trigger/new-release.d.ts.map +0 -1
- package/src/lib/trigger/new-release.js +0 -82
- package/src/lib/trigger/new-release.js.map +0 -1
- package/src/lib/trigger/new-review-request.d.ts +0 -55
- package/src/lib/trigger/new-review-request.d.ts.map +0 -1
- package/src/lib/trigger/new-review-request.js +0 -75
- package/src/lib/trigger/new-review-request.js.map +0 -1
- package/src/lib/trigger/register-trigger.d.ts +0 -60
- package/src/lib/trigger/register-trigger.d.ts.map +0 -1
- package/src/lib/trigger/register-trigger.js +0 -70
- package/src/lib/trigger/register-trigger.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const githubCreatePullRequestReviewCommentAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
pull_number: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
15
|
-
commit_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
body: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
18
|
-
position: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
19
|
-
}>;
|
|
20
|
-
//# sourceMappingURL=create-pull-request-review-comment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-pull-request-review-comment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-pull-request-review-comment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;EAqDrD,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreatePullRequestReviewCommentAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubCreatePullRequestReviewCommentAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'github_create_pull_request_review_comment',
|
|
12
|
-
displayName: 'Create Pull Request Review Comment',
|
|
13
|
-
description: 'Creates a review comment on a pull request in a GitHub repository',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
pull_number: pieces_framework_1.Property.Number({
|
|
17
|
-
displayName: 'Pull Request Number',
|
|
18
|
-
description: 'The number of the pull request',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
commit_id: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Commit SHA',
|
|
23
|
-
description: 'The SHA of the commit to comment on',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
path: pieces_framework_1.Property.ShortText({
|
|
27
|
-
displayName: 'File Path',
|
|
28
|
-
description: 'The relative path to the file to comment on',
|
|
29
|
-
required: true,
|
|
30
|
-
}),
|
|
31
|
-
body: pieces_framework_1.Property.LongText({
|
|
32
|
-
displayName: 'Comment Body',
|
|
33
|
-
description: 'The content of the review comment',
|
|
34
|
-
required: true,
|
|
35
|
-
}),
|
|
36
|
-
position: pieces_framework_1.Property.Number({
|
|
37
|
-
displayName: 'Position',
|
|
38
|
-
description: 'The position in the diff where the comment should be placed',
|
|
39
|
-
required: true,
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
42
|
-
run(_a) {
|
|
43
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
44
|
-
const { pull_number, commit_id, path, body, position } = propsValue;
|
|
45
|
-
const { owner, repo } = propsValue.repository;
|
|
46
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
47
|
-
auth,
|
|
48
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
49
|
-
resourceUri: `/repos/${owner}/${repo}/pulls/${pull_number}/comments`,
|
|
50
|
-
body: {
|
|
51
|
-
commit_id,
|
|
52
|
-
path,
|
|
53
|
-
body,
|
|
54
|
-
position,
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
return response;
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=create-pull-request-review-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-pull-request-review-comment.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-pull-request-review-comment.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,0CAA0C,GAAG,IAAA,+BAAY,EAAC;IACrE,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE,oCAAoC;IACjD,WAAW,EACT,mEAAmE;IACrE,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,WAAW,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC3B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACxB,WAAW,EAAE,UAAU;YACvB,WAAW,EACT,6DAA6D;YAC/D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YACpE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,UAAU,WAAW,WAAW;gBACpE,IAAI,EAAE;oBACJ,SAAS;oBACT,IAAI;oBACJ,IAAI;oBACJ,QAAQ;iBACT;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const githubDeleteBranchAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
branch: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
18
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
19
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
20
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
22
|
-
}>)[]>;
|
|
23
|
-
}>;
|
|
24
|
-
//# sourceMappingURL=delete-branch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-branch.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;EAsBnC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubDeleteBranchAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubDeleteBranchAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'delete_branch',
|
|
12
|
-
displayName: 'Delete Branch',
|
|
13
|
-
description: 'Deletes a branch from a repository.',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
branch: common_1.githubCommon.branchDropdown('Branch', '', true),
|
|
17
|
-
},
|
|
18
|
-
run(_a) {
|
|
19
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
20
|
-
const { owner, repo } = propsValue.repository;
|
|
21
|
-
const branchName = propsValue.branch;
|
|
22
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
23
|
-
auth,
|
|
24
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
25
|
-
resourceUri: `/repos/${owner}/${repo}/git/refs/heads/${branchName}`,
|
|
26
|
-
});
|
|
27
|
-
return response;
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=delete-branch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-branch.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-branch.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qCAAqC;IAClD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,MAAM,EAAE,qBAAY,CAAC,cAAc,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC;KACxD;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;YAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,MAAM;gBAEzB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,mBAAmB,UAAU,EAAE;aACpE,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const githubFindBranchAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
branch: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=find-branch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-branch.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;EAsCjC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubFindBranchAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
const axios_1 = require("axios");
|
|
10
|
-
exports.githubFindBranchAction = (0, pieces_framework_1.createAction)({
|
|
11
|
-
auth: auth_1.githubAuth,
|
|
12
|
-
name: 'find_branch',
|
|
13
|
-
displayName: 'Find Branch',
|
|
14
|
-
description: 'Finds a branch by name and returns its details.',
|
|
15
|
-
props: {
|
|
16
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
17
|
-
branch: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Branch Name',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(_a) {
|
|
23
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
24
|
-
const { owner, repo } = propsValue.repository;
|
|
25
|
-
const branchName = propsValue.branch;
|
|
26
|
-
try {
|
|
27
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
28
|
-
auth,
|
|
29
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
30
|
-
resourceUri: `/repos/${owner}/${repo}/branches/${branchName}`,
|
|
31
|
-
});
|
|
32
|
-
return {
|
|
33
|
-
found: true,
|
|
34
|
-
result: response.body,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
catch (e) {
|
|
38
|
-
const status = e.response.status;
|
|
39
|
-
if (status === axios_1.HttpStatusCode.NotFound) {
|
|
40
|
-
return {
|
|
41
|
-
found: false,
|
|
42
|
-
result: {},
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
throw e;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=find-branch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-branch.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-branch.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAwD;AACxD,+DAAoE;AACpE,iCAAuC;AAE1B,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,iDAAiD;IAC9D,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;YAErC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;oBACnC,IAAI;oBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,aAAa,UAAU,EAAE;iBAC9D,CAAC,CAAC;gBAEH,OAAO;oBACL,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,QAAQ,CAAC,IAAI;iBACtB,CAAC;YACJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,MAAM,GAAI,CAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAChD,IAAI,MAAM,KAAK,sBAAc,CAAC,QAAQ,EAAE,CAAC;oBACvC,OAAO;wBACL,KAAK,EAAE,KAAK;wBACZ,MAAM,EAAE,EAAE;qBACX,CAAC;gBACJ,CAAC;gBACD,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const githubFindIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
-
state: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=find-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAqDhC,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubFindIssueAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubFindIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'find_issue',
|
|
12
|
-
displayName: 'Find Issue',
|
|
13
|
-
description: 'Finds an issue based title.',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
title: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Title',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
state: pieces_framework_1.Property.StaticDropdown({
|
|
21
|
-
displayName: 'State',
|
|
22
|
-
description: 'Filter issues by their state.',
|
|
23
|
-
required: true,
|
|
24
|
-
options: {
|
|
25
|
-
options: [
|
|
26
|
-
{ label: 'Open', value: 'open' },
|
|
27
|
-
{ label: 'Closed', value: 'closed' },
|
|
28
|
-
{ label: 'All', value: 'all' },
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
run(_a) {
|
|
34
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
35
|
-
const { owner, repo } = propsValue.repository;
|
|
36
|
-
const { state, title } = propsValue;
|
|
37
|
-
const query = {};
|
|
38
|
-
if (propsValue.state)
|
|
39
|
-
query.state = propsValue.state;
|
|
40
|
-
let q = `repo:${owner}/${repo} is:issue in:title`;
|
|
41
|
-
if (title) {
|
|
42
|
-
q += ` "${title}"`;
|
|
43
|
-
}
|
|
44
|
-
if (state && state !== 'all') {
|
|
45
|
-
q += ` state:${state}`;
|
|
46
|
-
}
|
|
47
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
48
|
-
auth,
|
|
49
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
50
|
-
resourceUri: `/search/issues`,
|
|
51
|
-
query: { q, per_page: 1 },
|
|
52
|
-
});
|
|
53
|
-
return {
|
|
54
|
-
found: response.body.total_count > 0,
|
|
55
|
-
result: response.body.items,
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=find-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAuE;AACvE,+DAAyD;AAE5C,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC7B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACpC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;iBAC/B;aACF;SACF,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;YACpC,MAAM,KAAK,GAAkB,EAAE,CAAC;YAChC,IAAI,UAAU,CAAC,KAAK;gBAAE,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;YAErD,IAAI,CAAC,GAAG,QAAQ,KAAK,IAAI,IAAI,oBAAoB,CAAC;YAClD,IAAI,KAAK,EAAE,CAAC;gBACV,CAAC,IAAI,KAAK,KAAK,GAAG,CAAC;YACrB,CAAC;YACD,IAAI,KAAK,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBAC7B,CAAC,IAAI,UAAU,KAAK,EAAE,CAAC;YACzB,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAGjC;gBACD,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,gBAAgB;gBAC7B,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;aAC1B,CAAC,CAAC;YAEH,OAAO;gBACL,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC;gBACpC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK;aAC5B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const githubFindUserAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=find-user.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-user.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;EAqC/B,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubFindUserAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
const axios_1 = require("axios");
|
|
10
|
-
exports.githubFindUserAction = (0, pieces_framework_1.createAction)({
|
|
11
|
-
auth: auth_1.githubAuth,
|
|
12
|
-
name: 'find_user',
|
|
13
|
-
displayName: 'Find User',
|
|
14
|
-
description: 'Finds a user by their login name.',
|
|
15
|
-
props: {
|
|
16
|
-
username: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Username',
|
|
18
|
-
description: 'The GitHub username (login) to look up.',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(_a) {
|
|
23
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
24
|
-
const { username } = propsValue;
|
|
25
|
-
try {
|
|
26
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
27
|
-
auth,
|
|
28
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
29
|
-
resourceUri: `/users/${username}`,
|
|
30
|
-
});
|
|
31
|
-
return {
|
|
32
|
-
found: true,
|
|
33
|
-
result: response.body,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
catch (e) {
|
|
37
|
-
const status = e.response.status;
|
|
38
|
-
if (status === axios_1.HttpStatusCode.NotFound) {
|
|
39
|
-
return {
|
|
40
|
-
found: false,
|
|
41
|
-
result: {},
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
throw e;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=find-user.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-user.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAA0C;AAC1C,+DAAoE;AACpE,iCAAuC;AAE1B,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YAEhC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;oBACnC,IAAI;oBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,WAAW,EAAE,UAAU,QAAQ,EAAE;iBAClC,CAAC,CAAC;gBAEH,OAAO;oBACL,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,QAAQ,CAAC,IAAI;iBACtB,CAAC;YACJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,MAAM,GAAI,CAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAChD,IAAI,MAAM,KAAK,sBAAc,CAAC,QAAQ,EAAE,CAAC;oBACvC,OAAO;wBACL,KAAK,EAAE,KAAK;wBACZ,MAAM,EAAE,EAAE;qBACX,CAAC;gBACJ,CAAC;gBACD,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const githubGetIssueInformation: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
issue_number: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=get-issue-information.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-issue-information.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue-information.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;EAyBpC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubGetIssueInformation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubGetIssueInformation = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'getIssueInformation',
|
|
12
|
-
displayName: 'Get issue information',
|
|
13
|
-
description: 'Grabs information from a specific issue',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
issue_number: pieces_framework_1.Property.Number({
|
|
17
|
-
displayName: 'Issue Number',
|
|
18
|
-
description: 'The number of the issue you want to get information from',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(_a) {
|
|
23
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
24
|
-
const issue_number = propsValue.issue_number;
|
|
25
|
-
const { owner, repo } = propsValue.repository;
|
|
26
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
27
|
-
auth,
|
|
28
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
29
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}`,
|
|
30
|
-
});
|
|
31
|
-
return response;
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=get-issue-information.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-issue-information.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue-information.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;YAC7C,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,YAAY,EAAE;aAC9D,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const githubLockIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
issue_number: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
15
|
-
lock_reason: import("@activepieces/pieces-framework").DropdownProperty<"off-topic" | "too heated" | "resolved" | "spam" | undefined, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>)[]>;
|
|
20
|
-
}>;
|
|
21
|
-
//# sourceMappingURL=lock-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lock-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/lock-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;EAgDhC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubLockIssueAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubLockIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'lockIssue',
|
|
12
|
-
displayName: 'Lock issue',
|
|
13
|
-
description: 'Locks the specified issue',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
issue_number: pieces_framework_1.Property.Number({
|
|
17
|
-
displayName: 'Issue Number',
|
|
18
|
-
description: 'The number of the issue to be locked',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
lock_reason: pieces_framework_1.Property.Dropdown({
|
|
22
|
-
auth: auth_1.githubAuth,
|
|
23
|
-
displayName: 'Lock Reason',
|
|
24
|
-
description: 'The reason for locking the issue',
|
|
25
|
-
required: false,
|
|
26
|
-
refreshers: [],
|
|
27
|
-
options: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
-
return {
|
|
29
|
-
options: [
|
|
30
|
-
{ value: 'off-topic', label: 'Off-topic' },
|
|
31
|
-
{ value: 'too heated', label: 'Too heated' },
|
|
32
|
-
{ value: 'resolved', label: 'Resolved' },
|
|
33
|
-
{ value: 'spam', label: 'Spam' },
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
}),
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
-
run(_a) {
|
|
40
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
41
|
-
const { issue_number, lock_reason } = propsValue;
|
|
42
|
-
const { owner, repo } = propsValue.repository;
|
|
43
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
44
|
-
auth,
|
|
45
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
46
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/lock`,
|
|
47
|
-
body: {
|
|
48
|
-
lock_reason,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
return response;
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
//# sourceMappingURL=lock-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lock-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/lock-issue.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAI5B;YACA,IAAI,EAAE,iBAAU;YAChB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,GAAS,EAAE;gBAClB,OAAO;oBACL,OAAO,EAAE;wBACP,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;wBAC1C,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;wBAC5C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;wBACxC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;qBACjC;iBACF,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YACjD,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,YAAY,OAAO;gBAClE,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const githubRawGraphqlQuery: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
query: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
7
|
-
variables: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=raw-graphql-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-graphql-query.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/raw-graphql-query.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;;;;;EA2BhC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubRawGraphqlQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
8
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
9
|
-
exports.githubRawGraphqlQuery = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'rawGraphqlQuery',
|
|
11
|
-
displayName: 'Raw GraphQL query',
|
|
12
|
-
description: 'Perform a raw GraphQL query',
|
|
13
|
-
auth: auth_1.githubAuth,
|
|
14
|
-
props: {
|
|
15
|
-
query: pieces_framework_1.Property.LongText({ displayName: 'Query', required: true }),
|
|
16
|
-
variables: pieces_framework_1.Property.Object({ displayName: 'Parameters', required: false }),
|
|
17
|
-
},
|
|
18
|
-
run(_a) {
|
|
19
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
20
|
-
const token = yield auth_helpers_1.githubAuthHelpers.getBearerToken(auth);
|
|
21
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
22
|
-
url: 'https://api.github.com/graphql',
|
|
23
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
24
|
-
headers: {
|
|
25
|
-
Authorization: `Bearer ${token}`,
|
|
26
|
-
},
|
|
27
|
-
body: JSON.stringify({
|
|
28
|
-
query: propsValue.query,
|
|
29
|
-
variables: propsValue.variables,
|
|
30
|
-
}),
|
|
31
|
-
});
|
|
32
|
-
return response;
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=raw-graphql-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-graphql-query.js","sourceRoot":"","sources":["../../../../src/lib/actions/raw-graphql-query.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,kCAAqC;AACrC,+DAAqE;AACrE,yDAA4E;AAE/D,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,6BAA6B;IAC1C,IAAI,EAAE,iBAAU;IAChB,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAClE,SAAS,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAC3E;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,KAAK,GAAG,MAAM,gCAAiB,CAAC,cAAc,CAClD,IAAuB,CACxB,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,gCAAgC;gBACrC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,KAAK,EAAE;iBACjC;gBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;oBACnB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,SAAS,EAAE,UAAU,CAAC,SAAS;iBAChC,CAAC;aACH,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const githubUnlockIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
issue_number: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=unlock-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unlock-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/unlock-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;EAyBlC,CAAC"}
|