n8n-nodes-github-copilot 3.31.2 → 3.31.4
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.
|
@@ -18,7 +18,13 @@ class GitHubCopilotAuthHelper {
|
|
|
18
18
|
webhooks: [
|
|
19
19
|
{
|
|
20
20
|
name: "default",
|
|
21
|
-
httpMethod: "
|
|
21
|
+
httpMethod: "GET",
|
|
22
|
+
responseMode: "onReceived",
|
|
23
|
+
path: "github-auth",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "default",
|
|
27
|
+
httpMethod: "POST",
|
|
22
28
|
responseMode: "onReceived",
|
|
23
29
|
path: "github-auth",
|
|
24
30
|
},
|
|
@@ -78,6 +84,7 @@ class GitHubCopilotAuthHelper {
|
|
|
78
84
|
}
|
|
79
85
|
async webhook() {
|
|
80
86
|
const req = this.getRequestObject();
|
|
87
|
+
const res = this.getResponseObject();
|
|
81
88
|
const clientId = this.getNodeParameter("clientId");
|
|
82
89
|
const scopes = this.getNodeParameter("scopes");
|
|
83
90
|
if (req.method === "POST") {
|
|
@@ -142,12 +149,10 @@ class GitHubCopilotAuthHelper {
|
|
|
142
149
|
}
|
|
143
150
|
const webhookUrl = this.getNodeWebhookUrl("default");
|
|
144
151
|
const html = generateAuthPage(webhookUrl);
|
|
152
|
+
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
153
|
+
res.status(200).send(html);
|
|
145
154
|
return {
|
|
146
|
-
|
|
147
|
-
status: 200,
|
|
148
|
-
headers: { "Content-Type": "text/html; charset=utf-8" },
|
|
149
|
-
body: html,
|
|
150
|
-
},
|
|
155
|
+
noWebhookResponse: true,
|
|
151
156
|
};
|
|
152
157
|
}
|
|
153
158
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.31.
|
|
3
|
+
"version": "3.31.4",
|
|
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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.31.
|
|
3
|
+
"version": "3.31.4",
|
|
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",
|