n8n-nodes-github-copilot 3.27.5 → 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.
|
@@ -5,13 +5,5 @@ export declare class GitHubCopilotOAuth2Api implements ICredentialType {
|
|
|
5
5
|
displayName: string;
|
|
6
6
|
documentationUrl: string;
|
|
7
7
|
properties: INodeProperties[];
|
|
8
|
-
preAuthentication(): Promise<{
|
|
9
|
-
device_code: string;
|
|
10
|
-
user_code: string;
|
|
11
|
-
verification_uri: string;
|
|
12
|
-
verification_uri_complete?: string;
|
|
13
|
-
expires_in: number;
|
|
14
|
-
interval: number;
|
|
15
|
-
}>;
|
|
16
8
|
test: ICredentialTestRequest;
|
|
17
9
|
}
|
|
@@ -31,7 +31,7 @@ class GitHubCopilotOAuth2Api {
|
|
|
31
31
|
displayName: 'Authorization URL',
|
|
32
32
|
name: 'authUrl',
|
|
33
33
|
type: 'hidden',
|
|
34
|
-
default: 'https://github.com/login/
|
|
34
|
+
default: 'https://github.com/login/oauth/authorize',
|
|
35
35
|
required: true,
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -71,30 +71,5 @@ class GitHubCopilotOAuth2Api {
|
|
|
71
71
|
},
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
async preAuthentication() {
|
|
75
|
-
const deviceResponse = await fetch('https://github.com/login/device/code', {
|
|
76
|
-
method: 'POST',
|
|
77
|
-
headers: {
|
|
78
|
-
'Accept': 'application/json',
|
|
79
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
80
|
-
},
|
|
81
|
-
body: new URLSearchParams({
|
|
82
|
-
client_id: '01ab8ac9400c4e429b23',
|
|
83
|
-
scope: 'repo user:email'
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
if (!deviceResponse.ok) {
|
|
87
|
-
throw new Error(`Failed to get device code: ${deviceResponse.status}`);
|
|
88
|
-
}
|
|
89
|
-
const deviceData = await deviceResponse.json();
|
|
90
|
-
return {
|
|
91
|
-
device_code: deviceData.device_code,
|
|
92
|
-
user_code: deviceData.user_code,
|
|
93
|
-
verification_uri: deviceData.verification_uri,
|
|
94
|
-
verification_uri_complete: deviceData.verification_uri_complete,
|
|
95
|
-
expires_in: deviceData.expires_in,
|
|
96
|
-
interval: deviceData.interval
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
74
|
}
|
|
100
75
|
exports.GitHubCopilotOAuth2Api = GitHubCopilotOAuth2Api;
|
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.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",
|