mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
options and operations added
This commit is contained in:
parent
4bf66dcbb5
commit
8345c46c91
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "n8n",
|
"name": "n8n",
|
||||||
"version": "0.174.0",
|
"version": "0.175.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "n8n",
|
"name": "n8n",
|
||||||
"version": "0.174.0",
|
"version": "0.175.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.14.6",
|
"@babel/core": "^7.14.6",
|
||||||
"@fontsource/open-sans": "^4.5.0",
|
"@fontsource/open-sans": "^4.5.0",
|
||||||
|
|
|
@ -111,6 +111,10 @@ export class Github implements INodeType {
|
||||||
name: 'User',
|
name: 'User',
|
||||||
value: 'user',
|
value: 'user',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Organization',
|
||||||
|
value: 'organization',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
default: 'issue',
|
default: 'issue',
|
||||||
description: 'The resource to operate on.',
|
description: 'The resource to operate on.',
|
||||||
|
@ -121,6 +125,25 @@ export class Github implements INodeType {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// operations
|
// operations
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
{
|
||||||
|
displayName: 'Operation',
|
||||||
|
name: 'operation',
|
||||||
|
type: 'options',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
resource: [
|
||||||
|
'organization',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
options: [{
|
||||||
|
name: 'getOrgRepositories',
|
||||||
|
value: 'getOrgRepositories',
|
||||||
|
description: 'Get all repositories of an organization',}],
|
||||||
|
default: 'getOrgRepositories',
|
||||||
|
description: 'The operation to perform.',
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Operation',
|
displayName: 'Operation',
|
||||||
name: 'operation',
|
name: 'operation',
|
||||||
|
@ -1717,7 +1740,56 @@ export class Github implements INodeType {
|
||||||
},
|
},
|
||||||
default: 50,
|
default: 50,
|
||||||
description: 'How many results to return.',
|
description: 'How many results to return.',
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// ----------------------------------
|
||||||
|
// Org:getOrgRepositories
|
||||||
|
// ----------------------------------
|
||||||
|
{
|
||||||
|
displayName: 'get Org Repositories',
|
||||||
|
name: 'getOrgRepositories',
|
||||||
|
type: 'boolean',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
resource: [
|
||||||
|
'organisation',
|
||||||
|
],
|
||||||
|
operation: [
|
||||||
|
'getOrgRepositories',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
default: true,
|
||||||
|
description: 'If all results should be returned or only up to a given limit.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Limit',
|
||||||
|
name: 'limit',
|
||||||
|
type: 'number',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
resource: [
|
||||||
|
'user',
|
||||||
|
],
|
||||||
|
operation: [
|
||||||
|
'getOrgRepositories',
|
||||||
|
],
|
||||||
|
returnAll: [
|
||||||
|
false,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
typeOptions: {
|
||||||
|
minValue: 1,
|
||||||
|
maxValue: 100,
|
||||||
|
},
|
||||||
|
default: 50,
|
||||||
|
description: 'How many results to return.',
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// user:invite
|
// user:invite
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
@ -2223,6 +2295,7 @@ export class Github implements INodeType {
|
||||||
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else if (operation === 'invite') {
|
} else if (operation === 'invite') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// invite
|
// invite
|
||||||
|
|
Loading…
Reference in a new issue