2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2021-06-05 13:43:54 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const logFields: INodeProperties[] = [
|
2021-06-05 13:43:54 -07:00
|
|
|
{
|
|
|
|
displayName: 'Return All',
|
|
|
|
name: 'returnAll',
|
|
|
|
type: 'boolean',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['log'],
|
2021-06-05 13:43:54 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
default: false,
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Whether to return all results or only up to a given limit',
|
2021-06-05 13:43:54 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Limit',
|
|
|
|
name: 'limit',
|
|
|
|
type: 'number',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['log'],
|
|
|
|
returnAll: [false],
|
2021-06-05 13:43:54 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
typeOptions: {
|
|
|
|
minValue: 1,
|
|
|
|
maxValue: 100,
|
|
|
|
},
|
|
|
|
default: 100,
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Max number of results to return',
|
2021-06-05 13:43:54 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Options',
|
|
|
|
name: 'options',
|
|
|
|
type: 'collection',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['log'],
|
2021-06-05 13:43:54 -07:00
|
|
|
},
|
|
|
|
},
|
2024-07-29 05:27:23 -07:00
|
|
|
placeholder: 'Add option',
|
2021-06-05 13:43:54 -07:00
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'File',
|
|
|
|
name: 'file',
|
|
|
|
type: 'string',
|
|
|
|
default: 'README.md',
|
2022-08-17 08:50:24 -07:00
|
|
|
description:
|
|
|
|
'The path (absolute or relative to Repository Path) of file or folder to get the history of',
|
2021-06-05 13:43:54 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|