@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
package/src/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const github: import("@activepieces/pieces-framework").Piece<(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
|
-
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,MAAM;;;;MAgDjB,CAAC"}
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAA6D;AAC7D,iDAAqD;AACrD,4DAA+E;AAC/E,6DAAqE;AACrE,6DAAqE;AACrE,2CAA+C;AAC/C,+EAAgF;AAChF,uFAAsF;AACtF,yDAAiE;AACjE,uEAAwE;AACxE,yGAA8G;AAC9G,+EAAsF;AACtF,uFAA8F;AAC9F,2EAAiF;AACjF,+DAAuE;AACvE,+DAAuE;AACvE,6DAAqE;AACrE,2DAAmE;AAEnE,2DAAmE;AACnE,yDAAiE;AACjE,uDAA+D;AAE/D,qCAAwC;AAE3B,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IAChC,WAAW,EAAE,QAAQ;IACrB,WAAW,EACT,yFAAyF;IAE3F,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gDAAgD;IACzD,UAAU,EAAE,CAAC,sBAAa,CAAC,eAAe,CAAC;IAC3C,IAAI,EAAE,iBAAU;IAChB,OAAO,EAAE;QACP,sCAAuB;QACvB,iDAAyB;QACzB,uDAA2B;QAC3B,kCAAqB;QACrB,sCAAuB;QACvB,yCAAqB;QACrB,+EAA0C;QAC1C,uDAA+B;QAC/B,+DAAmC;QACnC,kDAA4B;QAC5B,wCAAwB;QACxB,wCAAwB;QACxB,sCAAuB;QACvB,oCAAsB;QACtB,kCAAqB;QACrB,gCAAoB;QACpB,oCAAsB;QACtB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB;YACvC,IAAI,EAAE,iBAAU;YAChB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,MAAM,gCAAiB,CAAC,cAAc,CAC7D,IAAuB,CACxB,EAAE;iBACJ,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,OAAO,EAAE;QACP,YAAY;QACZ,WAAW;QACX,sBAAsB;QACtB,eAAe;QACf,UAAU;QACV,cAAc;QACd,UAAU;QACV,aAAa;KACd;IACD,QAAQ,EAAE,wBAAc;CACzB,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const githubAddLabelsToIssueAction: 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").DropdownProperty<number, 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<number, 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
|
-
labels: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
24
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
25
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
26
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
27
|
-
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
28
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
29
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
31
|
-
}>)[]>;
|
|
32
|
-
}>;
|
|
33
|
-
//# sourceMappingURL=add-labels-to-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-labels-to-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/add-labels-to-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BvC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubAddLabelsToIssueAction = 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.githubAddLabelsToIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'add_labels_to_issue',
|
|
12
|
-
displayName: 'Add Labels to Issue',
|
|
13
|
-
description: 'Adds labels to an existing issue.',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
issue_number: common_1.githubCommon.issueDropdown(true),
|
|
17
|
-
labels: common_1.githubCommon.labelDropDown(true),
|
|
18
|
-
},
|
|
19
|
-
run(_a) {
|
|
20
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
21
|
-
const { owner, repo } = propsValue.repository;
|
|
22
|
-
const issue_number = propsValue.issue_number;
|
|
23
|
-
const labels = propsValue.labels;
|
|
24
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
25
|
-
auth,
|
|
26
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
27
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/labels`,
|
|
28
|
-
body: {
|
|
29
|
-
labels: labels,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
return response;
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=add-labels-to-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-labels-to-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/add-labels-to-issue.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAA8D;AAC9D,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,4BAA4B,GAAG,IAAA,+BAAY,EAAC;IACvD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,qBAAY,CAAC,aAAa,CAAC,IAAI,CAAC;QAC9C,MAAM,EAAE,qBAAY,CAAC,aAAa,CAAC,IAAI,CAAC;KACzC;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;YAC7C,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;YAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,YAAY,SAAS;gBACpE,IAAI,EAAE;oBACJ,MAAM,EAAE,MAAM;iBACf;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const githubCreateBranchAction: 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
|
-
source_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
|
-
new_branch_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
-
}>;
|
|
25
|
-
//# sourceMappingURL=create-branch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-branch.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;EAwCnC,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreateBranchAction = 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.githubCreateBranchAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'create_branch',
|
|
12
|
-
displayName: 'Create Branch',
|
|
13
|
-
description: 'Creates a new branch on a repository.',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
source_branch: common_1.githubCommon.branchDropdown('Source Branch', 'The source branch that will be used to create the new branch', true),
|
|
17
|
-
new_branch_name: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'New Branch Name',
|
|
19
|
-
description: "The name for the new branch (e.g., 'feature/new-design').",
|
|
20
|
-
required: true,
|
|
21
|
-
}),
|
|
22
|
-
},
|
|
23
|
-
run(_a) {
|
|
24
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
25
|
-
const { owner, repo } = propsValue.repository;
|
|
26
|
-
const sourceBranchInfo = yield (0, common_1.githubApiCall)({
|
|
27
|
-
auth,
|
|
28
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
29
|
-
resourceUri: `/repos/${owner}/${repo}/branches/${propsValue.source_branch}`,
|
|
30
|
-
});
|
|
31
|
-
const sourceSha = sourceBranchInfo.body.commit.sha;
|
|
32
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
33
|
-
auth,
|
|
34
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
35
|
-
resourceUri: `/repos/${owner}/${repo}/git/refs`,
|
|
36
|
-
body: {
|
|
37
|
-
ref: `refs/heads/${propsValue.new_branch_name}`,
|
|
38
|
-
sha: sourceSha,
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
return response;
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=create-branch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-branch.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-branch.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,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,uCAAuC;IACpD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,aAAa,EAAE,qBAAY,CAAC,cAAc,CACxC,eAAe,EACf,8DAA8D,EAC9D,IAAI,CACL;QACD,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,2DAA2D;YACxE,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;YAE/C,MAAM,gBAAgB,GAAG,MAAM,IAAA,sBAAa,EAA8B;gBACxE,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,aAAa,UAAU,CAAC,aAAa,EAAE;aAC5E,CAAC,CAAC;YACH,MAAM,SAAS,GAAG,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YAEnD,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW;gBAC/C,IAAI,EAAE;oBACJ,GAAG,EAAE,cAAc,UAAU,CAAC,eAAe,EAAE;oBAC/C,GAAG,EAAE,SAAS;iBACf;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const githubCreateCommentOnAIssue: 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
|
-
comment: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=create-comment-on-a-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-comment-on-a-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-comment-on-a-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAkCtC,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreateCommentOnAIssue = 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.githubCreateCommentOnAIssue = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'createCommentOnAIssue',
|
|
12
|
-
displayName: 'Create comment on a issue',
|
|
13
|
-
description: 'Adds a comment to the specified issue (also works with pull requests)',
|
|
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 comment on',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
comment: pieces_framework_1.Property.LongText({
|
|
22
|
-
displayName: 'Comment',
|
|
23
|
-
description: 'The comment to add to the issue',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
run(_a) {
|
|
28
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
29
|
-
const issue_number = propsValue.issue_number;
|
|
30
|
-
const { owner, repo } = propsValue.repository;
|
|
31
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
32
|
-
auth,
|
|
33
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
34
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/comments`,
|
|
35
|
-
body: {
|
|
36
|
-
body: propsValue.comment,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
return response;
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=create-comment-on-a-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-comment-on-a-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-comment-on-a-issue.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,2BAA2B;IACxC,WAAW,EACT,uEAAuE;IACzE,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,iCAAiC;YAC9C,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,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,YAAY,WAAW;gBACtE,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU,CAAC,OAAO;iBACzB;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const githubCreateCommitCommentAction: 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
|
-
sha: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
-
body: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
16
|
-
path: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
|
-
position: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=create-commit-comment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-commit-comment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-commit-comment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;EAqD1C,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreateCommitCommentAction = 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.githubCreateCommitCommentAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'github_create_commit_comment',
|
|
12
|
-
displayName: 'Create Commit Comment',
|
|
13
|
-
description: 'Creates a comment on a commit in a GitHub repository',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
sha: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Commit SHA',
|
|
18
|
-
description: 'The SHA of the commit to comment on',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
body: pieces_framework_1.Property.LongText({
|
|
22
|
-
displayName: 'Comment Body',
|
|
23
|
-
description: 'The content of the comment',
|
|
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 (optional)',
|
|
29
|
-
required: false,
|
|
30
|
-
}),
|
|
31
|
-
position: pieces_framework_1.Property.Number({
|
|
32
|
-
displayName: 'Position',
|
|
33
|
-
description: 'The line index in the diff to comment on (optional)',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
run(_a) {
|
|
38
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
39
|
-
const { sha, body, path, position } = propsValue;
|
|
40
|
-
const { owner, repo } = propsValue.repository;
|
|
41
|
-
const commentData = {
|
|
42
|
-
body,
|
|
43
|
-
};
|
|
44
|
-
if (path) {
|
|
45
|
-
commentData.path = path;
|
|
46
|
-
}
|
|
47
|
-
if (position !== undefined) {
|
|
48
|
-
commentData.position = position;
|
|
49
|
-
}
|
|
50
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
51
|
-
auth,
|
|
52
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
53
|
-
resourceUri: `/repos/${owner}/${repo}/commits/${sha}/comments`,
|
|
54
|
-
body: commentData,
|
|
55
|
-
});
|
|
56
|
-
return response;
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=create-commit-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-commit-comment.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-commit-comment.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,+BAA+B,GAAG,IAAA,+BAAY,EAAC;IAC1D,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACxB,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YACjD,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,WAAW,GAAwB;gBACvC,IAAI;aACL,CAAC;YAEF,IAAI,IAAI,EAAE,CAAC;gBACT,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC;YAC1B,CAAC;YAED,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAClC,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,YAAY,GAAG,WAAW;gBAC9D,IAAI,EAAE,WAAW;aAClB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const githubCreateDiscussionCommentAction: 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
|
-
discussion_number: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
15
|
-
body: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=create-discussion-comment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-discussion-comment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-discussion-comment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;EAmD9C,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreateDiscussionCommentAction = 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.githubCreateDiscussionCommentAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'github_create_discussion_comment',
|
|
12
|
-
displayName: 'Create Discussion Comment',
|
|
13
|
-
description: 'Creates a comment on a discussion in a GitHub repository',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
discussion_number: pieces_framework_1.Property.Number({
|
|
17
|
-
displayName: 'Discussion Number',
|
|
18
|
-
description: 'The number of the discussion to comment on',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
body: pieces_framework_1.Property.LongText({
|
|
22
|
-
displayName: 'Comment Body',
|
|
23
|
-
description: 'The content of the comment (supports markdown)',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
run(_a) {
|
|
28
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
29
|
-
const { discussion_number, body } = propsValue;
|
|
30
|
-
const { owner, repo } = propsValue.repository;
|
|
31
|
-
// GitHub Discussions API requires GraphQL for most operations
|
|
32
|
-
const query = `
|
|
33
|
-
mutation AddDiscussionComment {
|
|
34
|
-
addDiscussionComment(input: {
|
|
35
|
-
discussionId: "${discussion_number}",
|
|
36
|
-
repositoryName: "${repo}",
|
|
37
|
-
repositoryOwner: "${owner}",
|
|
38
|
-
body: "${body.replace(/"/g, '\\"')}"
|
|
39
|
-
}) {
|
|
40
|
-
comment {
|
|
41
|
-
id
|
|
42
|
-
body
|
|
43
|
-
createdAt
|
|
44
|
-
url
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}`;
|
|
48
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
49
|
-
auth,
|
|
50
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
51
|
-
resourceUri: '/graphql',
|
|
52
|
-
body: {
|
|
53
|
-
query,
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
return response;
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=create-discussion-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-discussion-comment.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-discussion-comment.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,mCAAmC,GAAG,IAAA,+BAAY,EAAC;IAC9D,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,0DAA0D;IACvE,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,iBAAiB,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACjC,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;YAC/C,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,8DAA8D;YAC9D,MAAM,KAAK,GAAG;;;qBAGG,iBAAiB;uBACf,IAAI;wBACH,KAAK;aAChB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;;;;;;;;;IASlC,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE;oBACJ,KAAK;iBACN;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const githubCreateGistAction: 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
|
-
description: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
public: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
8
|
-
filename: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
-
content: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=create-gist.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-gist.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-gist.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB;;;;;;;;;EA8DjC,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreateGistAction = 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 auth_helpers_1 = require("../common/auth-helpers");
|
|
9
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
10
|
-
exports.githubCreateGistAction = (0, pieces_framework_1.createAction)({
|
|
11
|
-
auth: auth_1.githubAuth,
|
|
12
|
-
name: 'github_create_gist',
|
|
13
|
-
displayName: 'Create Gist',
|
|
14
|
-
description: 'Create a GitHub Gist. Requires an OAuth connection — Gists cannot be created with GitHub App authentication.',
|
|
15
|
-
props: {
|
|
16
|
-
description: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Description',
|
|
18
|
-
description: 'Description of the gist',
|
|
19
|
-
required: false,
|
|
20
|
-
}),
|
|
21
|
-
public: pieces_framework_1.Property.Checkbox({
|
|
22
|
-
displayName: 'Public',
|
|
23
|
-
description: 'Whether the gist should be public',
|
|
24
|
-
required: true,
|
|
25
|
-
defaultValue: true,
|
|
26
|
-
}),
|
|
27
|
-
filename: pieces_framework_1.Property.ShortText({
|
|
28
|
-
displayName: 'Filename',
|
|
29
|
-
description: 'Name of the file in the gist',
|
|
30
|
-
required: true,
|
|
31
|
-
}),
|
|
32
|
-
content: pieces_framework_1.Property.LongText({
|
|
33
|
-
displayName: 'File Content',
|
|
34
|
-
description: 'Content of the file',
|
|
35
|
-
required: true,
|
|
36
|
-
}),
|
|
37
|
-
},
|
|
38
|
-
run(_a) {
|
|
39
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
40
|
-
if ((0, auth_helpers_1.isAppAuth)(auth)) {
|
|
41
|
-
throw new Error('Create Gist is not available with GitHub App authentication. The GitHub Gists API requires a user OAuth token — App installation tokens cannot create gists. Use an OAuth connection instead.');
|
|
42
|
-
}
|
|
43
|
-
const { description, public: isPublic, filename, content } = propsValue;
|
|
44
|
-
const body = {
|
|
45
|
-
description,
|
|
46
|
-
public: isPublic,
|
|
47
|
-
files: {
|
|
48
|
-
[filename]: {
|
|
49
|
-
content,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
54
|
-
auth,
|
|
55
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
56
|
-
resourceUri: `/gists`,
|
|
57
|
-
body,
|
|
58
|
-
});
|
|
59
|
-
return response;
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
//# sourceMappingURL=create-gist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-gist.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-gist.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAA0C;AAC1C,yDAAoE;AACpE,+DAAyD;AAE5C,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,aAAa;IAC1B,WAAW,EACT,8GAA8G;IAEhH,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,KAAK;SAChB,CAAC;QAEF,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;SACnB,CAAC;QAEF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,qBAAqB;YAClC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,IAAI,IAAA,wBAAS,EAAC,IAAuB,CAAC,EAAE,CAAC;gBACvC,MAAM,IAAI,KAAK,CACb,+LAA+L,CAChM,CAAC;YACJ,CAAC;YAED,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;YAExE,MAAM,IAAI,GAAG;gBACX,WAAW;gBACX,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE;oBACL,CAAC,QAAQ,CAAC,EAAE;wBACV,OAAO;qBACR;iBACF;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,QAAQ;gBACrB,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const githubCreateIssueAction: 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
|
-
description: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
16
|
-
labels: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
17
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
19
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
20
|
-
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
21
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
24
|
-
}>)[]>;
|
|
25
|
-
assignees: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
26
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
27
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
28
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
29
|
-
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
30
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
31
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
32
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
33
|
-
}>)[]>;
|
|
34
|
-
}>;
|
|
35
|
-
//# sourceMappingURL=create-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ClC,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubCreateIssueAction = 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.githubCreateIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'github_create_issue',
|
|
12
|
-
displayName: 'Create Issue',
|
|
13
|
-
description: 'Create Issue in GitHub Repository',
|
|
14
|
-
props: {
|
|
15
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
16
|
-
title: pieces_framework_1.Property.ShortText({
|
|
17
|
-
displayName: 'Title',
|
|
18
|
-
description: 'The title of the issue',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
description: pieces_framework_1.Property.LongText({
|
|
22
|
-
displayName: 'Description',
|
|
23
|
-
description: 'The description of the issue',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
labels: common_1.githubCommon.labelDropDown(),
|
|
27
|
-
assignees: common_1.githubCommon.assigneeDropDown(),
|
|
28
|
-
},
|
|
29
|
-
run(_a) {
|
|
30
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
31
|
-
const { title, assignees, labels, description } = propsValue;
|
|
32
|
-
const { owner, repo } = propsValue.repository;
|
|
33
|
-
const issueFields = {
|
|
34
|
-
title,
|
|
35
|
-
body: description,
|
|
36
|
-
};
|
|
37
|
-
if (labels) {
|
|
38
|
-
issueFields['labels'] = labels;
|
|
39
|
-
}
|
|
40
|
-
if (assignees) {
|
|
41
|
-
issueFields['assignees'] = assignees;
|
|
42
|
-
}
|
|
43
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
44
|
-
auth,
|
|
45
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
46
|
-
resourceUri: `/repos/${owner}/${repo}/issues`,
|
|
47
|
-
body: issueFields,
|
|
48
|
-
});
|
|
49
|
-
return response;
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=create-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,qBAAY,CAAC,aAAa,EAAE;QACpC,SAAS,EAAE,qBAAY,CAAC,gBAAgB,EAAE;KAC3C;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YAC7D,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,WAAW,GAAwB;gBACvC,KAAK;gBACL,IAAI,EAAE,WAAW;aAClB,CAAC;YAEF,IAAI,MAAM,EAAE,CAAC;gBACX,WAAW,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YACjC,CAAC;YAED,IAAI,SAAS,EAAE,CAAC;gBACd,WAAW,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;YACvC,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,SAAS;gBAC7C,IAAI,EAAE,WAAW;aAClB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|