@activepieces/piece-github 0.8.3 → 0.8.7

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.
Files changed (125) hide show
  1. package/package.json +7 -17
  2. package/src/index.js +98 -75
  3. package/src/index.d.ts +0 -6
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/add-labels-to-issue.d.ts +0 -33
  7. package/src/lib/actions/add-labels-to-issue.d.ts.map +0 -1
  8. package/src/lib/actions/add-labels-to-issue.js +0 -41
  9. package/src/lib/actions/add-labels-to-issue.js.map +0 -1
  10. package/src/lib/actions/create-branch.d.ts +0 -25
  11. package/src/lib/actions/create-branch.d.ts.map +0 -1
  12. package/src/lib/actions/create-branch.js +0 -50
  13. package/src/lib/actions/create-branch.js.map +0 -1
  14. package/src/lib/actions/create-comment-on-a-issue.d.ts +0 -17
  15. package/src/lib/actions/create-comment-on-a-issue.d.ts.map +0 -1
  16. package/src/lib/actions/create-comment-on-a-issue.js +0 -48
  17. package/src/lib/actions/create-comment-on-a-issue.js.map +0 -1
  18. package/src/lib/actions/create-commit-comment.d.ts +0 -19
  19. package/src/lib/actions/create-commit-comment.d.ts.map +0 -1
  20. package/src/lib/actions/create-commit-comment.js +0 -65
  21. package/src/lib/actions/create-commit-comment.js.map +0 -1
  22. package/src/lib/actions/create-discussion-comment.d.ts +0 -17
  23. package/src/lib/actions/create-discussion-comment.d.ts.map +0 -1
  24. package/src/lib/actions/create-discussion-comment.js +0 -65
  25. package/src/lib/actions/create-discussion-comment.js.map +0 -1
  26. package/src/lib/actions/create-gist.d.ts +0 -11
  27. package/src/lib/actions/create-gist.d.ts.map +0 -1
  28. package/src/lib/actions/create-gist.js +0 -68
  29. package/src/lib/actions/create-gist.js.map +0 -1
  30. package/src/lib/actions/create-issue.d.ts +0 -35
  31. package/src/lib/actions/create-issue.d.ts.map +0 -1
  32. package/src/lib/actions/create-issue.js +0 -58
  33. package/src/lib/actions/create-issue.js.map +0 -1
  34. package/src/lib/actions/create-pull-request-review-comment.d.ts +0 -20
  35. package/src/lib/actions/create-pull-request-review-comment.d.ts.map +0 -1
  36. package/src/lib/actions/create-pull-request-review-comment.js +0 -66
  37. package/src/lib/actions/create-pull-request-review-comment.js.map +0 -1
  38. package/src/lib/actions/delete-branch.d.ts +0 -24
  39. package/src/lib/actions/delete-branch.d.ts.map +0 -1
  40. package/src/lib/actions/delete-branch.js +0 -36
  41. package/src/lib/actions/delete-branch.js.map +0 -1
  42. package/src/lib/actions/find-branch.d.ts +0 -16
  43. package/src/lib/actions/find-branch.d.ts.map +0 -1
  44. package/src/lib/actions/find-branch.js +0 -55
  45. package/src/lib/actions/find-branch.js.map +0 -1
  46. package/src/lib/actions/find-issue.d.ts +0 -17
  47. package/src/lib/actions/find-issue.d.ts.map +0 -1
  48. package/src/lib/actions/find-issue.js +0 -65
  49. package/src/lib/actions/find-issue.js.map +0 -1
  50. package/src/lib/actions/find-user.d.ts +0 -8
  51. package/src/lib/actions/find-user.d.ts.map +0 -1
  52. package/src/lib/actions/find-user.js +0 -54
  53. package/src/lib/actions/find-user.js.map +0 -1
  54. package/src/lib/actions/get-issue-information.d.ts +0 -16
  55. package/src/lib/actions/get-issue-information.d.ts.map +0 -1
  56. package/src/lib/actions/get-issue-information.js +0 -40
  57. package/src/lib/actions/get-issue-information.js.map +0 -1
  58. package/src/lib/actions/lock-issue.d.ts +0 -21
  59. package/src/lib/actions/lock-issue.d.ts.map +0 -1
  60. package/src/lib/actions/lock-issue.js +0 -60
  61. package/src/lib/actions/lock-issue.js.map +0 -1
  62. package/src/lib/actions/raw-graphql-query.d.ts +0 -9
  63. package/src/lib/actions/raw-graphql-query.d.ts.map +0 -1
  64. package/src/lib/actions/raw-graphql-query.js +0 -41
  65. package/src/lib/actions/raw-graphql-query.js.map +0 -1
  66. package/src/lib/actions/unlock-issue.d.ts +0 -16
  67. package/src/lib/actions/unlock-issue.d.ts.map +0 -1
  68. package/src/lib/actions/unlock-issue.js +0 -40
  69. package/src/lib/actions/unlock-issue.js.map +0 -1
  70. package/src/lib/actions/update-issue.d.ts +0 -55
  71. package/src/lib/actions/update-issue.d.ts.map +0 -1
  72. package/src/lib/actions/update-issue.js +0 -86
  73. package/src/lib/actions/update-issue.js.map +0 -1
  74. package/src/lib/auth.d.ts +0 -12
  75. package/src/lib/auth.d.ts.map +0 -1
  76. package/src/lib/auth.js +0 -75
  77. package/src/lib/auth.js.map +0 -1
  78. package/src/lib/common/auth-helpers.d.ts +0 -20
  79. package/src/lib/common/auth-helpers.d.ts.map +0 -1
  80. package/src/lib/common/auth-helpers.js +0 -118
  81. package/src/lib/common/auth-helpers.js.map +0 -1
  82. package/src/lib/common/index.d.ts +0 -82
  83. package/src/lib/common/index.d.ts.map +0 -1
  84. package/src/lib/common/index.js +0 -322
  85. package/src/lib/common/index.js.map +0 -1
  86. package/src/lib/trigger/index.d.ts +0 -1349
  87. package/src/lib/trigger/index.d.ts.map +0 -1
  88. package/src/lib/trigger/index.js +0 -1208
  89. package/src/lib/trigger/index.js.map +0 -1
  90. package/src/lib/trigger/new-branch.d.ts +0 -55
  91. package/src/lib/trigger/new-branch.d.ts.map +0 -1
  92. package/src/lib/trigger/new-branch.js +0 -81
  93. package/src/lib/trigger/new-branch.js.map +0 -1
  94. package/src/lib/trigger/new-collaborator.d.ts +0 -55
  95. package/src/lib/trigger/new-collaborator.d.ts.map +0 -1
  96. package/src/lib/trigger/new-collaborator.js +0 -88
  97. package/src/lib/trigger/new-collaborator.js.map +0 -1
  98. package/src/lib/trigger/new-commit.d.ts +0 -55
  99. package/src/lib/trigger/new-commit.d.ts.map +0 -1
  100. package/src/lib/trigger/new-commit.js +0 -88
  101. package/src/lib/trigger/new-commit.js.map +0 -1
  102. package/src/lib/trigger/new-label.d.ts +0 -55
  103. package/src/lib/trigger/new-label.d.ts.map +0 -1
  104. package/src/lib/trigger/new-label.js +0 -86
  105. package/src/lib/trigger/new-label.js.map +0 -1
  106. package/src/lib/trigger/new-mention.d.ts +0 -55
  107. package/src/lib/trigger/new-mention.d.ts.map +0 -1
  108. package/src/lib/trigger/new-mention.js +0 -101
  109. package/src/lib/trigger/new-mention.js.map +0 -1
  110. package/src/lib/trigger/new-milestone.d.ts +0 -55
  111. package/src/lib/trigger/new-milestone.d.ts.map +0 -1
  112. package/src/lib/trigger/new-milestone.js +0 -89
  113. package/src/lib/trigger/new-milestone.js.map +0 -1
  114. package/src/lib/trigger/new-release.d.ts +0 -55
  115. package/src/lib/trigger/new-release.d.ts.map +0 -1
  116. package/src/lib/trigger/new-release.js +0 -85
  117. package/src/lib/trigger/new-release.js.map +0 -1
  118. package/src/lib/trigger/new-review-request.d.ts +0 -55
  119. package/src/lib/trigger/new-review-request.d.ts.map +0 -1
  120. package/src/lib/trigger/new-review-request.js +0 -78
  121. package/src/lib/trigger/new-review-request.js.map +0 -1
  122. package/src/lib/trigger/register-trigger.d.ts +0 -60
  123. package/src/lib/trigger/register-trigger.d.ts.map +0 -1
  124. package/src/lib/trigger/register-trigger.js +0 -73
  125. package/src/lib/trigger/register-trigger.js.map +0 -1
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubCreateIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.githubCreateIssueAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.githubAuth,
11
- name: 'github_create_issue',
12
- displayName: 'Create Issue',
13
- description: 'Create Issue in GitHub Repository',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Opens a new issue in a GitHub repository with a title and optional body, labels, and assignees. Use to file a bug, task, or request in a specified repo. Not idempotent: each call creates a separate issue even with identical input.',
17
- idempotent: false,
18
- },
19
- props: {
20
- repository: common_1.githubCommon.repositoryDropdown,
21
- title: pieces_framework_1.Property.ShortText({
22
- displayName: 'Title',
23
- description: 'The title of the issue',
24
- required: true,
25
- }),
26
- description: pieces_framework_1.Property.LongText({
27
- displayName: 'Description',
28
- description: 'The description of the issue',
29
- required: false,
30
- }),
31
- labels: common_1.githubCommon.labelDropDown(),
32
- assignees: common_1.githubCommon.assigneeDropDown(),
33
- },
34
- run(_a) {
35
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
36
- const { title, assignees, labels, description } = propsValue;
37
- const { owner, repo } = propsValue.repository;
38
- const issueFields = {
39
- title,
40
- body: description,
41
- };
42
- if (labels) {
43
- issueFields['labels'] = labels;
44
- }
45
- if (assignees) {
46
- issueFields['assignees'] = assignees;
47
- }
48
- const response = yield (0, common_1.githubApiCall)({
49
- auth,
50
- method: pieces_common_1.HttpMethod.POST,
51
- resourceUri: `/repos/${owner}/${repo}/issues`,
52
- body: issueFields,
53
- });
54
- return response;
55
- });
56
- },
57
- });
58
- //# sourceMappingURL=create-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,wOAAwO;QAC1O,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,qBAAY,CAAC,aAAa,EAAE;QACpC,SAAS,EAAE,qBAAY,CAAC,gBAAgB,EAAE;KAC3C;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YAC7D,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,WAAW,GAAwB;gBACvC,KAAK;gBACL,IAAI,EAAE,WAAW;aAClB,CAAC;YAEF,IAAI,MAAM,EAAE,CAAC;gBACX,WAAW,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YACjC,CAAC;YAED,IAAI,SAAS,EAAE,CAAC;gBACd,WAAW,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;YACvC,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,SAAS;gBAC7C,IAAI,EAAE,WAAW;aAClB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- export declare const githubCreatePullRequestReviewCommentAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- repository: import("@activepieces/pieces-framework").DropdownProperty<{
7
- repo: string;
8
- owner: string;
9
- }, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
13
- }>)[]>;
14
- pull_number: import("@activepieces/pieces-framework").NumberProperty<true>;
15
- commit_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
16
- path: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- body: import("@activepieces/pieces-framework").LongTextProperty<true>;
18
- position: import("@activepieces/pieces-framework").NumberProperty<true>;
19
- }>;
20
- //# sourceMappingURL=create-pull-request-review-comment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-pull-request-review-comment.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-pull-request-review-comment.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;EA2DrD,CAAC"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubCreatePullRequestReviewCommentAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.githubCreatePullRequestReviewCommentAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.githubAuth,
11
- name: 'github_create_pull_request_review_comment',
12
- displayName: 'Create Pull Request Review Comment',
13
- description: 'Creates a review comment on a pull request in a GitHub repository',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Posts an inline review comment on a pull request, anchored to a specific commit SHA, file path, and diff position. Use to comment on a particular line of changed code in a PR (not a general PR comment — use Create Comment on a Issue for that). Not idempotent: each call adds a new review comment.',
17
- idempotent: false,
18
- },
19
- props: {
20
- repository: common_1.githubCommon.repositoryDropdown,
21
- pull_number: pieces_framework_1.Property.Number({
22
- displayName: 'Pull Request Number',
23
- description: 'The number of the pull request',
24
- required: true,
25
- }),
26
- commit_id: pieces_framework_1.Property.ShortText({
27
- displayName: 'Commit SHA',
28
- description: 'The SHA of the commit to comment on',
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',
34
- required: true,
35
- }),
36
- body: pieces_framework_1.Property.LongText({
37
- displayName: 'Comment Body',
38
- description: 'The content of the review comment',
39
- required: true,
40
- }),
41
- position: pieces_framework_1.Property.Number({
42
- displayName: 'Position',
43
- description: 'The position in the diff where the comment should be placed',
44
- required: true,
45
- }),
46
- },
47
- run(_a) {
48
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
49
- const { pull_number, commit_id, path, body, position } = propsValue;
50
- const { owner, repo } = propsValue.repository;
51
- const response = yield (0, common_1.githubApiCall)({
52
- auth,
53
- method: pieces_common_1.HttpMethod.POST,
54
- resourceUri: `/repos/${owner}/${repo}/pulls/${pull_number}/comments`,
55
- body: {
56
- commit_id,
57
- path,
58
- body,
59
- position,
60
- },
61
- });
62
- return response;
63
- });
64
- },
65
- });
66
- //# sourceMappingURL=create-pull-request-review-comment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-pull-request-review-comment.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-pull-request-review-comment.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,0CAA0C,GAAG,IAAA,+BAAY,EAAC;IACrE,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE,oCAAoC;IACjD,WAAW,EACT,mEAAmE;IACrE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,0SAA0S;QAC5S,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,WAAW,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC3B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACxB,WAAW,EAAE,UAAU;YACvB,WAAW,EACT,6DAA6D;YAC/D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YACpE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,UAAU,WAAW,WAAW;gBACpE,IAAI,EAAE;oBACJ,SAAS;oBACT,IAAI;oBACJ,IAAI;oBACJ,QAAQ;iBACT;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- export declare const githubDeleteBranchAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- repository: import("@activepieces/pieces-framework").DropdownProperty<{
7
- repo: string;
8
- owner: string;
9
- }, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
13
- }>)[]>;
14
- branch: import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
15
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
16
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
- }>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
19
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
20
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
22
- }>)[]>;
23
- }>;
24
- //# sourceMappingURL=delete-branch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-branch.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;EA4BnC,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubDeleteBranchAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.githubDeleteBranchAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.githubAuth,
11
- name: 'delete_branch',
12
- displayName: 'Delete Branch',
13
- description: 'Deletes a branch from a repository.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Permanently deletes a branch (git ref under heads/) from a repository. Use to clean up a merged or stale branch. Effectively idempotent for the end state (the branch ends up gone), but a repeat call on an already-deleted branch returns a not-found error.',
17
- idempotent: false,
18
- },
19
- props: {
20
- repository: common_1.githubCommon.repositoryDropdown,
21
- branch: common_1.githubCommon.branchDropdown('Branch', '', true),
22
- },
23
- run(_a) {
24
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
25
- const { owner, repo } = propsValue.repository;
26
- const branchName = propsValue.branch;
27
- const response = yield (0, common_1.githubApiCall)({
28
- auth,
29
- method: pieces_common_1.HttpMethod.DELETE,
30
- resourceUri: `/repos/${owner}/${repo}/git/refs/heads/${branchName}`,
31
- });
32
- return response;
33
- });
34
- },
35
- });
36
- //# sourceMappingURL=delete-branch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-branch.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-branch.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,gQAAgQ;QAClQ,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,MAAM,EAAE,qBAAY,CAAC,cAAc,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC;KACxD;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;YAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,MAAM;gBAEzB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,mBAAmB,UAAU,EAAE;aACpE,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- export declare const githubFindBranchAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- repository: import("@activepieces/pieces-framework").DropdownProperty<{
7
- repo: string;
8
- owner: string;
9
- }, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
13
- }>)[]>;
14
- branch: import("@activepieces/pieces-framework").ShortTextProperty<true>;
15
- }>;
16
- //# sourceMappingURL=find-branch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-branch.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-branch.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;EA4CjC,CAAC"}
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubFindBranchAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- const axios_1 = require("axios");
10
- exports.githubFindBranchAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.githubAuth,
12
- name: 'find_branch',
13
- displayName: 'Find Branch',
14
- description: 'Finds a branch by name and returns its details.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Looks up a branch in a repository by its exact name and reports whether it exists along with its details. Use to check for a branch or fetch its tip before acting on it; a missing branch is reported as not-found rather than raising an error. Read-only and idempotent.',
18
- idempotent: true,
19
- },
20
- props: {
21
- repository: common_1.githubCommon.repositoryDropdown,
22
- branch: pieces_framework_1.Property.ShortText({
23
- displayName: 'Branch Name',
24
- required: true,
25
- }),
26
- },
27
- run(_a) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
29
- const { owner, repo } = propsValue.repository;
30
- const branchName = propsValue.branch;
31
- try {
32
- const response = yield (0, common_1.githubApiCall)({
33
- auth,
34
- method: pieces_common_1.HttpMethod.GET,
35
- resourceUri: `/repos/${owner}/${repo}/branches/${branchName}`,
36
- });
37
- return {
38
- found: true,
39
- result: response.body,
40
- };
41
- }
42
- catch (e) {
43
- const status = e.response.status;
44
- if (status === axios_1.HttpStatusCode.NotFound) {
45
- return {
46
- found: false,
47
- result: {},
48
- };
49
- }
50
- throw e;
51
- }
52
- });
53
- },
54
- });
55
- //# sourceMappingURL=find-branch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-branch.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-branch.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAwD;AACxD,+DAAoE;AACpE,iCAAuC;AAE1B,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,6QAA6Q;QAC/Q,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;YAErC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;oBACnC,IAAI;oBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,aAAa,UAAU,EAAE;iBAC9D,CAAC,CAAC;gBAEH,OAAO;oBACL,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,QAAQ,CAAC,IAAI;iBACtB,CAAC;YACJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,MAAM,GAAI,CAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAChD,IAAI,MAAM,KAAK,sBAAc,CAAC,QAAQ,EAAE,CAAC;oBACvC,OAAO;wBACL,KAAK,EAAE,KAAK;wBACZ,MAAM,EAAE,EAAE;qBACX,CAAC;gBACJ,CAAC;gBACD,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- export declare const githubFindIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- repository: import("@activepieces/pieces-framework").DropdownProperty<{
7
- repo: string;
8
- owner: string;
9
- }, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
13
- }>)[]>;
14
- title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
15
- state: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
16
- }>;
17
- //# sourceMappingURL=find-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EA2DhC,CAAC"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubFindIssueAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.githubFindIssueAction = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.githubAuth,
11
- name: 'find_issue',
12
- displayName: 'Find Issue',
13
- description: 'Finds an issue based title.',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Searches a repository for an issue whose title matches the given text, filtered by state (open, closed, or all), and returns the top match plus whether any was found. Use to locate an issue by title when you do not have its number. Read-only and idempotent.',
17
- idempotent: true,
18
- },
19
- props: {
20
- repository: common_1.githubCommon.repositoryDropdown,
21
- title: pieces_framework_1.Property.ShortText({
22
- displayName: 'Title',
23
- required: true,
24
- }),
25
- state: pieces_framework_1.Property.StaticDropdown({
26
- displayName: 'State',
27
- description: 'Filter issues by their state.',
28
- required: true,
29
- options: {
30
- options: [
31
- { label: 'Open', value: 'open' },
32
- { label: 'Closed', value: 'closed' },
33
- { label: 'All', value: 'all' },
34
- ],
35
- },
36
- }),
37
- },
38
- run(_a) {
39
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
40
- const { owner, repo } = propsValue.repository;
41
- const { state, title } = propsValue;
42
- const query = {};
43
- if (propsValue.state)
44
- query.state = propsValue.state;
45
- let q = `repo:${owner}/${repo} is:issue in:title`;
46
- if (title) {
47
- q += ` "${title}"`;
48
- }
49
- if (state && state !== 'all') {
50
- q += ` state:${state}`;
51
- }
52
- const response = yield (0, common_1.githubApiCall)({
53
- auth,
54
- method: pieces_common_1.HttpMethod.GET,
55
- resourceUri: `/search/issues`,
56
- query: { q, per_page: 1 },
57
- });
58
- return {
59
- found: response.body.total_count > 0,
60
- result: response.body.items,
61
- };
62
- });
63
- },
64
- });
65
- //# sourceMappingURL=find-issue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAuE;AACvE,+DAAyD;AAE5C,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,mQAAmQ;QACrQ,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC7B,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACpC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;iBAC/B;aACF;SACF,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAC/C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;YACpC,MAAM,KAAK,GAAkB,EAAE,CAAC;YAChC,IAAI,UAAU,CAAC,KAAK;gBAAE,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;YAErD,IAAI,CAAC,GAAG,QAAQ,KAAK,IAAI,IAAI,oBAAoB,CAAC;YAClD,IAAI,KAAK,EAAE,CAAC;gBACV,CAAC,IAAI,KAAK,KAAK,GAAG,CAAC;YACrB,CAAC;YACD,IAAI,KAAK,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;gBAC7B,CAAC,IAAI,UAAU,KAAK,EAAE,CAAC;YACzB,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAGjC;gBACD,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,gBAAgB;gBAC7B,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;aAC1B,CAAC,CAAC;YAEH,OAAO;gBACL,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC;gBACpC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK;aAC5B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const githubFindUserAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- username: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=find-user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-user.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;EA2C/B,CAAC"}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubFindUserAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const auth_1 = require("../auth");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- const axios_1 = require("axios");
10
- exports.githubFindUserAction = (0, pieces_framework_1.createAction)({
11
- auth: auth_1.githubAuth,
12
- name: 'find_user',
13
- displayName: 'Find User',
14
- description: 'Finds a user by their login name.',
15
- audience: 'both',
16
- aiMetadata: {
17
- description: 'Looks up a GitHub user by their login (username) and reports whether they exist along with their public profile. Use to verify a username or fetch a user profile; an unknown username is reported as not-found rather than raising an error. Read-only and idempotent.',
18
- idempotent: true,
19
- },
20
- props: {
21
- username: pieces_framework_1.Property.ShortText({
22
- displayName: 'Username',
23
- description: 'The GitHub username (login) to look up.',
24
- required: true,
25
- }),
26
- },
27
- run(_a) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
29
- const { username } = propsValue;
30
- try {
31
- const response = yield (0, common_1.githubApiCall)({
32
- auth,
33
- method: pieces_common_1.HttpMethod.GET,
34
- resourceUri: `/users/${username}`,
35
- });
36
- return {
37
- found: true,
38
- result: response.body,
39
- };
40
- }
41
- catch (e) {
42
- const status = e.response.status;
43
- if (status === axios_1.HttpStatusCode.NotFound) {
44
- return {
45
- found: false,
46
- result: {},
47
- };
48
- }
49
- throw e;
50
- }
51
- });
52
- },
53
- });
54
- //# sourceMappingURL=find-user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-user.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAA0C;AAC1C,+DAAoE;AACpE,iCAAuC;AAE1B,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,yQAAyQ;QAC3Q,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;YAEhC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;oBACnC,IAAI;oBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,WAAW,EAAE,UAAU,QAAQ,EAAE;iBAClC,CAAC,CAAC;gBAEH,OAAO;oBACL,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,QAAQ,CAAC,IAAI;iBACtB,CAAC;YACJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,MAAM,GAAI,CAAe,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAChD,IAAI,MAAM,KAAK,sBAAc,CAAC,QAAQ,EAAE,CAAC;oBACvC,OAAO;wBACL,KAAK,EAAE,KAAK;wBACZ,MAAM,EAAE,EAAE;qBACX,CAAC;gBACJ,CAAC;gBACD,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- export declare const githubGetIssueInformation: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- repository: import("@activepieces/pieces-framework").DropdownProperty<{
7
- repo: string;
8
- owner: string;
9
- }, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
13
- }>)[]>;
14
- issue_number: import("@activepieces/pieces-framework").NumberProperty<true>;
15
- }>;
16
- //# sourceMappingURL=get-issue-information.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-issue-information.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue-information.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;EA+BpC,CAAC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubGetIssueInformation = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const common_1 = require("../common");
8
- const pieces_common_1 = require("@activepieces/pieces-common");
9
- exports.githubGetIssueInformation = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.githubAuth,
11
- name: 'getIssueInformation',
12
- displayName: 'Get issue information',
13
- description: 'Grabs information from a specific issue',
14
- audience: 'both',
15
- aiMetadata: {
16
- description: 'Fetches the full details of a single issue in a repository by its issue number. Use when you already know the issue number and need its current state, title, body, labels, or assignees. Read-only and idempotent.',
17
- idempotent: true,
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 you want to get information from',
24
- required: true,
25
- }),
26
- },
27
- run(_a) {
28
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
29
- const issue_number = propsValue.issue_number;
30
- const { owner, repo } = propsValue.repository;
31
- const response = yield (0, common_1.githubApiCall)({
32
- auth,
33
- method: pieces_common_1.HttpMethod.GET,
34
- resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}`,
35
- });
36
- return response;
37
- });
38
- },
39
- });
40
- //# sourceMappingURL=get-issue-information.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-issue-information.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-issue-information.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,qNAAqN;QACvN,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;YAC7C,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,YAAY,EAAE;aAC9D,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- export declare const githubLockIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>)[], {
6
- repository: import("@activepieces/pieces-framework").DropdownProperty<{
7
- repo: string;
8
- owner: string;
9
- }, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
13
- }>)[]>;
14
- issue_number: import("@activepieces/pieces-framework").NumberProperty<true>;
15
- lock_reason: import("@activepieces/pieces-framework").DropdownProperty<"off-topic" | "too heated" | "resolved" | "spam" | undefined, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
16
- appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
- installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
18
- privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
19
- }>)[]>;
20
- }>;
21
- //# sourceMappingURL=lock-issue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lock-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/lock-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;EAsDhC,CAAC"}