n8n-nodes-redlib 0.1.1

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 (59) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +247 -0
  3. package/dist/credentials/GithubIssuesApi.credentials.d.ts +10 -0
  4. package/dist/credentials/GithubIssuesApi.credentials.js +37 -0
  5. package/dist/credentials/GithubIssuesApi.credentials.js.map +1 -0
  6. package/dist/credentials/GithubIssuesOAuth2Api.credentials.d.ts +9 -0
  7. package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +54 -0
  8. package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +1 -0
  9. package/dist/icons/github.dark.svg +3 -0
  10. package/dist/icons/github.svg +3 -0
  11. package/dist/nodes/Example/Example.node.d.ts +5 -0
  12. package/dist/nodes/Example/Example.node.js +61 -0
  13. package/dist/nodes/Example/Example.node.js.map +1 -0
  14. package/dist/nodes/Example/Example.node.json +18 -0
  15. package/dist/nodes/Example/example.dark.svg +13 -0
  16. package/dist/nodes/Example/example.svg +13 -0
  17. package/dist/nodes/GithubIssues/GithubIssues.node.d.ts +14 -0
  18. package/dist/nodes/GithubIssues/GithubIssues.node.js +101 -0
  19. package/dist/nodes/GithubIssues/GithubIssues.node.js.map +1 -0
  20. package/dist/nodes/GithubIssues/GithubIssues.node.json +18 -0
  21. package/dist/nodes/GithubIssues/listSearch/getIssues.d.ts +2 -0
  22. package/dist/nodes/GithubIssues/listSearch/getIssues.js +28 -0
  23. package/dist/nodes/GithubIssues/listSearch/getIssues.js.map +1 -0
  24. package/dist/nodes/GithubIssues/listSearch/getRepositories.d.ts +2 -0
  25. package/dist/nodes/GithubIssues/listSearch/getRepositories.js +31 -0
  26. package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +1 -0
  27. package/dist/nodes/GithubIssues/listSearch/getUsers.d.ts +2 -0
  28. package/dist/nodes/GithubIssues/listSearch/getUsers.js +29 -0
  29. package/dist/nodes/GithubIssues/listSearch/getUsers.js.map +1 -0
  30. package/dist/nodes/GithubIssues/resources/issue/create.d.ts +2 -0
  31. package/dist/nodes/GithubIssues/resources/issue/create.js +75 -0
  32. package/dist/nodes/GithubIssues/resources/issue/create.js.map +1 -0
  33. package/dist/nodes/GithubIssues/resources/issue/get.d.ts +2 -0
  34. package/dist/nodes/GithubIssues/resources/issue/get.js +15 -0
  35. package/dist/nodes/GithubIssues/resources/issue/get.js.map +1 -0
  36. package/dist/nodes/GithubIssues/resources/issue/getAll.d.ts +2 -0
  37. package/dist/nodes/GithubIssues/resources/issue/getAll.js +125 -0
  38. package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +1 -0
  39. package/dist/nodes/GithubIssues/resources/issue/index.d.ts +2 -0
  40. package/dist/nodes/GithubIssues/resources/issue/index.js +76 -0
  41. package/dist/nodes/GithubIssues/resources/issue/index.js.map +1 -0
  42. package/dist/nodes/GithubIssues/resources/issueComment/getAll.d.ts +2 -0
  43. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js +66 -0
  44. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +1 -0
  45. package/dist/nodes/GithubIssues/resources/issueComment/index.d.ts +2 -0
  46. package/dist/nodes/GithubIssues/resources/issueComment/index.js +48 -0
  47. package/dist/nodes/GithubIssues/resources/issueComment/index.js.map +1 -0
  48. package/dist/nodes/GithubIssues/shared/descriptions.d.ts +4 -0
  49. package/dist/nodes/GithubIssues/shared/descriptions.js +151 -0
  50. package/dist/nodes/GithubIssues/shared/descriptions.js.map +1 -0
  51. package/dist/nodes/GithubIssues/shared/transport.d.ts +2 -0
  52. package/dist/nodes/GithubIssues/shared/transport.js +16 -0
  53. package/dist/nodes/GithubIssues/shared/transport.js.map +1 -0
  54. package/dist/nodes/GithubIssues/shared/utils.d.ts +3 -0
  55. package/dist/nodes/GithubIssues/shared/utils.js +17 -0
  56. package/dist/nodes/GithubIssues/shared/utils.js.map +1 -0
  57. package/dist/package.json +51 -0
  58. package/dist/tsconfig.tsbuildinfo +1 -0
  59. package/package.json +51 -0
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-github-issues",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Developer Tools"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/org/repo?tab=readme-ov-file"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare function getIssues(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIssues = getIssues;
4
+ const transport_1 = require("../shared/transport");
5
+ async function getIssues(filter, paginationToken) {
6
+ const page = paginationToken ? +paginationToken : 1;
7
+ const per_page = 100;
8
+ let responseData = {
9
+ items: [],
10
+ total_count: 0,
11
+ };
12
+ const owner = this.getNodeParameter('owner', '', { extractValue: true });
13
+ const repository = this.getNodeParameter('repository', '', { extractValue: true });
14
+ const filters = [filter, `repo:${owner}/${repository}`];
15
+ responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/issues', {
16
+ q: filters.filter(Boolean).join(' '),
17
+ page,
18
+ per_page,
19
+ });
20
+ const results = responseData.items.map((item) => ({
21
+ name: item.title,
22
+ value: item.number,
23
+ url: item.html_url,
24
+ }));
25
+ const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
26
+ return { results, paginationToken: nextPaginationToken };
27
+ }
28
+ //# sourceMappingURL=getIssues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIssues.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getIssues.ts"],"names":[],"mapp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AAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare function getRepositories(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRepositories = getRepositories;
4
+ const transport_1 = require("../shared/transport");
5
+ async function getRepositories(filter, paginationToken) {
6
+ const owner = this.getCurrentNodeParameter('owner', { extractValue: true });
7
+ const page = paginationToken ? +paginationToken : 1;
8
+ const per_page = 100;
9
+ const q = `${filter !== null && filter !== void 0 ? filter : ''} user:${owner} fork:true`;
10
+ let responseData = {
11
+ items: [],
12
+ total_count: 0,
13
+ };
14
+ try {
15
+ responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/repositories', {
16
+ q,
17
+ page,
18
+ per_page,
19
+ });
20
+ }
21
+ catch {
22
+ }
23
+ const results = responseData.items.map((item) => ({
24
+ name: item.name,
25
+ value: item.name,
26
+ url: item.html_url,
27
+ }));
28
+ const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
29
+ return { results, paginationToken: nextPaginationToken };
30
+ }
31
+ //# sourceMappingURL=getRepositories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRepositories.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getRepositories.ts"],"names":[],"mappings":";;AAiBA,0CAgCC;AA5CD,mDAAuD;AAYhD,KAAK,UAAU,eAAe,CAEpC,MAAe,EACf,eAAwB;IAExB,MAAM,KAAK,GAAG,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IACrB,MAAM,CAAC,GAAG,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,SAAS,KAAK,YAAY,CAAC;IACpD,IAAI,YAAY,GAA6B;QAC5C,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE;YAC/E,CAAC;YACD,IAAI;YACJ,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAA0B,EAAE,EAAE,CAAC,CAAC;QAC/F,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,IAAI;QAChB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare function getUsers(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUsers = getUsers;
4
+ const transport_1 = require("../shared/transport");
5
+ async function getUsers(filter, paginationToken) {
6
+ const page = paginationToken ? +paginationToken : 1;
7
+ const per_page = 100;
8
+ let responseData = {
9
+ items: [],
10
+ total_count: 0,
11
+ };
12
+ try {
13
+ responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/users', {
14
+ q: filter,
15
+ page,
16
+ per_page,
17
+ });
18
+ }
19
+ catch {
20
+ }
21
+ const results = responseData.items.map((item) => ({
22
+ name: item.login,
23
+ value: item.login,
24
+ url: item.html_url,
25
+ }));
26
+ const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
27
+ return { results, paginationToken: nextPaginationToken };
28
+ }
29
+ //# sourceMappingURL=getUsers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getUsers.ts"],"names":[],"mappings":";;AAiBA,4BA+BC;AA3CD,mDAAuD;AAYhD,KAAK,UAAU,QAAQ,CAE7B,MAAe,EACf,eAAwB;IAExB,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IAErB,IAAI,YAAY,GAAuB;QACtC,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,EAAE;YACxE,CAAC,EAAE,MAAM;YACT,IAAI;YACJ,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAoB,EAAE,EAAE,CAAC,CAAC;QACzF,IAAI,EAAE,IAAI,CAAC,KAAK;QAChB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueCreateDescription: INodeProperties[];
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.issueCreateDescription = void 0;
4
+ const showOnlyForIssueCreate = {
5
+ operation: ['create'],
6
+ resource: ['issue'],
7
+ };
8
+ exports.issueCreateDescription = [
9
+ {
10
+ displayName: 'Title',
11
+ name: 'title',
12
+ type: 'string',
13
+ default: '',
14
+ required: true,
15
+ displayOptions: {
16
+ show: showOnlyForIssueCreate,
17
+ },
18
+ description: 'The title of the issue',
19
+ routing: {
20
+ send: {
21
+ type: 'body',
22
+ property: 'title',
23
+ },
24
+ },
25
+ },
26
+ {
27
+ displayName: 'Body',
28
+ name: 'body',
29
+ type: 'string',
30
+ typeOptions: {
31
+ rows: 5,
32
+ },
33
+ default: '',
34
+ displayOptions: {
35
+ show: showOnlyForIssueCreate,
36
+ },
37
+ description: 'The body of the issue',
38
+ routing: {
39
+ send: {
40
+ type: 'body',
41
+ property: 'body',
42
+ },
43
+ },
44
+ },
45
+ {
46
+ displayName: 'Labels',
47
+ name: 'labels',
48
+ type: 'collection',
49
+ typeOptions: {
50
+ multipleValues: true,
51
+ multipleValueButtonText: 'Add Label',
52
+ },
53
+ displayOptions: {
54
+ show: showOnlyForIssueCreate,
55
+ },
56
+ default: { label: '' },
57
+ options: [
58
+ {
59
+ displayName: 'Label',
60
+ name: 'label',
61
+ type: 'string',
62
+ default: '',
63
+ description: 'Label to add to issue',
64
+ },
65
+ ],
66
+ routing: {
67
+ send: {
68
+ type: 'body',
69
+ property: 'labels',
70
+ value: '={{$value.map((data) => data.label)}}',
71
+ },
72
+ },
73
+ },
74
+ ];
75
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;aACjB;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;YACpB,uBAAuB,EAAE,WAAW;SACpC;QACD,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uBAAuB;aACpC;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,uCAAuC;aAC9C;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueGetDescription: INodeProperties[];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.issueGetDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const showOnlyForIssueGet = {
6
+ operation: ['get'],
7
+ resource: ['issue'],
8
+ };
9
+ exports.issueGetDescription = [
10
+ {
11
+ ...descriptions_1.issueSelect,
12
+ displayOptions: { show: showOnlyForIssueGet },
13
+ },
14
+ ];
15
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/get.ts"],"names":[],"mappings":";;;AACA,4DAAwD;AAExD,MAAM,mBAAmB,GAAG;IAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,GAAG,0BAAW;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;KAC7C;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueGetManyDescription: INodeProperties[];
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.issueGetManyDescription = void 0;
4
+ const utils_1 = require("../../shared/utils");
5
+ const showOnlyForIssueGetMany = {
6
+ operation: ['getAll'],
7
+ resource: ['issue'],
8
+ };
9
+ exports.issueGetManyDescription = [
10
+ {
11
+ displayName: 'Limit',
12
+ name: 'limit',
13
+ type: 'number',
14
+ displayOptions: {
15
+ show: {
16
+ ...showOnlyForIssueGetMany,
17
+ returnAll: [false],
18
+ },
19
+ },
20
+ typeOptions: {
21
+ minValue: 1,
22
+ maxValue: 100,
23
+ },
24
+ default: 50,
25
+ routing: {
26
+ send: {
27
+ type: 'query',
28
+ property: 'per_page',
29
+ },
30
+ output: {
31
+ maxResults: '={{$value}}',
32
+ },
33
+ },
34
+ description: 'Max number of results to return',
35
+ },
36
+ {
37
+ displayName: 'Return All',
38
+ name: 'returnAll',
39
+ type: 'boolean',
40
+ displayOptions: {
41
+ show: showOnlyForIssueGetMany,
42
+ },
43
+ default: false,
44
+ description: 'Whether to return all results or only up to a given limit',
45
+ routing: {
46
+ send: {
47
+ paginate: '={{ $value }}',
48
+ type: 'query',
49
+ property: 'per_page',
50
+ value: '100',
51
+ },
52
+ operations: {
53
+ pagination: {
54
+ type: 'generic',
55
+ properties: {
56
+ continue: `={{ !!(${utils_1.parseLinkHeader.toString()})($response.headers?.link).next }}`,
57
+ request: {
58
+ url: `={{ (${utils_1.parseLinkHeader.toString()})($response.headers?.link)?.next ?? $request.url }}`,
59
+ },
60
+ },
61
+ },
62
+ },
63
+ },
64
+ },
65
+ {
66
+ displayName: 'Filters',
67
+ name: 'filters',
68
+ type: 'collection',
69
+ typeOptions: {
70
+ multipleValueButtonText: 'Add Filter',
71
+ },
72
+ displayOptions: {
73
+ show: showOnlyForIssueGetMany,
74
+ },
75
+ default: {},
76
+ options: [
77
+ {
78
+ displayName: 'Updated Since',
79
+ name: 'since',
80
+ type: 'dateTime',
81
+ default: '',
82
+ description: 'Return only issues updated at or after this time',
83
+ routing: {
84
+ request: {
85
+ qs: {
86
+ since: '={{$value}}',
87
+ },
88
+ },
89
+ },
90
+ },
91
+ {
92
+ displayName: 'State',
93
+ name: 'state',
94
+ type: 'options',
95
+ options: [
96
+ {
97
+ name: 'All',
98
+ value: 'all',
99
+ description: 'Returns issues with any state',
100
+ },
101
+ {
102
+ name: 'Closed',
103
+ value: 'closed',
104
+ description: 'Return issues with "closed" state',
105
+ },
106
+ {
107
+ name: 'Open',
108
+ value: 'open',
109
+ description: 'Return issues with "open" state',
110
+ },
111
+ ],
112
+ default: 'open',
113
+ description: 'The issue state to filter on',
114
+ routing: {
115
+ request: {
116
+ qs: {
117
+ state: '={{$value}}',
118
+ },
119
+ },
120
+ },
121
+ },
122
+ ],
123
+ },
124
+ ];
125
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/getAll.ts"],"names":[],"mappings":";;;AACA,8CAAqD;AAErD,MAAM,uBAAuB,GAAG;IAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,uBAAuB;gBAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;aACpB;YACD,MAAM,EAAE;gBACP,UAAU,EAAE,aAAa;aACzB;SACD;QACD,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,uBAAuB;SAC7B;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,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C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,EAAE,EAAE;4BACH,KAAK,EAAE,aAAa;yBACpB;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueDescription: INodeProperties[];
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.issueDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const getAll_1 = require("./getAll");
6
+ const get_1 = require("./get");
7
+ const create_1 = require("./create");
8
+ const showOnlyForIssues = {
9
+ resource: ['issue'],
10
+ };
11
+ exports.issueDescription = [
12
+ {
13
+ displayName: 'Operation',
14
+ name: 'operation',
15
+ type: 'options',
16
+ noDataExpression: true,
17
+ displayOptions: {
18
+ show: showOnlyForIssues,
19
+ },
20
+ options: [
21
+ {
22
+ name: 'Get Many',
23
+ value: 'getAll',
24
+ action: 'Get issues in a repository',
25
+ description: 'Get many issues in a repository',
26
+ routing: {
27
+ request: {
28
+ method: 'GET',
29
+ url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues',
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: 'Get',
35
+ value: 'get',
36
+ action: 'Get an issue',
37
+ description: 'Get the data of a single issue',
38
+ routing: {
39
+ request: {
40
+ method: 'GET',
41
+ url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$parameter.issue}}',
42
+ },
43
+ },
44
+ },
45
+ {
46
+ name: 'Create',
47
+ value: 'create',
48
+ action: 'Create a new issue',
49
+ description: 'Create a new issue',
50
+ routing: {
51
+ request: {
52
+ method: 'POST',
53
+ url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues',
54
+ },
55
+ },
56
+ },
57
+ ],
58
+ default: 'getAll',
59
+ },
60
+ {
61
+ ...descriptions_1.repoOwnerSelect,
62
+ displayOptions: {
63
+ show: showOnlyForIssues,
64
+ },
65
+ },
66
+ {
67
+ ...descriptions_1.repoNameSelect,
68
+ displayOptions: {
69
+ show: showOnlyForIssues,
70
+ },
71
+ },
72
+ ...getAll_1.issueGetManyDescription,
73
+ ...get_1.issueGetDescription,
74
+ ...create_1.issueCreateDescription,
75
+ ];
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/index.ts"],"names":[],"mappings":";;;AACA,4DAA4E;AAC5E,qCAAmD;AACnD,+BAA4C;AAC5C,qCAAkD;AAElD,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,4BAA4B;gBACpC,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,+DAA+D;qBACpE;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,gCAAgC;gBAC7C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,oFAAoF;qBACzF;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,+DAA+D;qBACpE;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,8BAAe;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD;QACC,GAAG,6BAAc;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD,GAAG,gCAAuB;IAC1B,GAAG,yBAAmB;IACtB,GAAG,+BAAsB;CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueCommentGetManyDescription: INodeProperties[];
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.issueCommentGetManyDescription = void 0;
4
+ const utils_1 = require("../../shared/utils");
5
+ const showOnlyForIssueCommentGetMany = {
6
+ operation: ['getAll'],
7
+ resource: ['issueComment'],
8
+ };
9
+ exports.issueCommentGetManyDescription = [
10
+ {
11
+ displayName: 'Limit',
12
+ name: 'limit',
13
+ type: 'number',
14
+ displayOptions: {
15
+ show: {
16
+ ...showOnlyForIssueCommentGetMany,
17
+ returnAll: [false],
18
+ },
19
+ },
20
+ typeOptions: {
21
+ minValue: 1,
22
+ maxValue: 100,
23
+ },
24
+ default: 50,
25
+ routing: {
26
+ send: {
27
+ type: 'query',
28
+ property: 'per_page',
29
+ },
30
+ output: {
31
+ maxResults: '={{$value}}',
32
+ },
33
+ },
34
+ description: 'Max number of results to return',
35
+ },
36
+ {
37
+ displayName: 'Return All',
38
+ name: 'returnAll',
39
+ type: 'boolean',
40
+ displayOptions: {
41
+ show: showOnlyForIssueCommentGetMany,
42
+ },
43
+ default: false,
44
+ description: 'Whether to return all results or only up to a given limit',
45
+ routing: {
46
+ send: {
47
+ paginate: '={{ $value }}',
48
+ type: 'query',
49
+ property: 'per_page',
50
+ value: '100',
51
+ },
52
+ operations: {
53
+ pagination: {
54
+ type: 'generic',
55
+ properties: {
56
+ continue: `={{ !!(${utils_1.parseLinkHeader.toString()})($response.headers?.link).next }}`,
57
+ request: {
58
+ url: `={{ (${utils_1.parseLinkHeader.toString()})($response.headers?.link)?.next ?? $request.url }}`,
59
+ },
60
+ },
61
+ },
62
+ },
63
+ },
64
+ },
65
+ ];
66
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issueComment/getAll.ts"],"names":[],"mappings":";;;AACA,8CAAqD;AAErD,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,8BAA8B;gBACjC,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;aACpB;YACD,MAAM,EAAE;gBACP,UAAU,EAAE,aAAa;aACzB;SACD;QACD,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,KAAK;aACZ;YACD,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE;wBACX,QAAQ,EAAE,UAAU,uBAAe,CAAC,QAAQ,EAAE,oCAAoC;wBAClF,OAAO,EAAE;4BACR,GAAG,EAAE,QAAQ,uBAAe,CAAC,QAAQ,EAAE,qDAAqD;yBAC5F;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueCommentDescription: INodeProperties[];
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.issueCommentDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const getAll_1 = require("./getAll");
6
+ const showOnlyForIssueComments = {
7
+ resource: ['issueComment'],
8
+ };
9
+ exports.issueCommentDescription = [
10
+ {
11
+ displayName: 'Operation',
12
+ name: 'operation',
13
+ type: 'options',
14
+ noDataExpression: true,
15
+ displayOptions: {
16
+ show: showOnlyForIssueComments,
17
+ },
18
+ options: [
19
+ {
20
+ name: 'Get Many',
21
+ value: 'getAll',
22
+ action: 'Get issue comments',
23
+ description: 'Get issue comments',
24
+ routing: {
25
+ request: {
26
+ method: 'GET',
27
+ url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/comments',
28
+ },
29
+ },
30
+ },
31
+ ],
32
+ default: 'getAll',
33
+ },
34
+ {
35
+ ...descriptions_1.repoOwnerSelect,
36
+ displayOptions: {
37
+ show: showOnlyForIssueComments,
38
+ },
39
+ },
40
+ {
41
+ ...descriptions_1.repoNameSelect,
42
+ displayOptions: {
43
+ show: showOnlyForIssueComments,
44
+ },
45
+ },
46
+ ...getAll_1.issueCommentGetManyDescription,
47
+ ];
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issueComment/index.ts"],"names":[],"mappings":";;;AACA,4DAA4E;AAC5E,qCAA0D;AAE1D,MAAM,wBAAwB,GAAG;IAChC,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,wEAAwE;qBAC7E;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,8BAAe;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;IACD;QACC,GAAG,6BAAc;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;IACD,GAAG,uCAA8B;CACjC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const repoOwnerSelect: INodeProperties;
3
+ export declare const repoNameSelect: INodeProperties;
4
+ export declare const issueSelect: INodeProperties;