mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add get repository data to Github-Node
This commit is contained in:
@@ -162,6 +162,11 @@ export class Github implements INodeType {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Get',
|
||||||
|
value: 'get',
|
||||||
|
description: 'Get the data of a single repository',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Get License',
|
name: 'Get License',
|
||||||
value: 'getLicense',
|
value: 'getLicense',
|
||||||
@@ -1100,6 +1105,7 @@ export class Github implements INodeType {
|
|||||||
'issue:edit',
|
'issue:edit',
|
||||||
'issue:get',
|
'issue:get',
|
||||||
'release:create',
|
'release:create',
|
||||||
|
'repository:get',
|
||||||
'repository:getLicense',
|
'repository:getLicense',
|
||||||
'repository:getProfile',
|
'repository:getProfile',
|
||||||
];
|
];
|
||||||
@@ -1325,6 +1331,14 @@ export class Github implements INodeType {
|
|||||||
requestMethod = 'GET';
|
requestMethod = 'GET';
|
||||||
|
|
||||||
endpoint = `/repos/${owner}/${repository}/traffic/popular/referrers`;
|
endpoint = `/repos/${owner}/${repository}/traffic/popular/referrers`;
|
||||||
|
} else if (operation === 'get') {
|
||||||
|
// ----------------------------------
|
||||||
|
// get
|
||||||
|
// ----------------------------------
|
||||||
|
|
||||||
|
requestMethod = 'GET';
|
||||||
|
|
||||||
|
endpoint = `/repos/${owner}/${repository}`;
|
||||||
} else if (operation === 'getLicense') {
|
} else if (operation === 'getLicense') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// getLicense
|
// getLicense
|
||||||
|
|||||||
Reference in New Issue
Block a user