@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
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newLabelTrigger = 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.newLabelTrigger = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'new_label',
|
|
12
|
-
displayName: 'New Label',
|
|
13
|
-
description: 'Triggers when a new label is created in a repository.',
|
|
14
|
-
aiMetadata: {
|
|
15
|
-
description: 'Fires when a new label is created in the chosen repository (label event with action created; edits and deletions are ignored). Represents a newly added label definition.',
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
19
|
-
},
|
|
20
|
-
sampleData: {
|
|
21
|
-
action: 'created',
|
|
22
|
-
label: {
|
|
23
|
-
id: 4858888116,
|
|
24
|
-
node_id: 'LA_kwDOAnG2fM7ma3_Q',
|
|
25
|
-
url: 'https://api.github.com/repos/octocat/Hello-World/labels/new-label',
|
|
26
|
-
name: 'new-label',
|
|
27
|
-
color: 'f29513',
|
|
28
|
-
default: false,
|
|
29
|
-
description: 'A new label for issues',
|
|
30
|
-
},
|
|
31
|
-
repository: {
|
|
32
|
-
full_name: 'octocat/Hello-World',
|
|
33
|
-
},
|
|
34
|
-
sender: {
|
|
35
|
-
login: 'octocat',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
39
|
-
onEnable(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const { repo, owner } = context.propsValue.repository;
|
|
42
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
43
|
-
auth: context.auth,
|
|
44
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
45
|
-
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
|
46
|
-
body: {
|
|
47
|
-
name: 'web',
|
|
48
|
-
active: true,
|
|
49
|
-
events: ['label'],
|
|
50
|
-
config: {
|
|
51
|
-
url: context.webhookUrl,
|
|
52
|
-
content_type: 'json',
|
|
53
|
-
insecure_ssl: '0',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
yield context.store.put('github_new_label_trigger', {
|
|
58
|
-
webhookId: response.body.id,
|
|
59
|
-
repo: repo,
|
|
60
|
-
owner: owner,
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
onDisable(context) {
|
|
65
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const webhook = yield context.store.get('github_new_label_trigger');
|
|
67
|
-
if (webhook !== null && webhook !== undefined) {
|
|
68
|
-
yield (0, common_1.githubApiCall)({
|
|
69
|
-
auth: context.auth,
|
|
70
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
71
|
-
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
run(context) {
|
|
77
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
const payload = context.payload.body;
|
|
79
|
-
if (payload.action === 'created') {
|
|
80
|
-
return [context.payload.body];
|
|
81
|
-
}
|
|
82
|
-
return [];
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
//# sourceMappingURL=new-label.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-label.js","sourceRoot":"","sources":["../../../../src/lib/trigger/new-label.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAQ5C,QAAA,eAAe,GAAG,IAAA,gCAAa,EAAC;IAC3C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,uDAAuD;IACpE,UAAU,EAAE;QACV,WAAW,EACT,2KAA2K;KAC9K;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;KAC5C;IACD,UAAU,EAAE;QACV,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE;YACL,EAAE,EAAE,UAAU;YACd,OAAO,EAAE,qBAAqB;YAC9B,GAAG,EAAE,mEAAmE;YACxE,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,wBAAwB;SACtC;QACD,UAAU,EAAE;YACV,SAAS,EAAE,qBAAqB;SACjC;QACD,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;SACjB;KACF;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IACvB,QAAQ,CAAC,OAAO;;YACpB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,UAAW,CAAC;YAEvD,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAiB;gBACnD,IAAI,EAAE,OAAO,CAAC,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CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newMentionTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>)[], {
|
|
7
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
8
|
-
repo: string;
|
|
9
|
-
owner: string;
|
|
10
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>)[]>;
|
|
15
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>)[], {
|
|
20
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
21
|
-
repo: string;
|
|
22
|
-
owner: string;
|
|
23
|
-
}, true, (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
|
-
}>)[]>;
|
|
28
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
29
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
31
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
32
|
-
}>)[], {
|
|
33
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
34
|
-
repo: string;
|
|
35
|
-
owner: string;
|
|
36
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
39
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
40
|
-
}>)[]>;
|
|
41
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
42
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
44
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
45
|
-
}>)[], {
|
|
46
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
47
|
-
repo: string;
|
|
48
|
-
owner: string;
|
|
49
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
50
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
51
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
52
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
53
|
-
}>)[]>;
|
|
54
|
-
}>;
|
|
55
|
-
//# sourceMappingURL=new-mention.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-mention.d.ts","sourceRoot":"","sources":["../../../../src/lib/trigger/new-mention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAkChF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2F5B,CAAC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newMentionTrigger = 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
|
-
const STORE_KEY = 'github_new_mention_trigger';
|
|
11
|
-
function escapeRegExp(value) {
|
|
12
|
-
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
13
|
-
}
|
|
14
|
-
function containsMention(comment, username) {
|
|
15
|
-
const pattern = new RegExp(`(^|[^A-Za-z0-9-])@${escapeRegExp(username)}(?![A-Za-z0-9-])`, 'i');
|
|
16
|
-
return pattern.test(comment);
|
|
17
|
-
}
|
|
18
|
-
exports.newMentionTrigger = (0, pieces_framework_1.createTrigger)({
|
|
19
|
-
auth: auth_1.githubAuth,
|
|
20
|
-
name: 'new_mention',
|
|
21
|
-
displayName: 'New Mention',
|
|
22
|
-
description: 'Triggers when you are mentioned in a comment.',
|
|
23
|
-
aiMetadata: {
|
|
24
|
-
description: 'Fires when the authenticated user is @-mentioned in a newly created or edited issue or pull-request review comment in the chosen repository. Represents someone tagging you in a comment.',
|
|
25
|
-
},
|
|
26
|
-
props: {
|
|
27
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
28
|
-
},
|
|
29
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
30
|
-
sampleData: {
|
|
31
|
-
action: 'created',
|
|
32
|
-
comment: {
|
|
33
|
-
body: '@octocat Please review this.',
|
|
34
|
-
user: { login: 'octocat' },
|
|
35
|
-
created_at: '2026-02-15T20:09:31Z',
|
|
36
|
-
},
|
|
37
|
-
repository: { full_name: 'octocat/Hello-World' },
|
|
38
|
-
sender: { login: 'octocat' },
|
|
39
|
-
},
|
|
40
|
-
onEnable(context) {
|
|
41
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const { repo, owner } = context.propsValue.repository;
|
|
43
|
-
const username = yield (0, auth_helpers_1.getAuthenticatedLogin)(context.auth);
|
|
44
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
45
|
-
auth: context.auth,
|
|
46
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
47
|
-
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
|
48
|
-
body: {
|
|
49
|
-
name: 'web',
|
|
50
|
-
active: true,
|
|
51
|
-
events: ['issue_comment', 'pull_request_review_comment'],
|
|
52
|
-
config: {
|
|
53
|
-
url: context.webhookUrl,
|
|
54
|
-
content_type: 'json',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
yield context.store.put(STORE_KEY, {
|
|
59
|
-
webhookId: response.body.id,
|
|
60
|
-
repo,
|
|
61
|
-
owner,
|
|
62
|
-
username,
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
onDisable(context) {
|
|
67
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const webhook = yield context.store.get(STORE_KEY);
|
|
69
|
-
if (webhook !== null && webhook !== undefined) {
|
|
70
|
-
yield (0, common_1.githubApiCall)({
|
|
71
|
-
auth: context.auth,
|
|
72
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
73
|
-
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
run(context) {
|
|
79
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
var _a, _b;
|
|
81
|
-
const body = context.payload.body;
|
|
82
|
-
if (body.action !== 'created' && body.action !== 'edited') {
|
|
83
|
-
return [];
|
|
84
|
-
}
|
|
85
|
-
const comment = (_b = (_a = body.comment) === null || _a === void 0 ? void 0 : _a.body) !== null && _b !== void 0 ? _b : '';
|
|
86
|
-
if (!comment) {
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
const webhook = yield context.store.get(STORE_KEY);
|
|
90
|
-
let username = webhook === null || webhook === void 0 ? void 0 : webhook.username;
|
|
91
|
-
if (!username) {
|
|
92
|
-
username = yield (0, auth_helpers_1.getAuthenticatedLogin)(context.auth);
|
|
93
|
-
}
|
|
94
|
-
if (username && containsMention(comment, username)) {
|
|
95
|
-
return [context.payload.body];
|
|
96
|
-
}
|
|
97
|
-
return [];
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
//# sourceMappingURL=new-mention.js.map
|
|
@@ -1 +0,0 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AI,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC1D,OAAO,EAAE,CAAC;YACZ,CAAC;YAED,MAAM,OAAO,GAAG,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,mCAAI,EAAE,CAAC;YACzC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,OAAO,EAAE,CAAC;YACZ,CAAC;YAED,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAqB,SAAS,CAAC,CAAC;YACvE,IAAI,QAAQ,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC;YACjC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,QAAQ,GAAG,MAAM,IAAA,oCAAqB,EAAC,OAAO,CAAC,IAAuB,CAAC,CAAC;YAC1E,CAAC;YAED,IAAI,QAAQ,IAAI,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC;gBACnD,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;YAED,OAAO,EAAE,CAAC;QACZ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newMilestoneTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>)[], {
|
|
7
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
8
|
-
repo: string;
|
|
9
|
-
owner: string;
|
|
10
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>)[]>;
|
|
15
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>)[], {
|
|
20
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
21
|
-
repo: string;
|
|
22
|
-
owner: string;
|
|
23
|
-
}, true, (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
|
-
}>)[]>;
|
|
28
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
29
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
31
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
32
|
-
}>)[], {
|
|
33
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
34
|
-
repo: string;
|
|
35
|
-
owner: string;
|
|
36
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
39
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
40
|
-
}>)[]>;
|
|
41
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
42
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
44
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
45
|
-
}>)[], {
|
|
46
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
47
|
-
repo: string;
|
|
48
|
-
owner: string;
|
|
49
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
50
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
51
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
52
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
53
|
-
}>)[]>;
|
|
54
|
-
}>;
|
|
55
|
-
//# sourceMappingURL=new-milestone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-milestone.d.ts","sourceRoot":"","sources":["../../../../src/lib/trigger/new-milestone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAWhF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmF9B,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newMilestoneTrigger = 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.newMilestoneTrigger = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'new_milestone',
|
|
12
|
-
displayName: 'New Milestone',
|
|
13
|
-
description: 'Triggers when a new milestone is created.',
|
|
14
|
-
aiMetadata: {
|
|
15
|
-
description: 'Fires when a new milestone is created in the chosen repository (milestone event with action created; other milestone changes are ignored). Represents a newly opened milestone.',
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
19
|
-
},
|
|
20
|
-
sampleData: {
|
|
21
|
-
action: 'created',
|
|
22
|
-
milestone: {
|
|
23
|
-
url: 'https://api.github.com/repos/octocat/Hello-World/milestones/1',
|
|
24
|
-
html_url: 'https://github.com/octocat/Hello-World/milestones/v1.0',
|
|
25
|
-
id: 1002604,
|
|
26
|
-
number: 1,
|
|
27
|
-
title: 'v1.0',
|
|
28
|
-
description: 'Tracking milestone for version 1.0',
|
|
29
|
-
creator: { login: 'octocat' },
|
|
30
|
-
open_issues: 0,
|
|
31
|
-
closed_issues: 0,
|
|
32
|
-
state: 'open',
|
|
33
|
-
created_at: '2011-04-10T20:09:31Z',
|
|
34
|
-
updated_at: '2011-04-10T20:09:31Z',
|
|
35
|
-
due_on: '2012-10-09T23:39:01Z',
|
|
36
|
-
closed_at: null,
|
|
37
|
-
},
|
|
38
|
-
repository: { full_name: 'octocat/Hello-World' },
|
|
39
|
-
sender: { login: 'octocat' },
|
|
40
|
-
},
|
|
41
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
42
|
-
onEnable(context) {
|
|
43
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
const { repo, owner } = context.propsValue.repository;
|
|
45
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
46
|
-
auth: context.auth,
|
|
47
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
48
|
-
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
|
49
|
-
body: {
|
|
50
|
-
name: 'web',
|
|
51
|
-
active: true,
|
|
52
|
-
events: ['milestone'],
|
|
53
|
-
config: {
|
|
54
|
-
url: context.webhookUrl,
|
|
55
|
-
content_type: 'json',
|
|
56
|
-
insecure_ssl: '0',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
yield context.store.put('github_new_milestone_trigger', {
|
|
61
|
-
webhookId: response.body.id,
|
|
62
|
-
repo: repo,
|
|
63
|
-
owner: owner,
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
onDisable(context) {
|
|
68
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
const webhook = yield context.store.get('github_new_milestone_trigger');
|
|
70
|
-
if (webhook !== null && webhook !== undefined) {
|
|
71
|
-
yield (0, common_1.githubApiCall)({
|
|
72
|
-
auth: context.auth,
|
|
73
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
74
|
-
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
run(context) {
|
|
80
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
const payload = context.payload.body;
|
|
82
|
-
if (payload.action === 'created') {
|
|
83
|
-
return [context.payload.body];
|
|
84
|
-
}
|
|
85
|
-
return [];
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
//# sourceMappingURL=new-milestone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-milestone.js","sourceRoot":"","sources":["../../../../src/lib/trigger/new-milestone.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAQ5C,QAAA,mBAAmB,GAAG,IAAA,gCAAa,EAAC;IAC/C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,2CAA2C;IACxD,UAAU,EAAE;QACV,WAAW,EACT,iLAAiL;KACpL;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;KAC5C;IACD,UAAU,EAAE;QACV,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE;YACT,GAAG,EAAE,+DAA+D;YACpE,QAAQ,EAAE,wDAAwD;YAClE,EAAE,EAAE,OAAO;YACX,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;YAC7B,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,sBAAsB;YAClC,MAAM,EAAE,sBAAsB;YAC9B,SAAS,EAAE,IAAI;SAChB;QACD,UAAU,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE;QAChD,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS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O;;YACf,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAA2B,CAAC;YAE5D,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBACjC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;YAED,OAAO,EAAE,CAAC;QACZ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newReleaseTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>)[], {
|
|
7
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
8
|
-
repo: string;
|
|
9
|
-
owner: string;
|
|
10
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>)[]>;
|
|
15
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>)[], {
|
|
20
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
21
|
-
repo: string;
|
|
22
|
-
owner: string;
|
|
23
|
-
}, true, (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
|
-
}>)[]>;
|
|
28
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
29
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
31
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
32
|
-
}>)[], {
|
|
33
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
34
|
-
repo: string;
|
|
35
|
-
owner: string;
|
|
36
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
39
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
40
|
-
}>)[]>;
|
|
41
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
42
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
44
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
45
|
-
}>)[], {
|
|
46
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
47
|
-
repo: string;
|
|
48
|
-
owner: string;
|
|
49
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
50
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
51
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
52
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
53
|
-
}>)[]>;
|
|
54
|
-
}>;
|
|
55
|
-
//# sourceMappingURL=new-release.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-release.d.ts","sourceRoot":"","sources":["../../../../src/lib/trigger/new-release.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAWhF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4E5B,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newReleaseTrigger = 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.newReleaseTrigger = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'new_release',
|
|
12
|
-
displayName: 'New Release',
|
|
13
|
-
description: 'Triggers when a new release is added.',
|
|
14
|
-
aiMetadata: {
|
|
15
|
-
description: 'Fires when a release is created in the chosen repository (release event filtered to the created action). Represents a newly created release.',
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
19
|
-
},
|
|
20
|
-
sampleData: {
|
|
21
|
-
action: 'published',
|
|
22
|
-
release: {
|
|
23
|
-
url: 'https://api.github.com/repos/octocat/Hello-World/releases/1',
|
|
24
|
-
html_url: 'https://github.com/octocat/Hello-World/releases/v1.0.0',
|
|
25
|
-
id: 1,
|
|
26
|
-
tag_name: 'v1.0.0',
|
|
27
|
-
target_commitish: 'master',
|
|
28
|
-
name: 'v1.0.0',
|
|
29
|
-
body: 'Description of the release',
|
|
30
|
-
draft: false,
|
|
31
|
-
prerelease: false,
|
|
32
|
-
author: { login: 'octocat' },
|
|
33
|
-
},
|
|
34
|
-
repository: { full_name: 'octocat/Hello-World' },
|
|
35
|
-
sender: { login: 'octocat' },
|
|
36
|
-
},
|
|
37
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
38
|
-
onEnable(context) {
|
|
39
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const { repo, owner } = context.propsValue.repository;
|
|
41
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
42
|
-
auth: context.auth,
|
|
43
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
44
|
-
resourceUri: `/repos/${owner}/${repo}/hooks`,
|
|
45
|
-
body: {
|
|
46
|
-
name: 'web',
|
|
47
|
-
active: true,
|
|
48
|
-
events: ['release'],
|
|
49
|
-
config: {
|
|
50
|
-
url: context.webhookUrl,
|
|
51
|
-
content_type: 'json',
|
|
52
|
-
insecure_ssl: '0',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
yield context.store.put('github_new_release_trigger', {
|
|
57
|
-
webhookId: response.body.id,
|
|
58
|
-
repo: repo,
|
|
59
|
-
owner: owner,
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
onDisable(context) {
|
|
64
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
const webhook = yield context.store.get('github_new_release_trigger');
|
|
66
|
-
if (webhook !== null && webhook !== undefined) {
|
|
67
|
-
yield (0, common_1.githubApiCall)({
|
|
68
|
-
auth: context.auth,
|
|
69
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
70
|
-
resourceUri: `/repos/${webhook.owner}/${webhook.repo}/hooks/${webhook.webhookId}`,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
run(context) {
|
|
76
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
const payload = context.payload.body;
|
|
78
|
-
if (payload.action === 'created') {
|
|
79
|
-
return [context.payload.body];
|
|
80
|
-
}
|
|
81
|
-
return [];
|
|
82
|
-
});
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=new-release.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-release.js","sourceRoot":"","sources":["../../../../src/lib/trigger/new-release.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAQ5C,QAAA,iBAAiB,GAAG,IAAA,gCAAa,EAAC;IAC7C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,uCAAuC;IACpD,UAAU,EAAE;QACV,WAAW,EACT,8IAA8I;KACjJ;IACD,KAAK,EAAE;QACL,UAAU,E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QACL,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CACrC,4BAA4B,CAC7B,CAAC;YACF,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBAC9C,MAAM,IAAA,sBAAa,EAAC;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,MAAM,EAAE,0BAAU,CAAC,MAAM;oBACzB,WAAW,EAAE,UAAU,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,UAAU,OAAO,CAAC,SAAS,EAAE;iBAClF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAA2B,CAAC;YAE5D,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBACjC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;YAED,OAAO,EAAE,CAAC;QACZ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newReviewRequestTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>)[], {
|
|
7
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
8
|
-
repo: string;
|
|
9
|
-
owner: string;
|
|
10
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>)[]>;
|
|
15
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>)[], {
|
|
20
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
21
|
-
repo: string;
|
|
22
|
-
owner: string;
|
|
23
|
-
}, true, (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
|
-
}>)[]>;
|
|
28
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
29
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
31
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
32
|
-
}>)[], {
|
|
33
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
34
|
-
repo: string;
|
|
35
|
-
owner: string;
|
|
36
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
39
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
40
|
-
}>)[]>;
|
|
41
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
42
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
44
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
45
|
-
}>)[], {
|
|
46
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
47
|
-
repo: string;
|
|
48
|
-
owner: string;
|
|
49
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
50
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
51
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
52
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
53
|
-
}>)[]>;
|
|
54
|
-
}>;
|
|
55
|
-
//# sourceMappingURL=new-review-request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-review-request.d.ts","sourceRoot":"","sources":["../../../../src/lib/trigger/new-review-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAWhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+ElC,CAAC"}
|