n8n-nodes-github-copilot 3.27.4 → 3.27.6

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.
package/README.md CHANGED
@@ -154,6 +154,17 @@ gh auth token
154
154
 
155
155
  Para usar o **GitHub Copilot Chat API** (com modelos GPT-5, Claude, etc.):
156
156
 
157
+ #### **Opção A: OAuth2 Automático (Recomendado) ✅**
158
+ 1. **Use a nova credencial**: Selecione **"GitHub Copilot OAuth2 API"**
159
+ 2. **Clique em "Connect"**: Use o botão OAuth2 para autenticação automática
160
+ 3. **Configure GitHub OAuth App**:
161
+ - Vá para GitHub → Settings → Developer settings → OAuth Apps
162
+ - Clique em "New OAuth App"
163
+ - **Authorization callback URL**: `https://your-n8n-instance.com/rest/oauth2-credential/callback`
164
+ - Copie Client ID e Client Secret para a credencial N8N
165
+ 4. **Vantagens**: Botão de autenticação, renovação automática de tokens, interface padrão N8N
166
+
167
+ #### **Opção B: OAuth2 Manual (Compatibilidade)**
157
168
  1. **Use autenticação OAuth2**: Selecione **"GitHub OAuth2 API"** (credencial padrão do n8n)
158
169
  2. **Configure a credencial OAuth2**:
159
170
  - **Client ID**: Seu GitHub OAuth App Client ID
@@ -15,6 +15,18 @@ class GitHubCopilotOAuth2Api {
15
15
  type: 'hidden',
16
16
  default: 'authorizationCode',
17
17
  },
18
+ {
19
+ displayName: 'Client ID',
20
+ name: 'clientId',
21
+ type: 'hidden',
22
+ default: '01ab8ac9400c4e429b23',
23
+ },
24
+ {
25
+ displayName: 'Client Secret',
26
+ name: 'clientSecret',
27
+ type: 'hidden',
28
+ default: '',
29
+ },
18
30
  {
19
31
  displayName: 'Authorization URL',
20
32
  name: 'authUrl',
@@ -33,7 +45,7 @@ class GitHubCopilotOAuth2Api {
33
45
  displayName: 'Scope',
34
46
  name: 'scope',
35
47
  type: 'hidden',
36
- default: 'copilot read:org repo user',
48
+ default: 'repo user:email',
37
49
  },
38
50
  {
39
51
  displayName: 'Auth URI Query Parameters',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.27.4",
3
+ "version": "3.27.6",
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",