n8n-nodes-github-copilot 3.31.4 → 3.31.5
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.
|
@@ -104,12 +104,10 @@ class GitHubCopilotAuthHelper {
|
|
|
104
104
|
}),
|
|
105
105
|
});
|
|
106
106
|
const data = await response.json();
|
|
107
|
+
res.setHeader("Content-Type", "application/json");
|
|
108
|
+
res.status(200).json(data);
|
|
107
109
|
return {
|
|
108
|
-
|
|
109
|
-
status: 200,
|
|
110
|
-
headers: { "Content-Type": "application/json" },
|
|
111
|
-
body: JSON.stringify(data),
|
|
112
|
-
},
|
|
110
|
+
noWebhookResponse: true,
|
|
113
111
|
};
|
|
114
112
|
}
|
|
115
113
|
if (action === "poll_token") {
|
|
@@ -127,23 +125,19 @@ class GitHubCopilotAuthHelper {
|
|
|
127
125
|
}),
|
|
128
126
|
});
|
|
129
127
|
const data = await response.json();
|
|
128
|
+
res.setHeader("Content-Type", "application/json");
|
|
129
|
+
res.status(200).json(data);
|
|
130
130
|
return {
|
|
131
|
-
|
|
132
|
-
status: 200,
|
|
133
|
-
headers: { "Content-Type": "application/json" },
|
|
134
|
-
body: JSON.stringify(data),
|
|
135
|
-
},
|
|
131
|
+
noWebhookResponse: true,
|
|
136
132
|
};
|
|
137
133
|
}
|
|
138
134
|
throw new Error(`Unknown action: ${action}`);
|
|
139
135
|
}
|
|
140
136
|
catch (error) {
|
|
137
|
+
res.setHeader("Content-Type", "application/json");
|
|
138
|
+
res.status(500).json({ error: error.message });
|
|
141
139
|
return {
|
|
142
|
-
|
|
143
|
-
status: 500,
|
|
144
|
-
headers: { "Content-Type": "application/json" },
|
|
145
|
-
body: JSON.stringify({ error: error.message }),
|
|
146
|
-
},
|
|
140
|
+
noWebhookResponse: true,
|
|
147
141
|
};
|
|
148
142
|
}
|
|
149
143
|
}
|
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.5",
|
|
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.5",
|
|
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",
|