mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-27 21:52:26 -05:00
47 lines
1,013 B
TypeScript
47 lines
1,013 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
import { repoNameSelect, repoOwnerSelect } from '../../shared/descriptions';
|
|
import { issueCommentGetManyDescription } from './getAll';
|
|
|
|
const showOnlyForIssueComments = {
|
|
resource: ['issueComment'],
|
|
};
|
|
|
|
export const issueCommentDescription: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: showOnlyForIssueComments,
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get Many',
|
|
value: 'getAll',
|
|
action: 'Get issue comments',
|
|
description: 'Get issue comments',
|
|
routing: {
|
|
request: {
|
|
method: 'GET',
|
|
url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/comments',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
default: 'getAll',
|
|
},
|
|
{
|
|
...repoOwnerSelect,
|
|
displayOptions: {
|
|
show: showOnlyForIssueComments,
|
|
},
|
|
},
|
|
{
|
|
...repoNameSelect,
|
|
displayOptions: {
|
|
show: showOnlyForIssueComments,
|
|
},
|
|
},
|
|
...issueCommentGetManyDescription,
|
|
];
|