Gogs support #11

Closed
opened 2023-11-10 21:57:28 +00:00 by yeleleo · 3 comments
yeleleo commented 2023-11-10 21:57:28 +00:00 (Migrated from github.com)

Thank you for your work!

Any chance you can add Gogs hooks support? https://gogs.io

Or maybe it has an option to receive hooks on a script-alike urls? http://{server-ip}:61439/repo-branch ?

Currently Gogs is showing error:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>SyntaxError: Unexpected token u in JSON at position 0<br> &nbsp; &nbsp;at JSON.parse (&lt;anonymous&gt;)<br> &nbsp; &nbsp;at /index.js:23:24<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at next (/node_modules/express/lib/router/route.js:137:13)<br> &nbsp; &nbsp;at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at /node_modules/express/lib/router/index.js:281:22<br> &nbsp; &nbsp;at Function.process_params (/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at urlencodedParser (/node_modules/body-parser/lib/types/urlencoded.js:82:7)</pre>
</body>
</html>
Thank you for your work! Any chance you can add Gogs hooks support? https://gogs.io Or maybe it has an option to receive hooks on a script-alike urls? http://{server-ip}:61439/repo-branch ? Currently Gogs is showing error: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>SyntaxError: Unexpected token u in JSON at position 0<br> &nbsp; &nbsp;at JSON.parse (&lt;anonymous&gt;)<br> &nbsp; &nbsp;at /index.js:23:24<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at next (/node_modules/express/lib/router/route.js:137:13)<br> &nbsp; &nbsp;at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at /node_modules/express/lib/router/index.js:281:22<br> &nbsp; &nbsp;at Function.process_params (/node_modules/express/lib/router/index.js:335:12)<br> &nbsp; &nbsp;at next (/node_modules/express/lib/router/index.js:275:10)<br> &nbsp; &nbsp;at urlencodedParser (/node_modules/body-parser/lib/types/urlencoded.js:82:7)</pre> </body> </html> ```
backmeupplz commented 2023-11-11 00:34:46 +00:00 (Migrated from github.com)

hm, probably worth rewriting the whole thing anyway, it should be like 10 lines of code after the rewrite

hm, probably worth rewriting the whole thing anyway, it should be like 10 lines of code after the rewrite
yeleleo commented 2023-11-17 21:37:04 +00:00 (Migrated from github.com)

I (and community) would really appreciate the version which support Gogs hooks!
Thanks

I (and community) would really appreciate the version which support Gogs hooks! Thanks
backmeupplz commented 2026-10-22 17:31:47 +00:00 (Migrated from github.com)

Thank you for taking the time to report this, and sorry it sat without an answer for so long. I'm cleaning up old issues and closing this one because it has been inactive for a long time. If it still affects you, please open a new issue with the current details and I'll take a look.

Thank you for taking the time to report this, and sorry it sat without an answer for so long. I'm cleaning up old issues and closing this one because it has been inactive for a long time. If it still affects you, please open a new issue with the current details and I'll take a look.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
backmeupplz/ci-ninja#11
No description provided.