n8n-nodes-github-copilot 3.7.0 → 3.9.0
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
|
@@ -143,12 +143,27 @@ gh auth token
|
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
### 1. Adicionar o Node
|
|
146
|
+
|
|
146
147
|
1. Crie um novo workflow
|
|
147
148
|
2. Procure por **GitHub Copilot** na lista de nodes
|
|
148
149
|
3. Arraste para o canvas
|
|
149
150
|
4. **Deixe o campo token vazio** (se o servidor tem `gh auth login`)
|
|
150
151
|
5. **OU** insira um token gerado por `gh auth token`
|
|
151
152
|
|
|
153
|
+
### 2. Configuração para GitHub Copilot Chat API
|
|
154
|
+
|
|
155
|
+
Para usar o **GitHub Copilot Chat API** (com modelos GPT-5, Claude, etc.):
|
|
156
|
+
|
|
157
|
+
1. **Use autenticação OAuth2**: Selecione **"GitHub OAuth2 API"** (credencial padrão do n8n)
|
|
158
|
+
2. **Configure a credencial OAuth2**:
|
|
159
|
+
- **Client ID**: Seu GitHub OAuth App Client ID
|
|
160
|
+
- **Client Secret**: Seu GitHub OAuth App Client Secret
|
|
161
|
+
- **Scope**: `copilot read:org repo user`
|
|
162
|
+
3. **Crie uma GitHub OAuth App**:
|
|
163
|
+
- Vá para GitHub → Settings → Developer settings → OAuth Apps
|
|
164
|
+
- Clique em "New OAuth App" e configure callback URL do n8n
|
|
165
|
+
4. **Vantagens**: Autenticação segura, renovação automática de tokens, acesso organizacional
|
|
166
|
+
|
|
152
167
|
## 🎮 Como Usar
|
|
153
168
|
|
|
154
169
|
### Operações Disponíveis
|
|
@@ -307,12 +322,17 @@ npm run format
|
|
|
307
322
|
|
|
308
323
|
### Estrutura do Projeto
|
|
309
324
|
```
|
|
310
|
-
├── credentials/
|
|
311
|
-
│ └── GitHubApi.credentials.ts
|
|
312
325
|
├── nodes/
|
|
313
|
-
│
|
|
314
|
-
│
|
|
315
|
-
│
|
|
326
|
+
│ ├── GitHubCopilot/
|
|
327
|
+
│ │ ├── GitHubCopilot.node.ts
|
|
328
|
+
│ │ └── githubcopilot.svg
|
|
329
|
+
│ ├── GitHubCopilotChatAPI/
|
|
330
|
+
│ │ └── GitHubCopilotChatAPI.node.ts
|
|
331
|
+
│ └── GitHubCopilotChatModel/
|
|
332
|
+
│ └── GitHubCopilotChatModel.node.ts
|
|
333
|
+
├── shared/
|
|
334
|
+
│ └── models/
|
|
335
|
+
│ └── GitHubCopilotModels.ts
|
|
316
336
|
├── package.json
|
|
317
337
|
├── tsconfig.json
|
|
318
338
|
├── gulpfile.js
|
|
@@ -10,7 +10,7 @@ exports.estimateTokens = estimateTokens;
|
|
|
10
10
|
exports.validateTokenLimit = validateTokenLimit;
|
|
11
11
|
exports.truncateToTokenLimit = truncateToTokenLimit;
|
|
12
12
|
async function makeApiRequest(context, endpoint, body, hasMedia = false) {
|
|
13
|
-
const credentials = await context.getCredentials('
|
|
13
|
+
const credentials = await context.getCredentials('githubOAuth2Api');
|
|
14
14
|
const token = credentials.accessToken;
|
|
15
15
|
if (!token) {
|
|
16
16
|
throw new Error('GitHub Copilot: No access token found in credentials');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
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",
|