@activepieces/piece-github 0.8.3 → 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 -41
- 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 -50
- 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 -48
- 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 -65
- 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 -65
- 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 -68
- 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 -58
- 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 -66
- 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 -36
- 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 -55
- 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 -65
- 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 -54
- 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 -40
- 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 -60
- 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 -41
- 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 -40
- 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 -86
- 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 -81
- 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 -88
- 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 -88
- 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 -86
- 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 -101
- 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 -89
- 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 -85
- 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 -78
- 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 -73
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvC,CAAC"}
|
|
@@ -1,41 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Adds one or more labels to an existing issue (by number) in a repository, leaving any labels already on the issue in place. Use to tag or categorize an issue. Idempotent in effect: re-adding a label the issue already has does not duplicate it.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
issue_number: common_1.githubCommon.issueDropdown(true),
|
|
22
|
-
labels: common_1.githubCommon.labelDropDown(true),
|
|
23
|
-
},
|
|
24
|
-
run(_a) {
|
|
25
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
26
|
-
const { owner, repo } = propsValue.repository;
|
|
27
|
-
const issue_number = propsValue.issue_number;
|
|
28
|
-
const labels = propsValue.labels;
|
|
29
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
30
|
-
auth,
|
|
31
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
32
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/labels`,
|
|
33
|
-
body: {
|
|
34
|
-
labels: labels,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
return response;
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,qPAAqP;QACvP,UAAU,EAAE,IAAI;KACjB;IACD,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;;;;;;;;;;;;;;;;;;;;;;;EA8CnC,CAAC"}
|
|
@@ -1,50 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Creates a new branch in a repository pointing at the tip of a chosen source branch. Use to start a feature or working branch from an existing one. Not idempotent: a second call with the same branch name fails because the ref already exists.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
source_branch: common_1.githubCommon.branchDropdown('Source Branch', 'The source branch that will be used to create the new branch', true),
|
|
22
|
-
new_branch_name: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'New Branch Name',
|
|
24
|
-
description: "The name for the new branch (e.g., 'feature/new-design').",
|
|
25
|
-
required: true,
|
|
26
|
-
}),
|
|
27
|
-
},
|
|
28
|
-
run(_a) {
|
|
29
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
30
|
-
const { owner, repo } = propsValue.repository;
|
|
31
|
-
const sourceBranchInfo = yield (0, common_1.githubApiCall)({
|
|
32
|
-
auth,
|
|
33
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
34
|
-
resourceUri: `/repos/${owner}/${repo}/branches/${propsValue.source_branch}`,
|
|
35
|
-
});
|
|
36
|
-
const sourceSha = sourceBranchInfo.body.commit.sha;
|
|
37
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
38
|
-
auth,
|
|
39
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
40
|
-
resourceUri: `/repos/${owner}/${repo}/git/refs`,
|
|
41
|
-
body: {
|
|
42
|
-
ref: `refs/heads/${propsValue.new_branch_name}`,
|
|
43
|
-
sha: sourceSha,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
return response;
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kPAAkP;QACpP,UAAU,EAAE,KAAK;KAClB;IACD,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;;;;;;;;;;;;;;;EAwCtC,CAAC"}
|
|
@@ -1,48 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Posts a comment on an issue (or pull request, which shares the issue number space) in a repository. Use to add a reply or note to an existing issue/PR identified by its number. Not idempotent: each call appends a new comment.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
issue_number: pieces_framework_1.Property.Number({
|
|
22
|
-
displayName: 'Issue number',
|
|
23
|
-
description: 'The number of the issue to comment on',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
comment: pieces_framework_1.Property.LongText({
|
|
27
|
-
displayName: 'Comment',
|
|
28
|
-
description: 'The comment to add to the issue',
|
|
29
|
-
required: true,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
run(_a) {
|
|
33
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
34
|
-
const issue_number = propsValue.issue_number;
|
|
35
|
-
const { owner, repo } = propsValue.repository;
|
|
36
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
37
|
-
auth,
|
|
38
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
39
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/comments`,
|
|
40
|
-
body: {
|
|
41
|
-
body: propsValue.comment,
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
return response;
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,mOAAmO;QACrO,UAAU,EAAE,KAAK;KAClB;IACD,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;;;;;;;;;;;;;;;;;EA2D1C,CAAC"}
|
|
@@ -1,65 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Posts a comment on a specific commit identified by its SHA, optionally anchored to a file path and diff position. Use to leave feedback on a committed change directly on the commit. Not idempotent: each call adds a new comment.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
sha: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Commit SHA',
|
|
23
|
-
description: 'The SHA of the commit to comment on',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
body: pieces_framework_1.Property.LongText({
|
|
27
|
-
displayName: 'Comment Body',
|
|
28
|
-
description: 'The content of the comment',
|
|
29
|
-
required: true,
|
|
30
|
-
}),
|
|
31
|
-
path: pieces_framework_1.Property.ShortText({
|
|
32
|
-
displayName: 'File Path',
|
|
33
|
-
description: 'The relative path to the file to comment on (optional)',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
position: pieces_framework_1.Property.Number({
|
|
37
|
-
displayName: 'Position',
|
|
38
|
-
description: 'The line index in the diff to comment on (optional)',
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
42
|
-
run(_a) {
|
|
43
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
44
|
-
const { sha, body, path, position } = propsValue;
|
|
45
|
-
const { owner, repo } = propsValue.repository;
|
|
46
|
-
const commentData = {
|
|
47
|
-
body,
|
|
48
|
-
};
|
|
49
|
-
if (path) {
|
|
50
|
-
commentData.path = path;
|
|
51
|
-
}
|
|
52
|
-
if (position !== undefined) {
|
|
53
|
-
commentData.position = position;
|
|
54
|
-
}
|
|
55
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
56
|
-
auth,
|
|
57
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
58
|
-
resourceUri: `/repos/${owner}/${repo}/commits/${sha}/comments`,
|
|
59
|
-
body: commentData,
|
|
60
|
-
});
|
|
61
|
-
return response;
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,qOAAqO;QACvO,UAAU,EAAE,KAAK;KAClB;IACD,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;;;;;;;;;;;;;;;EAyD9C,CAAC"}
|
|
@@ -1,65 +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
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Posts a comment on a GitHub Discussion (via the GraphQL API) identified by its discussion ID. Use to reply to a repository discussion thread. Not idempotent: each call adds a new comment.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
discussion_number: pieces_framework_1.Property.Number({
|
|
22
|
-
displayName: 'Discussion Number',
|
|
23
|
-
description: 'The number of the discussion to comment on',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
body: pieces_framework_1.Property.LongText({
|
|
27
|
-
displayName: 'Comment Body',
|
|
28
|
-
description: 'The content of the comment (supports markdown)',
|
|
29
|
-
required: true,
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
run(_a) {
|
|
33
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
34
|
-
const { discussion_number, body } = propsValue;
|
|
35
|
-
const { owner, repo } = propsValue.repository;
|
|
36
|
-
// GitHub Discussions API requires GraphQL for most operations
|
|
37
|
-
const query = `
|
|
38
|
-
mutation AddDiscussionComment {
|
|
39
|
-
addDiscussionComment(input: {
|
|
40
|
-
discussionId: "${discussion_number}",
|
|
41
|
-
repositoryName: "${repo}",
|
|
42
|
-
repositoryOwner: "${owner}",
|
|
43
|
-
body: "${body.replace(/"/g, '\\"')}"
|
|
44
|
-
}) {
|
|
45
|
-
comment {
|
|
46
|
-
id
|
|
47
|
-
body
|
|
48
|
-
createdAt
|
|
49
|
-
url
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}`;
|
|
53
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
54
|
-
auth,
|
|
55
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
56
|
-
resourceUri: '/graphql',
|
|
57
|
-
body: {
|
|
58
|
-
query,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
return response;
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
//# 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,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,6LAA6L;QAC/L,UAAU,EAAE,KAAK;KAClB;IACD,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;;;;;;;;;EAoEjC,CAAC"}
|
|
@@ -1,68 +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
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: 'Creates a GitHub Gist (a standalone code/text snippet) containing a single named file with the given content, public or secret. Use to share a snippet outside any repository. Requires an OAuth connection — it throws an error under GitHub App authentication. Not idempotent: each call creates a new gist.',
|
|
18
|
-
idempotent: false,
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
description: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Description',
|
|
23
|
-
description: 'Description of the gist',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
public: pieces_framework_1.Property.Checkbox({
|
|
27
|
-
displayName: 'Public',
|
|
28
|
-
description: 'Whether the gist should be public',
|
|
29
|
-
required: true,
|
|
30
|
-
defaultValue: true,
|
|
31
|
-
}),
|
|
32
|
-
filename: pieces_framework_1.Property.ShortText({
|
|
33
|
-
displayName: 'Filename',
|
|
34
|
-
description: 'Name of the file in the gist',
|
|
35
|
-
required: true,
|
|
36
|
-
}),
|
|
37
|
-
content: pieces_framework_1.Property.LongText({
|
|
38
|
-
displayName: 'File Content',
|
|
39
|
-
description: 'Content of the file',
|
|
40
|
-
required: true,
|
|
41
|
-
}),
|
|
42
|
-
},
|
|
43
|
-
run(_a) {
|
|
44
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
45
|
-
if ((0, auth_helpers_1.isAppAuth)(auth)) {
|
|
46
|
-
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.');
|
|
47
|
-
}
|
|
48
|
-
const { description, public: isPublic, filename, content } = propsValue;
|
|
49
|
-
const body = {
|
|
50
|
-
description,
|
|
51
|
-
public: isPublic,
|
|
52
|
-
files: {
|
|
53
|
-
[filename]: {
|
|
54
|
-
content,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
59
|
-
auth,
|
|
60
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
61
|
-
resourceUri: `/gists`,
|
|
62
|
-
body,
|
|
63
|
-
});
|
|
64
|
-
return response;
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
//# 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;IAChH,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iTAAiT;QACnT,UAAU,EAAE,KAAK;KAClB;IAED,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDlC,CAAC"}
|