n8n-nodes-github-copilot 3.27.1 → 3.27.2
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.
|
@@ -8,17 +8,6 @@ class GitHubCopilotOAuth2Api {
|
|
|
8
8
|
this.displayName = 'GitHub Copilot OAuth2 (with Helper)';
|
|
9
9
|
this.documentationUrl = 'https://docs.github.com/en/copilot/github-copilot-chat/copilot-chat-in-ides/using-github-copilot-chat-in-your-ide';
|
|
10
10
|
this.properties = [
|
|
11
|
-
{
|
|
12
|
-
displayName: '🚀 Automated Token Generation (Recommended)',
|
|
13
|
-
name: 'scriptHelper',
|
|
14
|
-
type: 'notice',
|
|
15
|
-
default: '',
|
|
16
|
-
description: `<strong>Easy 3-Step Process:</strong><br/>
|
|
17
|
-
1. Run: <code>node get-copilot-token.js</code><br/>
|
|
18
|
-
2. Follow OAuth flow in browser<br/>
|
|
19
|
-
3. Paste generated token below<br/><br/>
|
|
20
|
-
<em>Script handles all OAuth complexity automatically!</em>`,
|
|
21
|
-
},
|
|
22
11
|
{
|
|
23
12
|
displayName: 'GitHub Copilot Token',
|
|
24
13
|
name: 'token',
|
|
@@ -28,49 +17,38 @@ class GitHubCopilotOAuth2Api {
|
|
|
28
17
|
},
|
|
29
18
|
default: '',
|
|
30
19
|
required: true,
|
|
31
|
-
description:
|
|
20
|
+
description: `🔑 <strong>COPIE SEU TOKEN AQUI (formato: gho_*)</strong><br/><br/>
|
|
21
|
+
<strong>🚀 MÉTODO FÁCIL (Automático):</strong><br/>
|
|
22
|
+
1. Abra terminal no projeto<br/>
|
|
23
|
+
2. Execute: <code>node get-copilot-token.js</code><br/>
|
|
24
|
+
3. Siga o fluxo OAuth no navegador<br/>
|
|
25
|
+
4. Cole o token gerado aqui<br/><br/>
|
|
26
|
+
<strong>🔧 MÉTODO MANUAL:</strong><br/>
|
|
27
|
+
1. Acesse: <a href="https://github.com/login/device" target="_blank">https://github.com/login/device</a><br/>
|
|
28
|
+
2. Client ID: <code>01ab8ac9400c4e429b23</code><br/>
|
|
29
|
+
3. Digite o código de 8 caracteres que será gerado<br/>
|
|
30
|
+
4. Autorize a aplicação<br/>
|
|
31
|
+
5. Copie o token final aqui<br/><br/>
|
|
32
|
+
<em>💡 O script automatizado é muito mais fácil!</em>`,
|
|
32
33
|
placeholder: 'gho_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
|
-
displayName: '
|
|
36
|
-
name: '
|
|
37
|
-
type: '
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<strong>3. Get 8-Character Code:</strong><br/>
|
|
52
|
-
📱 GitHub will provide code like: ABCD-1234<br/><br/>
|
|
53
|
-
<strong>4. Complete Authorization:</strong><br/>
|
|
54
|
-
✅ Enter code and authorize application<br/><br/>
|
|
55
|
-
<strong>5. Obtain Token:</strong><br/>
|
|
56
|
-
🎯 Copy final token and paste above`,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
displayName: 'Client ID (Fixed)',
|
|
60
|
-
name: 'clientId',
|
|
61
|
-
type: 'string',
|
|
62
|
-
default: '01ab8ac9400c4e429b23',
|
|
63
|
-
description: 'GitHub OAuth Client ID - VS Code application',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
displayName: 'Required Scopes',
|
|
67
|
-
name: 'scopes',
|
|
68
|
-
type: 'string',
|
|
69
|
-
default: 'repo user:email',
|
|
70
|
-
description: 'OAuth permissions needed for Copilot access',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
description: 'Manual configuration for advanced users',
|
|
36
|
+
displayName: 'Gerar Código Device Flow',
|
|
37
|
+
name: 'deviceFlowHelp',
|
|
38
|
+
type: 'notice',
|
|
39
|
+
default: '',
|
|
40
|
+
description: `<strong>🎯 PARA OAUTH MANUAL:</strong><br/><br/>
|
|
41
|
+
<strong>1. URL do Device Flow:</strong><br/>
|
|
42
|
+
🌐 <a href="https://github.com/login/device" target="_blank" style="font-size: 16px; color: #0066cc; text-decoration: underline;">CLIQUE AQUI PARA GERAR CÓDIGO</a><br/><br/>
|
|
43
|
+
<strong>2. Client ID para usar:</strong><br/>
|
|
44
|
+
📋 <code style="background: #f5f5f5; padding: 4px; border: 1px solid #ddd;">01ab8ac9400c4e429b23</code><br/><br/>
|
|
45
|
+
<strong>3. Scopes necessários:</strong><br/>
|
|
46
|
+
🔐 <code>repo user:email</code><br/><br/>
|
|
47
|
+
<strong>4. O que vai acontecer:</strong><br/>
|
|
48
|
+
• GitHub vai gerar um código de 8 caracteres<br/>
|
|
49
|
+
• Você autoriza no navegador<br/>
|
|
50
|
+
• Copia o token final no campo acima<br/><br/>
|
|
51
|
+
<em>💡 Dica: Use o script <code>get-copilot-token.js</code> que faz tudo isso automaticamente!</em>`,
|
|
74
52
|
},
|
|
75
53
|
];
|
|
76
54
|
this.authenticate = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.27.
|
|
3
|
+
"version": "3.27.2",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|