n8n-nodes-github-copilot 3.16.0 → 3.17.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.
@@ -110,15 +110,6 @@ class GitHubCopilot {
110
110
  placeholder: 'Enter your request...',
111
111
  description: 'What you want GitHub Copilot to help with',
112
112
  },
113
- {
114
- displayName: 'GitHub Token (Optional)',
115
- name: 'githubToken',
116
- type: 'string',
117
- typeOptions: { password: true },
118
- default: '',
119
- placeholder: 'gho_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
120
- description: '⚠️ IMPORTANT: Only tokens generated by GitHub CLI itself work with Copilot. Personal Access Tokens from GitHub website DO NOT work. If not provided, will use local "gh auth login" authentication. To get a working token, use: gh auth token',
121
- },
122
113
  {
123
114
  displayName: 'Filter Output',
124
115
  name: 'filterOutput',
@@ -194,9 +185,19 @@ class GitHubCopilot {
194
185
  const operation = this.getNodeParameter('operation', i);
195
186
  const prompt = this.getNodeParameter('prompt', i);
196
187
  const context = this.getNodeParameter('context', i, '');
197
- const githubToken = this.getNodeParameter('githubToken', i, '');
188
+ let githubToken = '';
189
+ let authMethod = 'Local CLI';
190
+ try {
191
+ const credentials = await this.getCredentials('githubCopilotApi');
192
+ if (credentials && credentials.token) {
193
+ githubToken = credentials.token;
194
+ authMethod = 'GitHub Copilot Credential';
195
+ }
196
+ }
197
+ catch (error) {
198
+ console.log('No GitHub Copilot credential configured, using local CLI auth');
199
+ }
198
200
  const useToken = githubToken && githubToken.trim() !== '';
199
- const authMethod = useToken ? 'Manual Token' : 'Local CLI';
200
201
  let command;
201
202
  let fullPrompt = prompt;
202
203
  if (context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.16.0",
3
+ "version": "3.17.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",